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 |
std::string | inputFileName |
std::string | outputFileName |
bool | triggerInfo |
bool | wireChambersInfo |
ZdcTBAnalysis | zdcTBAnalysis |
Definition at line 22 of file ZdcTBAnalyzer.cc.
ZdcTBAnalyzer::ZdcTBAnalyzer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 40 of file ZdcTBAnalyzer.cc.
References beamDetectorsADCInfo, beamDetectorsTDCInfo, gather_cfg::cout, edm::ParameterSet::getParameter(), outputFileName, ZdcTBAnalysis::setup(), triggerInfo, wireChambersInfo, and zdcTBAnalysis.
{ 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 53 of file ZdcTBAnalyzer.cc.
{;}
void ZdcTBAnalyzer::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 55 of file ZdcTBAnalyzer.cc.
References ZdcTBAnalysis::analyze(), beamDetectorsADCInfo, beamDetectorsTDCInfo, ZdcTBAnalysis::fillTree(), edm::Event::getByType(), create_public_lumi_plots::times, triggerInfo, triggers, wireChambersInfo, 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.getByType(zdcRecHits); if(triggerInfo){ e.getByType(triggers); zdcTBAnalysis.analyze(*triggers); } if(beamDetectorsTDCInfo){ e.getByType(times); // e.getByLabel("tbunpacker2",times); zdcTBAnalysis.analyze(*times); } if(beamDetectorsADCInfo){ e.getByType(bc); zdcTBAnalysis.analyze(*bc); } if(wireChambersInfo){ e.getByType(chpos); zdcTBAnalysis.analyze(*chpos); } zdcTBAnalysis.analyze(*zdcRecHits); zdcTBAnalysis.fillTree(); }
void ZdcTBAnalyzer::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 84 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 33 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
bool ZdcTBAnalyzer::beamDetectorsTDCInfo [private] |
Definition at line 34 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
std::string ZdcTBAnalyzer::inputFileName [private] |
Definition at line 32 of file ZdcTBAnalyzer.cc.
std::string ZdcTBAnalyzer::outputFileName [private] |
Definition at line 31 of file ZdcTBAnalyzer.cc.
Referenced by ZdcTBAnalyzer().
bool ZdcTBAnalyzer::triggerInfo [private] |
Definition at line 36 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
bool ZdcTBAnalyzer::wireChambersInfo [private] |
Definition at line 35 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), and ZdcTBAnalyzer().
ZdcTBAnalysis ZdcTBAnalyzer::zdcTBAnalysis [private] |
Definition at line 37 of file ZdcTBAnalyzer.cc.
Referenced by analyze(), endJob(), and ZdcTBAnalyzer().