forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from dildick/master
Merge
- Loading branch information
Showing
12 changed files
with
317 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#ifndef SimMuL1_ALCT_h | ||
#define SimMuL1_ALCT_h | ||
|
||
/* | ||
* Class for matched ALCTs | ||
*/ | ||
|
||
|
||
|
||
#include <DataFormats/CSCDigi/interface/CSCALCTDigiCollection.h> | ||
#include <Geometry/CSCGeometry/interface/CSCGeometry.h> | ||
#include <DataFormats/MuonDetId/interface/CSCDetId.h> | ||
|
||
class ALCT | ||
{ | ||
public: | ||
/// constructor | ||
ALCT(); | ||
ALCT(const CSCALCTDigi*); | ||
/// copy constructor | ||
ALCT(const ACLT&); | ||
/// destructor | ||
~ALCT(); | ||
|
||
/// get the underlying trigger digi | ||
const CSCALCTDigi* getTriggerDigi() const {return triggerDigi_;} | ||
const int getDetId() const {return detId_;} | ||
const int getBX() const {return bx_;} | ||
const bool inReadout() const {return inReadout_;} | ||
const bool isDeltaOk() const {return deltaOk_;} | ||
const int getNumberHitsShared() const {return nHitsShared_;} | ||
const int getMCWG() const {return mcWG_;} | ||
const int getDeltaWire() const {return deltaWire_;} | ||
const double getDeltaPhi() const {return deltaPhi_;} | ||
const double getDeltaY() const {return deltaY_;} | ||
const double getEta const {return eta_;} | ||
|
||
std::vector<CSCAnodeLayerInfo>& getLayerInfo const {return layerInfo_;} | ||
std::vector<PSimHit>& getSimHits const {return simHits_;} | ||
|
||
private: | ||
/// underlying trigger digi | ||
const CSCALCTDigi* triggerDigi_; | ||
|
||
/// layer info | ||
std::vector<CSCAnodeLayerInfo> layerInfo_; | ||
/// matching simhits | ||
std::vector<PSimHit> simHits_; | ||
|
||
/// detector ID | ||
int detId_; | ||
/// bunch crossing | ||
int bx_; | ||
/// is it in the readout collection? | ||
bool inReadout_; | ||
/// was properly matched | ||
bool deltaOk_; | ||
/// number of SimHits shared with SimTrack | ||
int nHitsShared_; | ||
/// SimHit's WG number | ||
int mcWG_; | ||
/// delta to SimTrack closest wire | ||
int deltaWire_; | ||
/// in (Z,R) -> (x,y) plane | ||
double deltaPhi_; | ||
/// deltas to SimTrack's 2D stub | ||
double deltaY_; | ||
/// center of wire group eta | ||
double eta; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# ifndef SimMuL1_CLCT_h | ||
#define SimMuL1_CLCT_h | ||
|
||
/* | ||
* Class for matched CLCTs | ||
*/ | ||
|
||
|
||
|
||
#include <DataFormats/CSCDigi/interface/CSCCLCTDigiCollection.h> | ||
#include <Geometry/CSCGeometry/interface/CSCGeometry.h> | ||
#include <DataFormats/MuonDetId/interface/CSCDetId.h> | ||
|
||
class CLCT | ||
{ | ||
public: | ||
/// constructor | ||
CLCT(); | ||
CLCT(const CSCCLCTDigi*); | ||
/// copy constructor | ||
CLCT(const ACLT&); | ||
/// destructor | ||
~CLCT(); | ||
|
||
/// get the underlying trigger digi | ||
const CSCCLCTDigi* getTriggerDigi() const {return triggerDigi_;} | ||
const int getDetId() const {return detId_;} | ||
const int getBX() const {return bx_;} | ||
const bool inReadout() const {return inReadout_;} | ||
const bool isDeltaOk() const {return deltaOk_;} | ||
const int getNumberHitsShared() const {return nHitsShared_;} | ||
const int getMCStrip() const {return mcStrip_;} | ||
const int getDeltaWire() const {return deltaWire_;} | ||
const double getDeltaPhi() const {return deltaPhi_;} | ||
const double getDeltaY() const {return deltaY_;} | ||
const double getPhi const {return eta_;} | ||
|
||
std::vector<CSCAnodeLayerInfo>& getLayerInfo const {return layerInfo_;} | ||
std::vector<PSimHit>& getSimHits const {return simHits_;} | ||
|
||
private: | ||
/// underlying trigger digi | ||
const CSCCLCTDigi* triggerDigi_; | ||
|
||
/// layer info | ||
std::vector<CSCAnodeLayerInfo> layerInfo_; | ||
/// matching simhits | ||
std::vector<PSimHit> simHits_; | ||
|
||
/// detector ID | ||
int detId_; | ||
/// bunch crossing | ||
int bx_; | ||
/// is it in the readout collection? | ||
bool inReadout_; | ||
/// was properly matched | ||
bool deltaOk_; | ||
/// number of SimHits shared with SimTrack | ||
int nHitsShared_; | ||
/// SimHit's WG number | ||
int mcWG_; | ||
/// delta to SimTrack closest wire | ||
int deltaStrip_; | ||
/// in (Z,R) -> (x,y) plane | ||
double deltaPhi_; | ||
/// deltas to SimTrack's 2D stub | ||
double deltaY_; | ||
/// center of wire group eta | ||
double phi; | ||
}; | ||
|
||
#endif |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#ifndef SimMuL1_LCT_h | ||
#define SimMuL1_LCT_h | ||
|
||
/* | ||
* Class LCT | ||
*/ | ||
|
||
class LCT | ||
{ | ||
public: | ||
/// constructor | ||
LCT(); | ||
/// copy constructor | ||
LCT(const LCT&); | ||
/// destructor | ||
~LCT(); | ||
|
||
/// get the underlying trigger digi | ||
const CSCCorrelatedDigi* getTriggerDigi() const {return triggerDigi_;} | ||
/// get the alct | ||
const ALCT* getALCT() const {return alct_;} | ||
/// get the clct | ||
const CLCT* getCLCT() const {return clct_;} | ||
/// get the bunch crossing | ||
const int getBX() const {return triggerDigi_->getBX();} | ||
/// get the detector Id | ||
const int getDetId() const {return detId_;} | ||
/// is the LCT a ghost? | ||
const bool isGhost() const {return isGhost_;} | ||
/// does the LCT match? | ||
const bool deltaOk() const {return deltaOk_;} | ||
/// is the LCT in the readout? | ||
const book inReadout() const {return inReadout_;} | ||
|
||
/// set the underlying trigger digi | ||
void setTriggerDigi(const CSCCorrelatedDigi* d) {triggerDigi_ = d;} | ||
/// set the alct | ||
void setALCT(const ALCT* alct) {return alct_;} | ||
/// set the clct | ||
void setCLCT(const CLCT* clct) {return clct_;} | ||
/// set the bunch crossing | ||
void setBX(const int bx) {return ;} | ||
/// set the detector Id | ||
void setDetId(const int detId) {return detId_;} | ||
/// is the LCT a ghost? | ||
void SetGhost(const bool ghost) {isGhost_ = ghost;} | ||
/// does the LCT match? | ||
void SetDeltaOk(const book ok) {deltaOk_ = ok;} | ||
/// is the LCT in the readout? | ||
void SetReadout(const bool inReadout) {inReadout_ = inReadout;} | ||
|
||
private: | ||
const CSCCorrelatedDigi triggerDigi_; | ||
const ALCT* alct_; | ||
const CLCT* clct_; | ||
int bx_; | ||
int detId_; | ||
bool isGhost_; | ||
bool deltaOk_; | ||
bool inReadout_; | ||
}; | ||
|
||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
class TFTrack | ||
{ | ||
public: | ||
/// constructor | ||
TFTrack(); | ||
/// copy constructor | ||
TFTrack(const TFTrack&); | ||
/// destructor | ||
~TFTrack(); | ||
|
||
/// L1 track | ||
const csc::L1Track* getL1Track() const {return l1track_;} | ||
/// collection of trigger digis | ||
std::vector<const CSCCorrelatedLCTDigi* >& | ||
getTriggerDigis() const {return return triggerDigis_;} | ||
/// collection of MPC LCTs | ||
|
||
/// track sign | ||
bool sign() const {return l1track_->sign();} | ||
/// bunch crossing | ||
int getBX() const {return l1track_->bx();} | ||
/// has stub in muon barrel? | ||
bool hasStubBarrel(); | ||
/// has stub in muon endcap? | ||
bool hasStubEndcap(); | ||
/// has stub in particular endcap station | ||
bool hasStubEndcapStaion(int station); | ||
/// | ||
|
||
private: | ||
const csc::L1Track* l1track_; | ||
std::vector < const CSCCorrelatedLCTDigi * > trgdigis; | ||
std::vector < CSCDetId > trgids; | ||
std::vector < std::pair<float, float> > trgetaphis; | ||
std::vector < csctf::TrackStub > trgstubs; | ||
std::vector < MPLCT* > mplcts; | ||
std::vector < CSCDetId > ids; // chamber ids | ||
unsigned phi_packed; | ||
unsigned eta_packed; | ||
unsigned pt_packed; | ||
unsigned q_packed; | ||
double phi; | ||
double eta; | ||
double pt; | ||
double dr; | ||
bool deltaOk1; | ||
bool deltaOk2; | ||
bool deltaOkME1; | ||
bool debug; | ||
|
||
|
||
}; |
Oops, something went wrong.