test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalDigiAnalyzer Class Reference

#include <HcalDigiAnalyzer.h>

Inheritance diagram for HcalDigiAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &c)
 
 HcalDigiAnalyzer (edm::ParameterSet const &conf)
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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::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 &)
 
- 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 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

Studies Hcal digis

Rick Wilkinson, Caltech

Definition at line 25 of file HcalDigiAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 7 of file HcalDigiAnalyzer.cc.

8 : hitReadoutName_("HcalHits"),
10  hbheFilter_(),
11  hoFilter_(),
12  hfFilter_(true),
13  hbheHitAnalyzer_("HBHEDigi", 1., &simParameterMap_, &hbheFilter_),
14  hoHitAnalyzer_("HODigi", 1., &simParameterMap_, &hoFilter_),
15  hfHitAnalyzer_("HFDigi", 1., &simParameterMap_, &hfFilter_),
16  zdcHitAnalyzer_("ZDCDigi", 1., &simParameterMap_, &zdcFilter_),
17  hbheDigiStatistics_("HBHEDigi", 4, 10., 6., 0.1, 0.5, hbheHitAnalyzer_),
18  hoDigiStatistics_("HODigi", 4, 10., 6., 0.1, 0.5, hoHitAnalyzer_),
19  hfDigiStatistics_("HFDigi", 3, 10., 6., 0.1, 0.5, hfHitAnalyzer_),
20  zdcDigiStatistics_("ZDCDigi", 3, 10., 6., 0.1, 0.5, zdcHitAnalyzer_),
21  hbheDigiCollectionTag_(conf.getParameter<edm::InputTag>("hbheDigiCollectionTag")),
22  hoDigiCollectionTag_(conf.getParameter<edm::InputTag>("hoDigiCollectionTag")),
23  hfDigiCollectionTag_(conf.getParameter<edm::InputTag>("hfDigiCollectionTag"))
24 {
25 }
edm::InputTag hfDigiCollectionTag_
CaloHitAnalyzer hoHitAnalyzer_
HFHitFilter hfFilter_
HcalDigiStatistics hfDigiStatistics_
HcalDigiStatistics hoDigiStatistics_
edm::InputTag hbheDigiCollectionTag_
CaloHitAnalyzer hfHitAnalyzer_
CaloHitAnalyzer zdcHitAnalyzer_
CaloHitAnalyzer hbheHitAnalyzer_
HOHitFilter hoFilter_
HcalDigiStatistics zdcDigiStatistics_
edm::InputTag hoDigiCollectionTag_
HBHEHitFilter hbheFilter_
HcalDigiStatistics hbheDigiStatistics_
ZDCHitFilter zdcFilter_
HcalSimParameterMap simParameterMap_
std::string hitReadoutName_

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 41 of file HcalDigiAnalyzer.cc.

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

41  {
42  // Step A: Get Inputs
44  e.getByLabel("mix", "HcalHits",cf);
45  //e.getByLabel("mix", "ZDCHits", zdccf);
46 
47  // test access to SimHits for HcalHits and ZDC hits
48  std::auto_ptr<MixCollection<PCaloHit> > hits(new MixCollection<PCaloHit>(cf.product()));
49  //std::auto_ptr<MixCollection<PCaloHit> > zdcHits(new MixCollection<PCaloHit>(zdccf.product()));
51  hoHitAnalyzer_.fillHits(*hits);
52  hfHitAnalyzer_.fillHits(*hits);
53  //zdcHitAnalyzer_.fillHits(*zdcHits);
54  HcalDigiAnalyzerImpl::analyze<HBHEDigiCollection>(e, hbheDigiStatistics_, hbheDigiCollectionTag_);
55  HcalDigiAnalyzerImpl::analyze<HODigiCollection>(e, hoDigiStatistics_, hoDigiCollectionTag_);
56  HcalDigiAnalyzerImpl::analyze<HFDigiCollection>(e, hfDigiStatistics_, hfDigiCollectionTag_);
57  //HcalDigiAnalyzerImpl::analyze<ZDCDigiCollection>(e, zdcDigiStatistics_);
58 }
edm::InputTag hfDigiCollectionTag_
CaloHitAnalyzer hoHitAnalyzer_
HcalDigiStatistics hfDigiStatistics_
HcalDigiStatistics hoDigiStatistics_
edm::InputTag hbheDigiCollectionTag_
CaloHitAnalyzer hfHitAnalyzer_
CaloHitAnalyzer hbheHitAnalyzer_
edm::InputTag hoDigiCollectionTag_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
HcalDigiStatistics hbheDigiStatistics_
T const * product() const
Definition: Handle.h:81

Member Data Documentation

edm::InputTag HcalDigiAnalyzer::hbheDigiCollectionTag_
private

Definition at line 49 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HcalDigiStatistics HcalDigiAnalyzer::hbheDigiStatistics_
private

Definition at line 44 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HBHEHitFilter HcalDigiAnalyzer::hbheFilter_
private

Definition at line 36 of file HcalDigiAnalyzer.h.

CaloHitAnalyzer HcalDigiAnalyzer::hbheHitAnalyzer_
private

Definition at line 40 of file HcalDigiAnalyzer.h.

Referenced by analyze().

edm::InputTag HcalDigiAnalyzer::hfDigiCollectionTag_
private

Definition at line 51 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HcalDigiStatistics HcalDigiAnalyzer::hfDigiStatistics_
private

Definition at line 46 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HFHitFilter HcalDigiAnalyzer::hfFilter_
private

Definition at line 38 of file HcalDigiAnalyzer.h.

CaloHitAnalyzer HcalDigiAnalyzer::hfHitAnalyzer_
private

Definition at line 42 of file HcalDigiAnalyzer.h.

Referenced by analyze().

std::string HcalDigiAnalyzer::hitReadoutName_
private

Definition at line 34 of file HcalDigiAnalyzer.h.

edm::InputTag HcalDigiAnalyzer::hoDigiCollectionTag_
private

Definition at line 50 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HcalDigiStatistics HcalDigiAnalyzer::hoDigiStatistics_
private

Definition at line 45 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HOHitFilter HcalDigiAnalyzer::hoFilter_
private

Definition at line 37 of file HcalDigiAnalyzer.h.

CaloHitAnalyzer HcalDigiAnalyzer::hoHitAnalyzer_
private

Definition at line 41 of file HcalDigiAnalyzer.h.

Referenced by analyze().

HcalSimParameterMap HcalDigiAnalyzer::simParameterMap_
private

Definition at line 35 of file HcalDigiAnalyzer.h.

HcalDigiStatistics HcalDigiAnalyzer::zdcDigiStatistics_
private

Definition at line 47 of file HcalDigiAnalyzer.h.

ZDCHitFilter HcalDigiAnalyzer::zdcFilter_
private

Definition at line 39 of file HcalDigiAnalyzer.h.

CaloHitAnalyzer HcalDigiAnalyzer::zdcHitAnalyzer_
private

Definition at line 43 of file HcalDigiAnalyzer.h.