CMS 3D CMS Logo

Navigators.cc
Go to the documentation of this file.
2 
4 
11 
12 class PFRecHitEcalBarrelNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EBDetId, EcalBarrelTopology> {
13 public:
15 
16  void beginEvent(const edm::EventSetup& iSetup) override {
18  iSetup.get<CaloGeometryRecord>().get(geoHandle);
19  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
20  }
21 };
22 
23 class PFRecHitEcalEndcapNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EEDetId, EcalEndcapTopology> {
24 public:
26 
27  void beginEvent(const edm::EventSetup& iSetup) override {
29  iSetup.get<CaloGeometryRecord>().get(geoHandle);
30  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
31  }
32 };
33 
34 class PFRecHitEcalBarrelNavigator final : public PFRecHitCaloNavigator<EBDetId, EcalBarrelTopology> {
35 public:
37 
38  void beginEvent(const edm::EventSetup& iSetup) override {
40  iSetup.get<CaloGeometryRecord>().get(geoHandle);
41  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
42  }
43 };
44 
45 class PFRecHitEcalEndcapNavigator final : public PFRecHitCaloNavigator<EEDetId, EcalEndcapTopology> {
46 public:
48 
49  void beginEvent(const edm::EventSetup& iSetup) override {
51  iSetup.get<CaloGeometryRecord>().get(geoHandle);
52  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
53  }
54 };
55 
56 class PFRecHitPreshowerNavigator final : public PFRecHitCaloNavigator<ESDetId, EcalPreshowerTopology> {
57 public:
59 
60  void beginEvent(const edm::EventSetup& iSetup) override { topology_ = std::make_unique<EcalPreshowerTopology>(); }
61 };
62 
63 class PFRecHitHCALNavigator final : public PFRecHitCaloNavigator<HcalDetId, HcalTopology, false> {
64 public:
66 
67  void beginEvent(const edm::EventSetup& iSetup) override {
68  edm::ESHandle<HcalTopology> hcalTopology;
69  iSetup.get<HcalRecNumberingRecord>().get(hcalTopology);
70  topology_.release();
71  topology_.reset(hcalTopology.product());
72  }
73 };
74 class PFRecHitHCALNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<HcalDetId, HcalTopology, false> {
75 public:
77 
78  void beginEvent(const edm::EventSetup& iSetup) override {
79  edm::ESHandle<HcalTopology> hcalTopology;
80  iSetup.get<HcalRecNumberingRecord>().get(hcalTopology);
81  topology_.release();
82  topology_.reset(hcalTopology.product());
83  }
84 };
85 
86 class PFRecHitCaloTowerNavigator : public PFRecHitCaloNavigator<CaloTowerDetId, CaloTowerTopology> {
87 public:
89 
90  void beginEvent(const edm::EventSetup& iSetup) override {
91  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
92  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
93  topology_.release();
94  topology_.reset(caloTowerTopology.product());
95  }
96 };
97 
103 
109 
113 
114 class PFRecHitHGCEENavigator : public PFRecHitFakeNavigator<HGCEEDetId> {
115 public:
117 
118  void beginEvent(const edm::EventSetup& iSetup) override {}
119 };
120 
121 class PFRecHitHGCHENavigator : public PFRecHitFakeNavigator<HGCHEDetId> {
122 public:
124 
125  void beginEvent(const edm::EventSetup& iSetup) override {}
126 };
127 
128 class PFRecHitHGCHexNavigator : public PFRecHitFakeNavigator<HGCalDetId> {
129 public:
131 
132  void beginEvent(const edm::EventSetup& iSetup) override {}
133 };
134 
137 
139 
144  "PFRecHitEcalBarrelNavigatorWithTime");
147  "PFRecHitEcalEndcapNavigatorWithTime");
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:47
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:89
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:116
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:58
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:25
PFRecHitHGCHENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:123
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:67
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:118
PFRecHitHGCHexNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:130
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:14
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:65
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:60
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:76
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:27
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:38
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:125
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:16
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:90
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:36
T get() const
Definition: EventSetup.h:73
#define DEFINE_EDM_PLUGIN(factory, type, name)
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:78
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:49
T const * product() const
Definition: ESHandle.h:86
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:88
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:132