CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalDigiAnalyzer Class Reference
Inheritance diagram for HcalDigiAnalyzer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &c) override
 
 HcalDigiAnalyzer (edm::ParameterSet const &conf)
 
- 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 noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept 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 noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~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

const edm::EDGetTokenT< CrossingFrame< PCaloHit > > cfToken_
 
const edm::InputTag hbheDigiCollectionTag_
 
const edm::EDGetTokenT< HBHEDigiCollectionhbheDigiCollectionToken_
 
HcalDigiStatistics hbheDigiStatistics_
 
HBHEHitFilter hbheFilter_
 
CaloHitAnalyzer hbheHitAnalyzer_
 
const edm::InputTag hfDigiCollectionTag_
 
const edm::EDGetTokenT< HFDigiCollectionhfDigiCollectionToken_
 
HcalDigiStatistics hfDigiStatistics_
 
HFHitFilter hfFilter_
 
CaloHitAnalyzer hfHitAnalyzer_
 
std::string hitReadoutName_
 
const edm::InputTag hoDigiCollectionTag_
 
const edm::EDGetTokenT< HODigiCollectionhoDigiCollectionToken_
 
HcalDigiStatistics hoDigiStatistics_
 
HOHitFilter hoFilter_
 
CaloHitAnalyzer hoHitAnalyzer_
 
HcalSimParameterMap simParameterMap_
 
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > zdccfToken_
 
HcalDigiStatistics zdcDigiStatistics_
 
ZDCHitFilter zdcFilter_
 
CaloHitAnalyzer zdcHitAnalyzer_
 

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 73 of file HcalDigiAnalyzer.cc.

Constructor & Destructor Documentation

◆ HcalDigiAnalyzer()

HcalDigiAnalyzer::HcalDigiAnalyzer ( edm::ParameterSet const &  conf)
explicit

Definition at line 104 of file HcalDigiAnalyzer.cc.

105  : hitReadoutName_("HcalHits"),
107  hbheFilter_(),
108  hoFilter_(),
109  hfFilter_(),
110  hbheHitAnalyzer_("HBHEDigi", 1., &simParameterMap_, &hbheFilter_),
111  hoHitAnalyzer_("HODigi", 1., &simParameterMap_, &hoFilter_),
112  hfHitAnalyzer_("HFDigi", 1., &simParameterMap_, &hfFilter_),
113  zdcHitAnalyzer_("ZDCDigi", 1., &simParameterMap_, &zdcFilter_),
114  hbheDigiStatistics_("HBHEDigi", 4, 10., 6., 0.1, 0.5, hbheHitAnalyzer_),
115  hoDigiStatistics_("HODigi", 4, 10., 6., 0.1, 0.5, hoHitAnalyzer_),
116  hfDigiStatistics_("HFDigi", 3, 10., 6., 0.1, 0.5, hfHitAnalyzer_),
117  zdcDigiStatistics_("ZDCDigi", 3, 10., 6., 0.1, 0.5, zdcHitAnalyzer_),
118  hbheDigiCollectionTag_(conf.getParameter<edm::InputTag>("hbheDigiCollectionTag")),
119  hoDigiCollectionTag_(conf.getParameter<edm::InputTag>("hoDigiCollectionTag")),
120  hfDigiCollectionTag_(conf.getParameter<edm::InputTag>("hfDigiCollectionTag")),
124  cfToken_(consumes(edm::InputTag("mix", "HcalHits"))),
125  zdccfToken_(consumes(edm::InputTag("mix", "ZDCHits"))) {}
const edm::EDGetTokenT< HFDigiCollection > hfDigiCollectionToken_
CaloHitAnalyzer hoHitAnalyzer_
HFHitFilter hfFilter_
HcalDigiStatistics hfDigiStatistics_
HcalDigiStatistics hoDigiStatistics_
CaloHitAnalyzer hfHitAnalyzer_
CaloHitAnalyzer zdcHitAnalyzer_
CaloHitAnalyzer hbheHitAnalyzer_
HOHitFilter hoFilter_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
HcalDigiStatistics zdcDigiStatistics_
HBHEHitFilter hbheFilter_
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > cfToken_
HcalDigiStatistics hbheDigiStatistics_
ZDCHitFilter zdcFilter_
const edm::InputTag hbheDigiCollectionTag_
const edm::InputTag hfDigiCollectionTag_
const edm::EDGetTokenT< HBHEDigiCollection > hbheDigiCollectionToken_
HcalSimParameterMap simParameterMap_
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > zdccfToken_
const edm::EDGetTokenT< HODigiCollection > hoDigiCollectionToken_
const edm::InputTag hoDigiCollectionTag_
std::string hitReadoutName_

Member Function Documentation

◆ analyze()

