Go to the documentation of this file. 1 #ifndef L1Trigger_CSCTriggerPrimitives_CSCTriggerPrimitivesReader_h
2 #define L1Trigger_CSCTriggerPrimitives_CSCTriggerPrimitivesReader_h
TH1F * hAlctCompTotalCsc[MAX_ENDCAPS][CSC_TYPES]
TH1F * hClctBendCsc[CSC_TYPES][2]
edm::EDGetTokenT< CSCCLCTDigiCollection > clcts_e_token_
static const int lut_wg_vs_hs_me1a[48][2]
void MCStudies(const edm::Event &ev, const CSCALCTDigiCollection *alcts, const CSCCLCTDigiCollection *clcts)
static const std::string csc_type_minus[CSC_TYPES]
TH1F * hEfficCLCTEtaCsc[CSC_TYPES]
MyStubComparison stubs_comparison[4]
static const int MAX_HS[CSC_TYPES]
std::string lctProducerData_
TTree * bookTree(TTree *t, const std::string &name="Stub_compare")
TH1F * hEfficALCTEta[MAX_STATIONS]
TH1F * hEfficHitsEta[MAX_STATIONS]
void compareMPCLCTs(const CSCCorrelatedLCTDigiCollection *lcts_data, const CSCCorrelatedLCTDigiCollection *lcts_emul, const CSCALCTDigiCollection *alcts_data, const CSCCLCTDigiCollection *clcts_data)
int chamberSerial(CSCDetId id)
TH1F * hLctMPCKeyGroupME11
std::string mpclctProducerData_
TH2F * hEtaDiffVsWireCsc[CSC_TYPES]
int getCSCType(const CSCDetId &id)
static bool bookedResolHistos
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Does the job.
A container for a generic type of digis indexed by some index, implemented with a map<IndexType,...
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > pretrigs_e_token_
TH1F * hLctMPCChamber[MAX_STATIONS]
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > pBadToken_
TH1F * hAlctCompFoundCsc[MAX_ENDCAPS][CSC_TYPES]
static const double TWOPI
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > lcts_tmb_e_token_
static bool bookedCLCTHistos
static bool bookedCompHistos
int chamberIX(CSCDetId id)
TH1F * hLctTMBCsc[MAX_ENDCAPS][CSC_TYPES]
const CSCBadChambers * badChambers_
TH1F * hEfficALCTEtaCsc[CSC_TYPES]
TH1F * hTrueBendCsc[CSC_TYPES]
TH1F * hPhiDiffPattern[CSCConstants::NUM_CLCT_PATTERNS]
TH1F * hLctTMBChamber[MAX_STATIONS]
edm::EDGetTokenT< edm::PSimHitContainer > simHit_token_
~CSCTriggerPrimitivesReader() override
Destructor.
edm::EDGetTokenT< CSCCLCTDigiCollection > clcts_d_token_
static bool bookedLCTMPCHistos
TH1F * hAlctVsEta[MAX_STATIONS]
TH1F * hClctKeyStripCsc[CSC_TYPES]
void fillLCTMPCHistos(const CSCCorrelatedLCTDigiCollection *lcts)
TH1F * hLctCompTotalCsc[MAX_ENDCAPS][CSC_TYPES]
TH1F * hPhiDiffVsPhi[MAX_STATIONS]
TH1F * hClctCompSameNCsc[MAX_ENDCAPS][CSC_TYPES]
void fillLCTTMBHistos(const CSCCorrelatedLCTDigiCollection *lcts)
int chamberIXi(CSCDetId id)
edm::InputTag compDigiProducer_
double getHsPerRad(const int idh)
void compareALCTs(const CSCALCTDigiCollection *alcts_data, const CSCALCTDigiCollection *alcts_emul)
TH1F * hEfficCLCTEta[MAX_STATIONS]
std::string lctProducerEmul_
static bool bookedHotWireHistos
edm::EDGetTokenT< CSCALCTDigiCollection > alcts_e_token_
TH1F * hLctMPCKeyStripME11
TH1F * hClctCompMatchCsc[MAX_ENDCAPS][CSC_TYPES]
Int_t totStubs_emul_readout
TH1F * hLctCompMatchCsc[MAX_ENDCAPS][CSC_TYPES]
static const int lut_wg_vs_hs_me1b[48][2]
edm::EDGetTokenT< CSCComparatorDigiCollection > compDigi_token_
std::string resultsFileNamesPrefix_
void fillCLCTHistos(const CSCCLCTDigiCollection *clcts)
void calcEfficiency(const CSCALCTDigiCollection *alcts, const CSCCLCTDigiCollection *clcts, const edm::PSimHitContainer &allSimHits)
void compareCLCTs(const CSCCLCTDigiCollection *clcts_data, const CSCCLCTDigiCollection *clcts_emul, const CSCCLCTPreTriggerDigiCollection *pretrigs_emul)
TH1F * hClctVsPhi[MAX_STATIONS]
TH1F * hClctCompTotalCsc[MAX_ENDCAPS][CSC_TYPES]
TH1F * hAlctCompSameNCsc[MAX_ENDCAPS][CSC_TYPES]
static const int ptype_TMB07[CSCConstants::NUM_CLCT_PATTERNS]
TH1F * hClctCompFoundCsc[MAX_ENDCAPS][CSC_TYPES]
TH1F * hLctCompSameNCsc[MAX_ENDCAPS][CSC_TYPES]
static bool bookedEfficHistos
TH1F * hPhiDiffCsc[CSC_TYPES][5]
CSCTriggerPrimitivesReader(const edm::ParameterSet &conf)
Constructor.
edm::InputTag wireDigiProducer_
Int_t t_EventNumberAnalyzed
TH1F * hEtaDiffCsc[CSC_TYPES][3]
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > lcts_mpc_d_token_
TH1F * hAlctCsc[MAX_ENDCAPS][CSC_TYPES]
TH1F * hLctTMBKeyGroupME11
static bool bookedLCTTMBHistos
TH1F * hClctCsc[MAX_ENDCAPS][CSC_TYPES]
void compare(const CSCALCTDigiCollection *alcts_data, const CSCALCTDigiCollection *alcts_emul, const CSCCLCTDigiCollection *clcts_data, const CSCCLCTDigiCollection *clcts_emul, const CSCCLCTPreTriggerDigiCollection *pretrigs_emul, const CSCCorrelatedLCTDigiCollection *lcts_data, const CSCCorrelatedLCTDigiCollection *lcts_emul)
static const int NCHAMBERS[CSC_TYPES]
TH1F * hLctCompFoundCsc[MAX_ENDCAPS][CSC_TYPES]
static const int lut_wg_vs_hs_me1ag[48][2]
TTree * bookTree(TTree *t, const std::string &name="TreePerStub")
TH1F * hEtaDiffVsEta[MAX_STATIONS]
void fillALCTHistos(const CSCALCTDigiCollection *alcts)
void init(int run, int event)
TH1F * hAlctCompMatchCsc[MAX_ENDCAPS][CSC_TYPES]
TH2F * hPhiDiffVsStripCsc[CSC_TYPES][2]
void drawHistosForTalks()
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
int convertBXofLCT(const int emul_bx, const CSCDetId &detid, const CSCALCTDigiCollection *alcts_data, const CSCCLCTDigiCollection *clcts_data)
edm::EDGetTokenT< CSCWireDigiCollection > wireDigi_token_
static bool bookedALCTHistos
GlobalPoint getGlobalPosition(unsigned int rawId, int keWg, int keyHS) const
edm::InputTag simHitProducer_
edm::EDGetTokenT< CSCALCTDigiCollection > alcts_d_token_
void endJob() override
Write to ROOT file, make plots, etc.
void compareLCTs(const CSCCorrelatedLCTDigiCollection *lcts_data, const CSCCorrelatedLCTDigiCollection *lcts_emul, const CSCALCTDigiCollection *alcts_data, const CSCCLCTDigiCollection *clcts_data)
std::vector< PSimHit > PSimHitContainer
TH1F * hEfficHitsEtaCsc[CSC_TYPES]
void calcResolution(const CSCALCTDigiCollection *alcts, const CSCCLCTDigiCollection *clcts, const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const edm::PSimHitContainer &allSimHits)
static const std::string csc_type_plus[CSC_TYPES]
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > lcts_tmb_d_token_
void HotWires(const edm::Event &iEvent)
void init(int run, int event)
static const int MAX_WG[CSC_TYPES]
bool doesALCTCrossCLCT(CSCDetId id, int key_wg, int key_hs) const
TH1F * hLctTMBKeyStripME11
const CSCGeometry * geom_
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > lcts_mpc_e_token_
static const std::string csc_type[CSC_TYPES]