CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ZdcTBAnalyzer Class Reference
Inheritance diagram for ZdcTBAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void endJob ()
 
 ZdcTBAnalyzer (const edm::ParameterSet &)
 
 ~ZdcTBAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 23 of file ZdcTBAnalyzer.cc.

Constructor & Destructor Documentation

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.

47  :
48  zdcRecHitCollectionTag(iConfig.getParameter<edm::InputTag>("zdcRecHitCollectionTag")),
49  hcalTBTriggerDataTag(iConfig.getParameter<edm::InputTag>("hcalTBTriggerDataTag")),
50  hcalTBTimingTag(iConfig.getParameter<edm::InputTag>("hcalTBTimingTag")),
51  hcalTBBeamCountersTag(iConfig.getParameter<edm::InputTag>("hcalTBBeamCountersTag")),
52  hcalTBEventPositionTag(iConfig.getParameter<edm::InputTag>("hcalTBEventPositionTag"))
53 {
54  std::cout<<"**************** ZdcTBAnalizer Start**************************"<<std::endl;
55  edm::ParameterSet para = iConfig.getParameter<edm::ParameterSet>("ZdcTBAnalyzer");
56 
57  beamDetectorsADCInfo = para.getParameter<bool>("beamDetectorsADCInfoFlag");
58  beamDetectorsTDCInfo = para.getParameter<bool>("beamDetectorsTDCInfoFlag");
59  wireChambersInfo = para.getParameter<bool>("wireChambersInfoFlag");
60  triggerInfo = para.getParameter<bool>("triggerInfoFlag");
61  outputFileName = para.getParameter<std::string>("ntupleOutputFileName");
62  zdcTBAnalysis.setup(outputFileName);
63 }
T getParameter(std::string const &) const
bool beamDetectorsTDCInfo
std::string outputFileName
void setup(const std::string &histoFileName)
Definition: ZdcTBAnalysis.cc:8
edm::InputTag hcalTBBeamCountersTag
bool beamDetectorsADCInfo
edm::InputTag hcalTBTimingTag
edm::InputTag hcalTBEventPositionTag
ZdcTBAnalysis zdcTBAnalysis
tuple cout
Definition: gather_cfg.py:121
edm::InputTag hcalTBTriggerDataTag
edm::InputTag zdcRecHitCollectionTag
ZdcTBAnalyzer::~ZdcTBAnalyzer ( )

Definition at line 65 of file ZdcTBAnalyzer.cc.

65 {;}

Member Function Documentation

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, create_public_lumi_plots::times, triggerInfo, hltHiggsPostProcessors_cff::triggers, wireChambersInfo, zdcRecHitCollectionTag, and zdcTBAnalysis.

67  {
68  using namespace edm;
74 
75  e.getByLabel(zdcRecHitCollectionTag, zdcRecHits);
76  if(triggerInfo){
79  }
81  e.getByLabel(hcalTBTimingTag, times); // e.getByLabel("tbunpacker2",times);
83  }
87  }
88  if(wireChambersInfo){
90  zdcTBAnalysis.analyze(*chpos);
91  }
92  zdcTBAnalysis.analyze(*zdcRecHits);
94 }
bool beamDetectorsTDCInfo
void analyze(const ZDCRecHitCollection &hf)
edm::InputTag hcalTBBeamCountersTag
bool beamDetectorsADCInfo
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
edm::InputTag hcalTBTimingTag
edm::InputTag hcalTBEventPositionTag
ZdcTBAnalysis zdcTBAnalysis
edm::InputTag hcalTBTriggerDataTag
edm::InputTag zdcRecHitCollectionTag
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.

96  {
98 std::cout<<"****************ZdcTBAnalizer End**************************"<<std::endl;
99 }
ZdcTBAnalysis zdcTBAnalysis
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

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().

edm::InputTag ZdcTBAnalyzer::hcalTBBeamCountersTag
private

Definition at line 43 of file ZdcTBAnalyzer.cc.

Referenced by analyze().

edm::InputTag ZdcTBAnalyzer::hcalTBEventPositionTag
private

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().

edm::InputTag ZdcTBAnalyzer::hcalTBTriggerDataTag
private

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().

edm::InputTag ZdcTBAnalyzer::zdcRecHitCollectionTag
private

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().