CMS 3D CMS Logo

PCaloGeometryBuilder.cc
Go to the documentation of this file.
5 
16 
17 class PCaloGeometryBuilder : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
18 public:
20  : m_ecalE(pset.getUntrackedParameter<bool>("EcalE", true)),
21  m_ecalP(pset.getUntrackedParameter<bool>("EcalP", true)),
22  m_hgcal(pset.getUntrackedParameter<bool>("HGCal", false)) {}
23 
24  void beginRun(edm::Run const& iEvent, edm::EventSetup const&) override;
25  void analyze(edm::Event const& iEvent, edm::EventSetup const&) override {}
26  void endRun(edm::Run const& iEvent, edm::EventSetup const&) override {}
27 
28 private:
29  bool m_ecalE;
30  bool m_ecalP;
31  bool m_hgcal;
32 };
33 
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;
62 
63  std::cout << "Writing out " << CaloTowerGeometry::producerTag() << std::endl;
66 
67  std::cout << "Writing out " << ZdcGeometry::producerTag() << std::endl;
70 
71  std::cout << "Writing out " << CastorGeometry::producerTag() << std::endl;
74 }
75 
ZdcGeometry::producerTag
static std::string producerTag()
Definition: ZdcGeometry.h:44
PCaloGeometryBuilder
Definition: PCaloGeometryBuilder.cc:17
electrons_cff.bool
bool
Definition: electrons_cff.py:366
EDAnalyzer.h
EcalBarrelGeometry.h
MessageLogger.h
funct::false
false
Definition: Factorize.h:29
HcalGeometry::producerTag
static std::string producerTag()
Definition: HcalGeometry.h:65
ESHandle.h
edm::Run
Definition: Run.h:45
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EcalEndcapGeometryRecord
Definition: EcalEndcapGeometryRecord.h:23
CaloTowerGeometry::producerTag
static std::string producerTag()
Definition: CaloTowerGeometry.h:40
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
PCaloGeometryBuilder::PCaloGeometryBuilder
PCaloGeometryBuilder(const edm::ParameterSet &pset)
Definition: PCaloGeometryBuilder.cc:19
ZDCGeometryRecord
Definition: ZDCGeometryRecord.h:23
CastorGeometry::producerTag
static std::string producerTag()
Definition: CastorGeometry.h:48
EcalBarrelGeometryRecord
Definition: EcalBarrelGeometryRecord.h:23
ZdcGeometry.h
HcalGeometry.h
PCaloGeometryBuilder::beginRun
void beginRun(edm::Run const &iEvent, edm::EventSetup const &) override
Definition: PCaloGeometryBuilder.cc:34
PCaloGeometryBuilder::m_ecalE
bool m_ecalE
Definition: PCaloGeometryBuilder.cc:29
MakerMacros.h
PCaloGeometryBuilder::endRun
void endRun(edm::Run const &iEvent, edm::EventSetup const &) override
Definition: PCaloGeometryBuilder.cc:26
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
CastorGeometryRecord
Definition: CastorGeometryRecord.h:23
edm::ESHandle< CaloSubdetectorGeometry >
EcalPreshowerGeometry.h
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalGeometryRecord
Definition: HcalGeometryRecord.h:23
funct::true
true
Definition: Factorize.h:173
EcalBarrelGeometry::producerTag
static std::string producerTag()
Definition: EcalBarrelGeometry.h:83
CaloSubdetectorGeometry.h
HGCalGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
EcalEndcapGeometry.h
PCaloGeometryBuilder::m_hgcal
bool m_hgcal
Definition: PCaloGeometryBuilder.cc:31
CaloTowerGeometryRecord
Definition: CaloTowerGeometryRecord.h:24
iEvent
int iEvent
Definition: GenABIO.cc:224
HGCalGeometry::producerTag
static std::string producerTag()
Definition: HGCalGeometry.h:108
EcalPreshowerGeometry::producerTag
static std::string producerTag()
Definition: EcalPreshowerGeometry.h:62
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
EcalPreshowerGeometryRecord
Definition: EcalPreshowerGeometryRecord.h:23
PCaloGeometryBuilder::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
Definition: PCaloGeometryBuilder.cc:25
EcalEndcapGeometry::producerTag
static std::string producerTag()
Definition: EcalEndcapGeometry.h:77
HGCalGeometryRecord
Definition: HGCalGeometryRecord.h:11
CaloTowerGeometry.h
PCaloGeometryBuilder::m_ecalP
bool m_ecalP
Definition: PCaloGeometryBuilder.cc:30
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
CastorGeometry.h