CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ZdcTBAnalyzer Class Reference
Inheritance diagram for ZdcTBAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void endJob () override
 
 ZdcTBAnalyzer (const edm::ParameterSet &)
 
 ~ZdcTBAnalyzer () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

bool beamDetectorsADCInfo
 
bool beamDetectorsTDCInfo
 
std::string inputFileName
 
std::string outputFileName
 
edm::EDGetTokenT< HcalTBBeamCounterstok_bc_
 
edm::EDGetTokenT< HcalTBEventPositiontok_pos_
 
edm::EDGetTokenT< HcalTBTriggerDatatok_tb_
 
edm::EDGetTokenT< HcalTBTimingtok_timing_
 
edm::EDGetTokenT< ZDCRecHitCollectiontok_zdc_
 
bool triggerInfo
 
bool wireChambersInfo
 
ZdcTBAnalysis zdcTBAnalysis
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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
edm::EDGetTokenT< ZDCRecHitCollection > tok_zdc_
edm::EDGetTokenT< HcalTBTiming > tok_timing_
ZdcTBAnalyzer::~ZdcTBAnalyzer ( )
override

Definition at line 66 of file ZdcTBAnalyzer.cc.

66 {;}

Member Function Documentation

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

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, wireChambersInfo, and zdcTBAnalysis.

68  {
69  using namespace edm;
75 
76  e.getByToken(tok_zdc_, zdcRecHits);
77  if(triggerInfo){
78  e.getByToken(tok_tb_, triggers);
79  zdcTBAnalysis.analyze(*triggers);
80  }
82  e.getByToken(tok_timing_, times); // e.getByLabel("tbunpacker2",times);
83  zdcTBAnalysis.analyze(*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:517
edm::EDGetTokenT< HcalTBBeamCounters > tok_bc_
void analyze(const ZDCRecHitCollection &hf)
edm::EDGetTokenT< HcalTBTriggerData > tok_tb_
bool beamDetectorsADCInfo
edm::EDGetTokenT< HcalTBEventPosition > tok_pos_
ZdcTBAnalysis zdcTBAnalysis
HLT enums.
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, DEFINE_FWK_MODULE, ZdcTBAnalysis::done(), and zdcTBAnalysis.

97  {
99 std::cout<<"****************ZdcTBAnalizer End**************************"<<std::endl;
100 }
ZdcTBAnalysis zdcTBAnalysis

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