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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
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

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

Definition at line 17 of file PCaloGeometryBuilder.cc.

Constructor & Destructor Documentation

◆ PCaloGeometryBuilder()

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

Definition at line 19 of file PCaloGeometryBuilder.cc.

20  : m_ecalE(pset.getUntrackedParameter<bool>("EcalE", true)),
21  m_ecalP(pset.getUntrackedParameter<bool>("EcalP", true)),
22  m_hgcal(pset.getUntrackedParameter<bool>("HGCal", false)) {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 25 of file PCaloGeometryBuilder.cc.

25 {}

◆ beginRun()

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

Definition at line 34 of file PCaloGeometryBuilder.cc.

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;
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;
74 }

References gather_cfg::cout, edm::EventSetup::get(), 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.

◆ endRun()

void PCaloGeometryBuilder::endRun ( edm::Run const &  iEvent,
edm::EventSetup const &   
)
inlineoverride

Definition at line 26 of file PCaloGeometryBuilder.cc.

26 {}

Member Data Documentation

◆ m_ecalE

bool PCaloGeometryBuilder::m_ecalE
private

Definition at line 29 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

◆ m_ecalP

bool PCaloGeometryBuilder::m_ecalP
private

Definition at line 30 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

◆ m_hgcal

bool PCaloGeometryBuilder::m_hgcal
private

Definition at line 31 of file PCaloGeometryBuilder.cc.

Referenced by beginRun().

ZdcGeometry::producerTag
static std::string producerTag()
Definition: ZdcGeometry.h:44
HcalGeometry::producerTag
static std::string producerTag()
Definition: HcalGeometry.h:63
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EcalEndcapGeometryRecord
Definition: EcalEndcapGeometryRecord.h:23
CaloTowerGeometry::producerTag
static std::string producerTag()
Definition: CaloTowerGeometry.h:40
ZDCGeometryRecord
Definition: ZDCGeometryRecord.h:23
CastorGeometry::producerTag
static std::string producerTag()
Definition: CastorGeometry.h:48
EcalBarrelGeometryRecord
Definition: EcalBarrelGeometryRecord.h:23
PCaloGeometryBuilder::m_ecalE
bool m_ecalE
Definition: PCaloGeometryBuilder.cc:29
CastorGeometryRecord
Definition: CastorGeometryRecord.h:23
edm::ESHandle< CaloSubdetectorGeometry >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalGeometryRecord
Definition: HcalGeometryRecord.h:23
EcalBarrelGeometry::producerTag
static std::string producerTag()
Definition: EcalBarrelGeometry.h:83
PCaloGeometryBuilder::m_hgcal
bool m_hgcal
Definition: PCaloGeometryBuilder.cc:31
CaloTowerGeometryRecord
Definition: CaloTowerGeometryRecord.h:24
HGCalGeometry::producerTag
static std::string producerTag()
Definition: HGCalGeometry.h:109
EcalPreshowerGeometry::producerTag
static std::string producerTag()
Definition: EcalPreshowerGeometry.h:62
get
#define get
EcalPreshowerGeometryRecord
Definition: EcalPreshowerGeometryRecord.h:23
EcalEndcapGeometry::producerTag
static std::string producerTag()
Definition: EcalEndcapGeometry.h:77
HGCalGeometryRecord
Definition: HGCalGeometryRecord.h:11
PCaloGeometryBuilder::m_ecalP
bool m_ecalP
Definition: PCaloGeometryBuilder.cc:30
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27