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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

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.

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 }

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.

◆ ~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::EDAnalyzer.

Definition at line 65 of file ZdcTBAnalyzer.cc.

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 }

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

◆ endJob()

void ZdcTBAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 94 of file ZdcTBAnalyzer.cc.

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

References gather_cfg::cout, ZdcTBAnalysis::done(), and 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().

ZdcTBAnalyzer::wireChambersInfo
bool wireChambersInfo
Definition: ZdcTBAnalyzer.cc:34
ZdcTBAnalysis::fillTree
void fillTree()
Definition: ZdcTBAnalysis.cc:302
edm
HLT enums.
Definition: AlignableModifier.h:19
ZdcTBAnalysis::analyze
void analyze(const ZDCRecHitCollection &hf)
Definition: ZdcTBAnalysis.cc:241
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ZdcTBAnalyzer::triggerInfo
bool triggerInfo
Definition: ZdcTBAnalyzer.cc:35
ZdcTBAnalyzer::tok_zdc_
edm::EDGetTokenT< ZDCRecHitCollection > tok_zdc_
Definition: ZdcTBAnalyzer.cc:38
ZdcTBAnalyzer::beamDetectorsADCInfo
bool beamDetectorsADCInfo
Definition: ZdcTBAnalyzer.cc:32
edm::Handle
Definition: AssociativeIterator.h:50
ZdcTBAnalyzer::tok_pos_
edm::EDGetTokenT< HcalTBEventPosition > tok_pos_
Definition: ZdcTBAnalyzer.cc:42
ZdcTBAnalyzer::tok_bc_
edm::EDGetTokenT< HcalTBBeamCounters > tok_bc_
Definition: ZdcTBAnalyzer.cc:41
ZdcTBAnalysis::done
void done()
Definition: ZdcTBAnalysis.cc:304
ZdcTBAnalyzer::beamDetectorsTDCInfo
bool beamDetectorsTDCInfo
Definition: ZdcTBAnalyzer.cc:33
ZdcTBAnalyzer::tok_timing_
edm::EDGetTokenT< HcalTBTiming > tok_timing_
Definition: ZdcTBAnalyzer.cc:40
ZdcTBAnalyzer::outputFileName
std::string outputFileName
Definition: ZdcTBAnalyzer.cc:30
ZdcTBAnalyzer::zdcTBAnalysis
ZdcTBAnalysis zdcTBAnalysis
Definition: ZdcTBAnalyzer.cc:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
ZdcTBAnalysis::setup
void setup(const std::string &histoFileName)
Definition: ZdcTBAnalysis.cc:8
ZdcTBAnalyzer::tok_tb_
edm::EDGetTokenT< HcalTBTriggerData > tok_tb_
Definition: ZdcTBAnalyzer.cc:39
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37