CMS 3D CMS Logo

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
 
 ~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
 
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::vector< ModuleDescription const * > &modules, 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
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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.

References beginRun(), and iEvent.

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

Definition at line 39 of file PCaloGeometryBuilder.cc.

References gather_cfg::cout, DEFINE_FWK_MODULE, 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.

Referenced by PCaloGeometryBuilder().

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:66
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
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().