void HcalDigiAnalyzer::analyze ( edm::Event const &  e,
edm::EventSetup const &  c 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 138 of file HcalDigiAnalyzer.cc.

References cfToken_, MillePedeFileConverter_cfg::e, CaloHitAnalyzer::fillHits(), hbheDigiCollectionToken_, hbheDigiStatistics_, hbheHitAnalyzer_, hfDigiCollectionToken_, hfDigiStatistics_, hfHitAnalyzer_, hfClusterShapes_cfi::hits, hoDigiCollectionToken_, hoDigiStatistics_, hoHitAnalyzer_, and edm::Handle< T >::product().

138  {
139  // Step A: Get Inputs
140  const edm::Handle<CrossingFrame<PCaloHit>> &cf = e.getHandle(cfToken_);
141  //const edm::Handle<CrossingFrame<PCaloHit>>& zdccf = e.getHandle(zdccfToken_);
142 
143  // test access to SimHits for HcalHits and ZDC hits
144  std::unique_ptr<MixCollection<PCaloHit>> hits(new MixCollection<PCaloHit>(cf.product()));
145  // std::unique_ptr<MixCollection<PCaloHit> > zdcHits(new MixCollection<PCaloHit>(zdccf.product()));
149  // zdcHitAnalyzer_.fillHits(*zdcHits);
150  HcalDigiAnalyzerImpl::analyze<HBHEDigiCollection>(e, hbheDigiStatistics_, hbheDigiCollectionToken_);
151  HcalDigiAnalyzerImpl::analyze<HODigiCollection>(e, hoDigiStatistics_, hoDigiCollectionToken_);
152  HcalDigiAnalyzerImpl::analyze<HFDigiCollection>(e, hfDigiStatistics_, hfDigiCollectionToken_);
153  // HcalDigiAnalyzerImpl::analyze<ZDCDigiCollection>(e, zdcDigiStatistics_);
154 }
const edm::EDGetTokenT< HFDigiCollection > hfDigiCollectionToken_
CaloHitAnalyzer hoHitAnalyzer_
T const * product() const
Definition: Handle.h:70
HcalDigiStatistics hfDigiStatistics_
HcalDigiStatistics hoDigiStatistics_
CaloHitAnalyzer hfHitAnalyzer_
CaloHitAnalyzer hbheHitAnalyzer_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > cfToken_
HcalDigiStatistics hbheDigiStatistics_
const edm::EDGetTokenT< HBHEDigiCollection > hbheDigiCollectionToken_
const edm::EDGetTokenT< HODigiCollection > hoDigiCollectionToken_

Member Data Documentation

◆ cfToken_

const edm::EDGetTokenT<CrossingFrame<PCaloHit> > HcalDigiAnalyzer::cfToken_
private

Definition at line 100 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hbheDigiCollectionTag_

const edm::InputTag HcalDigiAnalyzer::hbheDigiCollectionTag_
private

Definition at line 94 of file HcalDigiAnalyzer.cc.

◆ hbheDigiCollectionToken_

const edm::EDGetTokenT<HBHEDigiCollection> HcalDigiAnalyzer::hbheDigiCollectionToken_
private

Definition at line 97 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hbheDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hbheDigiStatistics_
private

Definition at line 89 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hbheFilter_

HBHEHitFilter HcalDigiAnalyzer::hbheFilter_
private

Definition at line 81 of file HcalDigiAnalyzer.cc.

◆ hbheHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hbheHitAnalyzer_
private

Definition at line 85 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hfDigiCollectionTag_

const edm::InputTag HcalDigiAnalyzer::hfDigiCollectionTag_
private

Definition at line 96 of file HcalDigiAnalyzer.cc.

◆ hfDigiCollectionToken_

const edm::EDGetTokenT<HFDigiCollection> HcalDigiAnalyzer::hfDigiCollectionToken_
private

Definition at line 99 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hfDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hfDigiStatistics_
private

Definition at line 91 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hfFilter_

HFHitFilter HcalDigiAnalyzer::hfFilter_
private

Definition at line 83 of file HcalDigiAnalyzer.cc.

◆ hfHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hfHitAnalyzer_
private

Definition at line 87 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hitReadoutName_

std::string HcalDigiAnalyzer::hitReadoutName_
private

Definition at line 79 of file HcalDigiAnalyzer.cc.

◆ hoDigiCollectionTag_

const edm::InputTag HcalDigiAnalyzer::hoDigiCollectionTag_
private

Definition at line 95 of file HcalDigiAnalyzer.cc.

◆ hoDigiCollectionToken_

const edm::EDGetTokenT<HODigiCollection> HcalDigiAnalyzer::hoDigiCollectionToken_
private

Definition at line 98 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hoDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hoDigiStatistics_
private

Definition at line 90 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ hoFilter_

HOHitFilter HcalDigiAnalyzer::hoFilter_
private

Definition at line 82 of file HcalDigiAnalyzer.cc.

◆ hoHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hoHitAnalyzer_
private

Definition at line 86 of file HcalDigiAnalyzer.cc.

Referenced by analyze().

◆ simParameterMap_

HcalSimParameterMap HcalDigiAnalyzer::simParameterMap_
private

Definition at line 80 of file HcalDigiAnalyzer.cc.

◆ zdccfToken_

const edm::EDGetTokenT<CrossingFrame<PCaloHit> > HcalDigiAnalyzer::zdccfToken_
private

Definition at line 101 of file HcalDigiAnalyzer.cc.

◆ zdcDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::zdcDigiStatistics_
private

Definition at line 92 of file HcalDigiAnalyzer.cc.

◆ zdcFilter_

ZDCHitFilter HcalDigiAnalyzer::zdcFilter_
private

Definition at line 84 of file HcalDigiAnalyzer.cc.

◆ zdcHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::zdcHitAnalyzer_
private

Definition at line 88 of file HcalDigiAnalyzer.cc.