Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | endJob () |
ZdcTBAnalyzer (const edm::ParameterSet &) | |
~ZdcTBAnalyzer () | |
Private Attributes | |
bool | beamDetectorsADCInfo |
bool | beamDetectorsTDCInfo |
edm::InputTag | hcalTBBeamCountersTag |
edm::InputTag | hcalTBEventPositionTag |
edm::InputTag | hcalTBTimingTag |
edm::InputTag | hcalTBTriggerDataTag |
std::string | inputFileName |
std::string | outputFileName |
bool | triggerInfo |
bool | wireChambersInfo |
edm::InputTag | zdcRecHitCollectionTag |
ZdcTBAnalysis | zdcTBAnalysis |
Definition at line 23 of file ZdcTBAnalyzer.cc.
ZdcTBAnalyzer::ZdcTBAnalyzer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 47 of file ZdcTBAnalyzer.cc.
References beamDetectorsADCInfo, beamDetectorsTDCInfo, gather_cfg::cout, edm::ParameterSet::getParameter(), outputFileName, ZdcTBAnalysis::setup(), AlCaHLTBitMon_QueryRunRegistry::string, triggerInfo, wireChambersInfo, and zdcTBAnalysis.
: zdcRecHitCollectionTag(iConfig.getParameter<edm::InputTag>("zdcRecHitCollectionTag")), hcalTBTriggerDataTag(iConfig.getParameter<edm::InputTag>("hcalTBTriggerDataTag")), hcalTBTimingTag(iConfig.getParameter<edm::InputTag>("hcalTBTimingTag")), hcalTBBeamCountersTag(iConfig.getParameter<edm::InputTag>("hcalTBBeamCountersTag")), hcalTBEventPositionTag(iConfig.getParameter<edm::InputTag>("hcalTBEventPositionTag")) { std::cout<<"**************** ZdcTBAnalizer Start**************************"<<std::endl; edm::ParameterSet para = iConfig.getParameter<edm::ParameterSet>("ZdcTBAnalyzer"); beamDetectorsADCInfo = para.getParameter<bool>("beamDetectorsADCInfoFlag"); beamDetectorsTDCInfo = para.getParameter<bool>("beamDetectorsTDCInfoFlag"); wireChambersInfo = para.getParameter<bool>("wireChambersInfoFlag"); triggerInfo = para.getParameter<bool>("triggerInfoFlag"); outputFileName = para.getParameter<std::string>("ntupleOutputFileName"); zdcTBAnalysis.setup(outputFileName); }
ZdcTBAnalyzer::~ZdcTBAnalyzer | ( | ) |
Definition at line 65 of file ZdcTBAnalyzer.cc.
{;}
void ZdcTBAnalyzer::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 67 of file ZdcTBAnalyzer.cc.
References ZdcTBAnalysis::analyze(), beamDetectorsADCInfo, beamDetectorsTDCInfo, ZdcTBAnalysis::fillTree(), edm::Event::getByLabel(), hcalTBBeamCountersTag, hcalTBEventPositionTag, hcalTBTimingTag, hcalTBTriggerDataTag, triggerInfo, triggers, wireChambersInfo, zdcRecHitCollectionTag, and zdcTBAnalysis.
{ using namespace edm; edm::Handle<ZDCRecHitCollection> zdcRecHits; edm::Handle<HcalTBTriggerData> triggers; edm::Handle<HcalTBTiming> times; edm::Handle<HcalTBBeamCounters> bc; edm::Handle<HcalTBEventPosition> chpos; e.getByLabel(zdcRecHitCollectionTag, zdcRecHits); if(triggerInfo){ e.getByLabel(hcalTBTriggerDataTag, triggers); zdcTBAnalysis.analyze(*triggers); } if(beamDetectorsTDCInfo){ e.getByLabel(hcalTBTimingTag, times); // e.getByLabel("tbunpacker2",times); zdcTBAnalysis.analyze(*times); } if(beamDetectorsADCInfo){ e.getByLabel(hcalTBBeamCountersTag, bc); zdcTBAnalysis.analyze(*bc); } if(wireChambersInfo){ e.getByLabel(hcalTBEventPositionTag, chpos); zdcTBAnalysis.analyze(*chpos); } zdcTBAnalysis.analyze(*zdcRecHits); zdcTBAnalysis.fillTree(); }
void ZdcTBAnalyzer::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 96 of file ZdcTBAnalyzer.cc.
References gather_cfg::cout, ZdcTBAnalysis::done(), and zdcTBAnalysis.
{ zdcTBAnalysis.done(); std::cout<<"****************ZdcTBAnalizer End**************************"<<std::endl; }
bool ZdcTBAnalyzer::beamDetectorsADCInfo [private] |
Definition at line 34 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
bool ZdcTBAnalyzer::beamDetectorsTDCInfo [private] |
Definition at line 35 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
Definition at line 43 of file ZdcTBAnalyzer.cc.
Referenced by analyze().
Definition at line 44 of file ZdcTBAnalyzer.cc.
Referenced by analyze().
edm::InputTag ZdcTBAnalyzer::hcalTBTimingTag [private] |
Definition at line 42 of file ZdcTBAnalyzer.cc.
Referenced by analyze().
Definition at line 41 of file ZdcTBAnalyzer.cc.
Referenced by analyze().
std::string ZdcTBAnalyzer::inputFileName [private] |
Definition at line 33 of file ZdcTBAnalyzer.cc.
std::string ZdcTBAnalyzer::outputFileName [private] |
Definition at line 32 of file ZdcTBAnalyzer.cc.
Referenced by ZdcTBAnalyzer().
bool ZdcTBAnalyzer::triggerInfo [private] |
Definition at line 37 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
bool ZdcTBAnalyzer::wireChambersInfo [private] |
Definition at line 36 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
Definition at line 40 of file ZdcTBAnalyzer.cc.
Referenced by analyze().
ZdcTBAnalysis ZdcTBAnalyzer::zdcTBAnalysis [private] |
Definition at line 38 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), endJob(), and ZdcTBAnalyzer().