CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ZdcTBAnalyzer Class Reference
Inheritance diagram for ZdcTBAnalyzer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase 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::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 22 of file ZdcTBAnalyzer.cc.

Constructor & Destructor Documentation

◆ ZdcTBAnalyzer()

ZdcTBAnalyzer::ZdcTBAnalyzer ( const edm::ParameterSet iConfig)
explicit

Definition at line 45 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.

45  {
46  tok_zdc_ = consumes<ZDCRecHitCollection>(iConfig.getParameter<edm::InputTag>("zdcRecHitCollectionTag"));
47  tok_tb_ = consumes<HcalTBTriggerData>(iConfig.getParameter<edm::InputTag>("hcalTBTriggerDataTag"));
48  tok_timing_ = consumes<HcalTBTiming>(iConfig.getParameter<edm::InputTag>("hcalTBTimingTag"));
49  tok_bc_ = consumes<HcalTBBeamCounters>(iConfig.getParameter<edm::InputTag>("hcalTBBeamCountersTag"));
50  tok_pos_ = consumes<HcalTBEventPosition>(iConfig.getParameter<edm::InputTag>("hcalTBEventPositionTag"));
51 
52  std::cout << "**************** ZdcTBAnalizer Start**************************" << std::endl;
53  edm::ParameterSet para = iConfig.getParameter<edm::ParameterSet>("ZdcTBAnalyzer");
54 
55  beamDetectorsADCInfo = para.getParameter<bool>("beamDetectorsADCInfoFlag");
56  beamDetectorsTDCInfo = para.getParameter<bool>("beamDetectorsTDCInfoFlag");
57  wireChambersInfo = para.getParameter<bool>("wireChambersInfoFlag");
58  triggerInfo = para.getParameter<bool>("triggerInfoFlag");
59  outputFileName = para.getParameter<std::string>("ntupleOutputFileName");
61 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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::~ZdcTBAnalyzer ( )
override

Definition at line 63 of file ZdcTBAnalyzer.cc.

63 { ; }

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 65 of file ZdcTBAnalyzer.cc.

References ZdcTBAnalysis::analyze(), beamDetectorsADCInfo, beamDetectorsTDCInfo, MillePedeFileConverter_cfg::e, ZdcTBAnalysis::fillTree(), tok_bc_, tok_pos_, tok_tb_, tok_timing_, tok_zdc_, triggerInfo, wireChambersInfo, and zdcTBAnalysis.

65  {
66  using namespace edm;
72 
73  e.getByToken(tok_zdc_, zdcRecHits);
74  if (triggerInfo) {
75  e.getByToken(tok_tb_, triggers);
76  zdcTBAnalysis.analyze(*triggers);
77  }
79  e.getByToken(tok_timing_, times); // e.getByLabel("tbunpacker2",times);
80  zdcTBAnalysis.analyze(*times);
81  }
83  e.getByToken(tok_bc_, bc);
85  }
86  if (wireChambersInfo) {
87  e.getByToken(tok_pos_, chpos);
88  zdcTBAnalysis.analyze(*chpos);
89  }
90  zdcTBAnalysis.analyze(*zdcRecHits);
92 }
bool beamDetectorsTDCInfo
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_

◆ endJob()

void ZdcTBAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 94 of file ZdcTBAnalyzer.cc.

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

94  {
96  std::cout << "****************ZdcTBAnalizer End**************************" << std::endl;
97 }
ZdcTBAnalysis zdcTBAnalysis

Member Data Documentation

◆ beamDetectorsADCInfo

bool ZdcTBAnalyzer::beamDetectorsADCInfo
private

Definition at line 32 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ beamDetectorsTDCInfo

bool ZdcTBAnalyzer::beamDetectorsTDCInfo
private

Definition at line 33 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ inputFileName

std::string ZdcTBAnalyzer::inputFileName
private

Definition at line 31 of file ZdcTBAnalyzer.cc.

◆ outputFileName

std::string ZdcTBAnalyzer::outputFileName
private

Definition at line 30 of file ZdcTBAnalyzer.cc.

Referenced by ZdcTBAnalyzer().

◆ tok_bc_

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

Definition at line 41 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ tok_pos_

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

Definition at line 42 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ tok_tb_

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

Definition at line 39 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ tok_timing_

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

Definition at line 40 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ tok_zdc_

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

Definition at line 38 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ triggerInfo

bool ZdcTBAnalyzer::triggerInfo
private

Definition at line 35 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ wireChambersInfo

bool ZdcTBAnalyzer::wireChambersInfo
private

Definition at line 34 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

◆ zdcTBAnalysis

ZdcTBAnalysis ZdcTBAnalyzer::zdcTBAnalysis
private

Definition at line 36 of file ZdcTBAnalyzer.cc.

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