CMS 3D CMS Logo

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