CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalDigiAnalyzer Class Reference

#include <HcalDigiAnalyzer.h>

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
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
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 &&)=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

edm::InputTag hbheDigiCollectionTag_
 
HcalDigiStatistics hbheDigiStatistics_
 
HBHEHitFilter hbheFilter_
 
CaloHitAnalyzer hbheHitAnalyzer_
 
edm::InputTag hfDigiCollectionTag_
 
HcalDigiStatistics hfDigiStatistics_
 
HFHitFilter hfFilter_
 
CaloHitAnalyzer hfHitAnalyzer_
 
std::string hitReadoutName_
 
edm::InputTag hoDigiCollectionTag_
 
HcalDigiStatistics hoDigiStatistics_
 
HOHitFilter hoFilter_
 
CaloHitAnalyzer hoHitAnalyzer_
 
HcalSimParameterMap simParameterMap_
 
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
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

Studies Hcal digis

\Author Rick Wilkinson, Caltech

Definition at line 22 of file HcalDigiAnalyzer.h.

Constructor & Destructor Documentation

◆ HcalDigiAnalyzer()

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

Definition at line 6 of file HcalDigiAnalyzer.cc.

7  : hitReadoutName_("HcalHits"),
9  hbheFilter_(),
10  hoFilter_(),
11  hfFilter_(),
12  hbheHitAnalyzer_("HBHEDigi", 1., &simParameterMap_, &hbheFilter_),
13  hoHitAnalyzer_("HODigi", 1., &simParameterMap_, &hoFilter_),
14  hfHitAnalyzer_("HFDigi", 1., &simParameterMap_, &hfFilter_),
15  zdcHitAnalyzer_("ZDCDigi", 1., &simParameterMap_, &zdcFilter_),
16  hbheDigiStatistics_("HBHEDigi", 4, 10., 6., 0.1, 0.5, hbheHitAnalyzer_),
17  hoDigiStatistics_("HODigi", 4, 10., 6., 0.1, 0.5, hoHitAnalyzer_),
18  hfDigiStatistics_("HFDigi", 3, 10., 6., 0.1, 0.5, hfHitAnalyzer_),
19  zdcDigiStatistics_("ZDCDigi", 3, 10., 6., 0.1, 0.5, zdcHitAnalyzer_),
20  hbheDigiCollectionTag_(conf.getParameter<edm::InputTag>("hbheDigiCollectionTag")),
21  hoDigiCollectionTag_(conf.getParameter<edm::InputTag>("hoDigiCollectionTag")),
22  hfDigiCollectionTag_(conf.getParameter<edm::InputTag>("hfDigiCollectionTag")) {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 36 of file HcalDigiAnalyzer.cc.

36  {
37  // Step A: Get Inputs
39  e.getByLabel("mix", "HcalHits", cf);
40  // e.getByLabel("mix", "ZDCHits", zdccf);
41 
42  // test access to SimHits for HcalHits and ZDC hits
43  std::unique_ptr<MixCollection<PCaloHit>> hits(new MixCollection<PCaloHit>(cf.product()));
44  // std::unique_ptr<MixCollection<PCaloHit> > zdcHits(new
45  // MixCollection<PCaloHit>(zdccf.product()));
49  // zdcHitAnalyzer_.fillHits(*zdcHits);
50  HcalDigiAnalyzerImpl::analyze<HBHEDigiCollection>(e, hbheDigiStatistics_, hbheDigiCollectionTag_);
51  HcalDigiAnalyzerImpl::analyze<HODigiCollection>(e, hoDigiStatistics_, hoDigiCollectionTag_);
52  HcalDigiAnalyzerImpl::analyze<HFDigiCollection>(e, hfDigiStatistics_, hfDigiCollectionTag_);
53  // HcalDigiAnalyzerImpl::analyze<ZDCDigiCollection>(e, zdcDigiStatistics_);
54 }

References MillePedeFileConverter_cfg::e, CaloHitAnalyzer::fillHits(), hbheDigiCollectionTag_, hbheDigiStatistics_, hbheHitAnalyzer_, hfDigiCollectionTag_, hfDigiStatistics_, hfHitAnalyzer_, hfClusterShapes_cfi::hits, hoDigiCollectionTag_, hoDigiStatistics_, hoHitAnalyzer_, and edm::Handle< T >::product().

Member Data Documentation

◆ hbheDigiCollectionTag_

edm::InputTag HcalDigiAnalyzer::hbheDigiCollectionTag_
private

Definition at line 43 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hbheDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hbheDigiStatistics_
private

Definition at line 38 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hbheFilter_

HBHEHitFilter HcalDigiAnalyzer::hbheFilter_
private

Definition at line 30 of file HcalDigiAnalyzer.h.

◆ hbheHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hbheHitAnalyzer_
private

Definition at line 34 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hfDigiCollectionTag_

edm::InputTag HcalDigiAnalyzer::hfDigiCollectionTag_
private

Definition at line 45 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hfDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hfDigiStatistics_
private

Definition at line 40 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hfFilter_

HFHitFilter HcalDigiAnalyzer::hfFilter_
private

Definition at line 32 of file HcalDigiAnalyzer.h.

◆ hfHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hfHitAnalyzer_
private

Definition at line 36 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hitReadoutName_

std::string HcalDigiAnalyzer::hitReadoutName_
private

Definition at line 28 of file HcalDigiAnalyzer.h.

◆ hoDigiCollectionTag_

edm::InputTag HcalDigiAnalyzer::hoDigiCollectionTag_
private

Definition at line 44 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hoDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::hoDigiStatistics_
private

Definition at line 39 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ hoFilter_

HOHitFilter HcalDigiAnalyzer::hoFilter_
private

Definition at line 31 of file HcalDigiAnalyzer.h.

◆ hoHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::hoHitAnalyzer_
private

Definition at line 35 of file HcalDigiAnalyzer.h.

Referenced by analyze().

◆ simParameterMap_

HcalSimParameterMap HcalDigiAnalyzer::simParameterMap_
private

Definition at line 29 of file HcalDigiAnalyzer.h.

◆ zdcDigiStatistics_

HcalDigiStatistics HcalDigiAnalyzer::zdcDigiStatistics_
private

Definition at line 41 of file HcalDigiAnalyzer.h.

◆ zdcFilter_

ZDCHitFilter HcalDigiAnalyzer::zdcFilter_
private

Definition at line 33 of file HcalDigiAnalyzer.h.

◆ zdcHitAnalyzer_

CaloHitAnalyzer HcalDigiAnalyzer::zdcHitAnalyzer_
private

Definition at line 37 of file HcalDigiAnalyzer.h.

HcalDigiAnalyzer::hbheDigiCollectionTag_
edm::InputTag hbheDigiCollectionTag_
Definition: HcalDigiAnalyzer.h:43
edm::Handle::product
T const * product() const
Definition: Handle.h:70
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
HcalDigiAnalyzer::hfDigiStatistics_
HcalDigiStatistics hfDigiStatistics_
Definition: HcalDigiAnalyzer.h:40
HcalDigiAnalyzer::zdcDigiStatistics_
HcalDigiStatistics zdcDigiStatistics_
Definition: HcalDigiAnalyzer.h:41
HcalDigiAnalyzer::hbheDigiStatistics_
HcalDigiStatistics hbheDigiStatistics_
Definition: HcalDigiAnalyzer.h:38
edm::Handle
Definition: AssociativeIterator.h:50
HcalDigiAnalyzer::hfHitAnalyzer_
CaloHitAnalyzer hfHitAnalyzer_
Definition: HcalDigiAnalyzer.h:36
HcalDigiAnalyzer::hoDigiCollectionTag_
edm::InputTag hoDigiCollectionTag_
Definition: HcalDigiAnalyzer.h:44
MixCollection
Definition: MixCollection.h:10
HcalDigiAnalyzer::simParameterMap_
HcalSimParameterMap simParameterMap_
Definition: HcalDigiAnalyzer.h:29
CaloHitAnalyzer::fillHits
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
Definition: CaloHitAnalyzer.cc:22
HcalDigiAnalyzer::zdcHitAnalyzer_
CaloHitAnalyzer zdcHitAnalyzer_
Definition: HcalDigiAnalyzer.h:37
HcalDigiAnalyzer::hbheFilter_
HBHEHitFilter hbheFilter_
Definition: HcalDigiAnalyzer.h:30
HcalDigiAnalyzer::hfFilter_
HFHitFilter hfFilter_
Definition: HcalDigiAnalyzer.h:32
HcalDigiAnalyzer::hbheHitAnalyzer_
CaloHitAnalyzer hbheHitAnalyzer_
Definition: HcalDigiAnalyzer.h:34
HcalDigiAnalyzer::zdcFilter_
ZDCHitFilter zdcFilter_
Definition: HcalDigiAnalyzer.h:33
HcalDigiAnalyzer::hoHitAnalyzer_
CaloHitAnalyzer hoHitAnalyzer_
Definition: HcalDigiAnalyzer.h:35
HcalDigiAnalyzer::hfDigiCollectionTag_
edm::InputTag hfDigiCollectionTag_
Definition: HcalDigiAnalyzer.h:45
edm::InputTag
Definition: InputTag.h:15
HcalDigiAnalyzer::hitReadoutName_
std::string hitReadoutName_
Definition: HcalDigiAnalyzer.h:28
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HcalDigiAnalyzer::hoFilter_
HOHitFilter hoFilter_
Definition: HcalDigiAnalyzer.h:31
HcalDigiAnalyzer::hoDigiStatistics_
HcalDigiStatistics hoDigiStatistics_
Definition: HcalDigiAnalyzer.h:39