CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Navigators.cc
Go to the documentation of this file.
3 
5 
13 
14 class PFRecHitEcalBarrelNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EBDetId, EcalBarrelTopology> {
15 public:
17  : PFRecHitCaloNavigatorWithTime(iConfig, cc),
18  geomToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
19 
20  void init(const edm::EventSetup& iSetup) override {
22  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
23  }
24 
25 private:
27 };
28 
29 class PFRecHitEcalEndcapNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EEDetId, EcalEndcapTopology> {
30 public:
32  : PFRecHitCaloNavigatorWithTime(iConfig, cc),
33  geomToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
34 
35  void init(const edm::EventSetup& iSetup) override {
37  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
38  }
39 
40 private:
42 };
43 
44 class PFRecHitEcalBarrelNavigator final : public PFRecHitCaloNavigator<EBDetId, EcalBarrelTopology> {
45 public:
47  : geomToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
48 
49  void init(const edm::EventSetup& iSetup) override {
51  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
52  }
53 
54 private:
56 };
57 
58 class PFRecHitEcalEndcapNavigator final : public PFRecHitCaloNavigator<EEDetId, EcalEndcapTopology> {
59 public:
61  : geomToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
62 
63  void init(const edm::EventSetup& iSetup) override {
65  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
66  }
67 
68 private:
70 };
71 
72 class PFRecHitPreshowerNavigator final : public PFRecHitCaloNavigator<ESDetId, EcalPreshowerTopology> {
73 public:
75 
76  void init(const edm::EventSetup& iSetup) override { topology_ = std::make_unique<EcalPreshowerTopology>(); }
77 };
78 
79 class PFRecHitHCALDenseIdNavigator final : public PFHCALDenseIdNavigator<HcalDetId, HcalTopology, false> {
80 public:
82  : PFHCALDenseIdNavigator(iConfig, cc) {}
83 };
84 
85 class PFRecHitHCALNavigator : public PFRecHitCaloNavigator<HcalDetId, HcalTopology, false> {
86 public:
88  : hcalToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
89 
90  void init(const edm::EventSetup& iSetup) override {
91  edm::ESHandle<HcalTopology> hcalTopology = iSetup.getHandle(hcalToken_);
92  topology_.release();
93  topology_.reset(hcalTopology.product());
94  }
95 
96 private:
98 };
99 
100 class PFRecHitHCALNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<HcalDetId, HcalTopology, false> {
101 public:
103  : PFRecHitCaloNavigatorWithTime(iConfig, cc),
104  hcalToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
105 
106  void init(const edm::EventSetup& iSetup) override {
107  edm::ESHandle<HcalTopology> hcalTopology = iSetup.getHandle(hcalToken_);
108  topology_.release();
109  topology_.reset(hcalTopology.product());
110  }
111 
112 private:
114 };
115 
116 class PFRecHitCaloTowerNavigator : public PFRecHitCaloNavigator<CaloTowerDetId, CaloTowerTopology> {
117 public:
119  : caloToken_(cc.esConsumes<edm::Transition::BeginLuminosityBlock>()) {}
120 
121  void init(const edm::EventSetup& iSetup) override {
122  edm::ESHandle<CaloTowerTopology> caloTowerTopology = iSetup.getHandle(caloToken_);
123  topology_.release();
124  topology_.reset(caloTowerTopology.product());
125  }
126 
127 private:
129 };
130 
136 
142 
146 
147 class PFRecHitHGCEENavigator : public PFRecHitFakeNavigator<HGCEEDetId> {
148 public:
150 
151  void init(const edm::EventSetup& iSetup) override {}
152 };
153 
154 class PFRecHitHGCHENavigator : public PFRecHitFakeNavigator<HGCHEDetId> {
155 public:
157 
158  void init(const edm::EventSetup& iSetup) override {}
159 };
160 
161 class PFRecHitHGCHexNavigator : public PFRecHitFakeNavigator<HGCalDetId> {
162 public:
164 
165  void init(const edm::EventSetup& iSetup) override {}
166 };
167 
170 
172 
177  "PFRecHitEcalBarrelNavigatorWithTime");
180  "PFRecHitEcalEndcapNavigatorWithTime");
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalToken_
Definition: Navigators.cc:97
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:60
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:35
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:87
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:102
PFRecHitHGCHENavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:156
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:20
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:165
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:149
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:158
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:69
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:121
Transition
Definition: Transition.h:12
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:106
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:63
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:41
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:89
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:49
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > caloToken_
Definition: Navigators.cc:128
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:31
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalToken_
Definition: Navigators.cc:113
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:118
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:26
T const * product() const
Definition: ESHandle.h:86
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:76
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:16
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:46
#define DEFINE_EDM_PLUGIN(factory, type, name)
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:90
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:55
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:157
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:151
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:74
PFRecHitHCALDenseIdNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:81
std::unique_ptr< const EcalBarrelTopology > topology_
PFRecHitHGCHexNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:163