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 &) override
 
virtual void endJob () override
 
 ZdcTBAnalyzer (const edm::ParameterSet &)
 
 ~ZdcTBAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool beamDetectorsADCInfo
 
bool beamDetectorsTDCInfo
 
std::string inputFileName
 
std::string outputFileName
 
edm::EDGetTokenT
< HcalTBBeamCounters
tok_bc_
 
edm::EDGetTokenT
< HcalTBEventPosition
tok_pos_
 
edm::EDGetTokenT
< HcalTBTriggerData
tok_tb_
 
edm::EDGetTokenT< HcalTBTimingtok_timing_
 
edm::EDGetTokenT
< ZDCRecHitCollection
tok_zdc_
 
bool triggerInfo
 
bool wireChambersInfo
 
ZdcTBAnalysis zdcTBAnalysis
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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::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, tok_bc_, tok_pos_, tok_tb_, tok_timing_, tok_zdc_, triggerInfo, wireChambersInfo, and zdcTBAnalysis.

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

Definition at line 66 of file ZdcTBAnalyzer.cc.

66 {;}

Member Function Documentation

void ZdcTBAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup  
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 68 of file ZdcTBAnalyzer.cc.

References ZdcTBAnalysis::analyze(), beamDetectorsADCInfo, beamDetectorsTDCInfo, ZdcTBAnalysis::fillTree(), edm::Event::getByToken(), create_public_lumi_plots::times, tok_bc_, tok_pos_, tok_tb_, tok_timing_, tok_zdc_, triggerInfo, hltExoticaPostProcessors_cff::triggers, wireChambersInfo, and zdcTBAnalysis.

68  {
69  using namespace edm;
75 
76  e.getByToken(tok_zdc_, zdcRecHits);
77  if(triggerInfo){
80  }
82  e.getByToken(tok_timing_, times); // e.getByLabel("tbunpacker2",times);
84  }
86  e.getByToken(tok_bc_, bc);
88  }
89  if(wireChambersInfo){
90  e.getByToken(tok_pos_, chpos);
91  zdcTBAnalysis.analyze(*chpos);
92  }
93  zdcTBAnalysis.analyze(*zdcRecHits);
95 }
bool beamDetectorsTDCInfo
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:446
edm::EDGetTokenT< HcalTBBeamCounters > tok_bc_
void analyze(const ZDCRecHitCollection &hf)
edm::EDGetTokenT< HcalTBTriggerData > tok_tb_
bool beamDetectorsADCInfo
edm::EDGetTokenT< HcalTBEventPosition > tok_pos_
ZdcTBAnalysis zdcTBAnalysis
edm::EDGetTokenT< ZDCRecHitCollection > tok_zdc_
edm::EDGetTokenT< HcalTBTiming > tok_timing_
void ZdcTBAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 97 of file ZdcTBAnalyzer.cc.

References gather_cfg::cout, ZdcTBAnalysis::done(), and zdcTBAnalysis.

97  {
99 std::cout<<"****************ZdcTBAnalizer End**************************"<<std::endl;
100 }
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().

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

edm::EDGetTokenT<HcalTBBeamCounters> ZdcTBAnalyzer::tok_bc_
private

Definition at line 43 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

edm::EDGetTokenT<HcalTBEventPosition> ZdcTBAnalyzer::tok_pos_
private

Definition at line 44 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

edm::EDGetTokenT<HcalTBTriggerData> ZdcTBAnalyzer::tok_tb_
private

Definition at line 41 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

edm::EDGetTokenT<HcalTBTiming> ZdcTBAnalyzer::tok_timing_
private

Definition at line 42 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

edm::EDGetTokenT<ZDCRecHitCollection> ZdcTBAnalyzer::tok_zdc_
private

Definition at line 40 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and 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().

ZdcTBAnalysis ZdcTBAnalyzer::zdcTBAnalysis
private

Definition at line 38 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), endJob(), and ZdcTBAnalyzer().