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
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (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::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
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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 19 of file PCaloGeometryBuilder.cc.

References beginRun(), and iEvent.

20  : m_ecalE(pset.getUntrackedParameter<bool>("EcalE", true)),
21  m_ecalP(pset.getUntrackedParameter<bool>("EcalP", true)),
22  m_hgcal(pset.getUntrackedParameter<bool>("HGCal", false)) {}
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 25 of file PCaloGeometryBuilder.cc.

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

Definition at line 34 of file PCaloGeometryBuilder.cc.

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

Referenced by PCaloGeometryBuilder().

34  {
35  const std::string toDB("_toDB");
36 
37  std::cout << "Writing out " << EcalBarrelGeometry::producerTag() << std::endl;
40 
41  if (m_ecalE) {
42  std::cout << "Writing out " << EcalEndcapGeometry::producerTag() << std::endl;
45  }
46 
47  if (m_ecalP) {
48  std::cout << "Writing out " << EcalPreshowerGeometry::producerTag() << std::endl;
51  }
52 
53  if (m_hgcal) {
54  std::cout << "Writing out " << HGCalGeometry::producerTag() << std::endl;
56  es.get<HGCalGeometry::AlignedRecord>().get(HGCalGeometry::producerTag() + toDB, pGee);
57  }
58 
59  std::cout << "Writing out " << HcalGeometry::producerTag() << std::endl;
61  es.get<HcalGeometry::AlignedRecord>().get(HcalGeometry::producerTag() + toDB, pGhcal);
62 
63  std::cout << "Writing out " << CaloTowerGeometry::producerTag() << std::endl;
66 
67  std::cout << "Writing out " << ZdcGeometry::producerTag() << std::endl;
69  es.get<ZdcGeometry::AlignedRecord>().get(ZdcGeometry::producerTag() + toDB, pGzdc);
70 
71  std::cout << "Writing out " << CastorGeometry::producerTag() << std::endl;
73  es.get<CastorGeometry::AlignedRecord>().get(CastorGeometry::producerTag() + toDB, pGcast);
74 }
static std::string producerTag()
Definition: ZdcGeometry.h:44
static std::string producerTag()
static std::string producerTag()
Definition: HcalGeometry.h:63
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 26 of file PCaloGeometryBuilder.cc.

26 {}

Member Data Documentation

bool PCaloGeometryBuilder::m_ecalE
private

Definition at line 29 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

bool PCaloGeometryBuilder::m_ecalP
private

Definition at line 30 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

bool PCaloGeometryBuilder::m_hgcal
private

Definition at line 31 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().