Skip to content

Commit

Permalink
Skeleton for future efficiency analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
dildick committed Jan 17, 2014
1 parent ecee947 commit 7179106
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 0 deletions.
72 changes: 72 additions & 0 deletions SimMuL1/interface/ALCT.h
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
72 changes: 72 additions & 0 deletions SimMuL1/interface/CLCT.h
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 added SimMuL1/interface/GMTCand.h
Empty file.
Empty file added SimMuL1/interface/GMTRegCand.h
Empty file.
Empty file added SimMuL1/interface/L1Extra.h
Empty file.
63 changes: 63 additions & 0 deletions SimMuL1/interface/LCT.h
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 added SimMuL1/interface/TFCand.h
Empty file.
52 changes: 52 additions & 0 deletions SimMuL1/interface/TFTrack.h
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;


};

0 comments on commit 7179106

Please sign in to comment.