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
PCaloGeometryBuilder Class Reference
Inheritance diagram for PCaloGeometryBuilder:
edm::one::EDAnalyzer< edm::one::WatchRuns > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &iEvent, edm::EventSetup const &) override
 
void beginRun (edm::Run const &iEvent, edm::EventSetup const &) override
 
void endRun (edm::Run const &iEvent, edm::EventSetup const &) override
 
 PCaloGeometryBuilder (const edm::ParameterSet &pset)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- 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

bool m_ecalE
 
bool m_ecalP
 
bool m_hgcal
 

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

Definition at line 17 of file PCaloGeometryBuilder.cc.

Constructor & Destructor Documentation

PCaloGeometryBuilder::PCaloGeometryBuilder ( const edm::ParameterSet pset)
inline

Definition at line 21 of file PCaloGeometryBuilder.cc.

22  : m_ecalE( pset.getUntrackedParameter<bool>( "EcalE", true )),
23  m_ecalP( pset.getUntrackedParameter<bool>( "EcalP", true )),
24  m_hgcal( pset.getUntrackedParameter<bool>( "HGCal", false ))
25  {}
T getUntrackedParameter(std::string const &, T const &) const

Member Function Documentation

void PCaloGeometryBuilder::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &   
)
inlineoverridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 28 of file PCaloGeometryBuilder.cc.

28 {}
void PCaloGeometryBuilder::beginRun ( edm::Run const &  iEvent,
edm::EventSetup const &  es 
)
override

Definition at line 39 of file PCaloGeometryBuilder.cc.

References gather_cfg::cout, edm::EventSetup::get(), m_ecalE, m_ecalP, m_hgcal, ZdcGeometry::producerTag(), CaloTowerGeometry::producerTag(), CastorGeometry::producerTag(), HcalGeometry::producerTag(), EcalPreshowerGeometry::producerTag(), EcalEndcapGeometry::producerTag(), EcalBarrelGeometry::producerTag(), HGCalGeometry::producerTag(), and AlCaHLTBitMon_QueryRunRegistry::string.

40 {
41  const std::string toDB ( "_toDB" ) ;
42 
43  std::cout<<"Writing out "<<EcalBarrelGeometry::producerTag()<<std::endl ;
46  EcalBarrelGeometry::producerTag() + toDB, pGeb ) ;
47 
48  if( m_ecalE )
49  {
50  std::cout<<"Writing out "<<EcalEndcapGeometry::producerTag()<<std::endl;
53  }
54 
55  if( m_ecalP )
56  {
57  std::cout<<"Writing out "<<EcalPreshowerGeometry::producerTag()<<std::endl ;
60  }
61 
62  if( m_hgcal )
63  {
64  std::cout<<"Writing out "<<HGCalGeometry::producerTag()<<std::endl;
66  es.get<HGCalGeometry::AlignedRecord>().get( HGCalGeometry::producerTag() + toDB, pGee );
67  }
68 
69  std::cout<<"Writing out "<<HcalGeometry::producerTag()<<std::endl ;
71  es.get<HcalGeometry::AlignedRecord>().get(
72  HcalGeometry::producerTag() + toDB, pGhcal ) ;
73 
74  std::cout<<"Writing out "<<CaloTowerGeometry::producerTag()<<std::endl ;
77  CaloTowerGeometry::producerTag() + toDB, pGct ) ;
78 
79  std::cout<<"Writing out "<<ZdcGeometry::producerTag()<<std::endl ;
81  es.get<ZdcGeometry::AlignedRecord>().get(
82  ZdcGeometry::producerTag() + toDB, pGzdc ) ;
83 
84  std::cout<<"Writing out "<<CastorGeometry::producerTag()<<std::endl ;
86  es.get<CastorGeometry::AlignedRecord>().get(
87  CastorGeometry::producerTag() + toDB, pGcast ) ;
88 }
static std::string producerTag()
Definition: ZdcGeometry.h:46
static std::string producerTag()
Definition: HGCalGeometry.h:93
static std::string producerTag()
Definition: HcalGeometry.h:54
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
tuple cout
Definition: gather_cfg.py:145
void PCaloGeometryBuilder::endRun ( edm::Run const &  iEvent,
edm::EventSetup const &   
)
inlineoverride

Definition at line 29 of file PCaloGeometryBuilder.cc.

29 {}

Member Data Documentation

bool PCaloGeometryBuilder::m_ecalE
private

Definition at line 33 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

bool PCaloGeometryBuilder::m_ecalP
private

Definition at line 34 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

bool PCaloGeometryBuilder::m_hgcal
private

Definition at line 35 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().