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  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:
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");
PFRecHitCaloTowerNavigator::caloToken_
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > caloToken_
Definition: Navigators.cc:128
PFRecHitEcalBarrelNavigator
Definition: Navigators.cc:44
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HGCEEDetId.h
PFRecHitHGCEENavigator::PFRecHitHGCEENavigator
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:149
HGCHEDetId.h
PFRecHitHCALNavigator
Definition: Navigators.cc:85
PFRecHitHCALDenseIdNavigator
Definition: Navigators.cc:79
PFRecHitEcalBarrelNavigator::PFRecHitEcalBarrelNavigator
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:46
PFRecHitHGCHexNavigator
Definition: Navigators.cc:161
HGCRecHitNavigator
Definition: HGCRecHitNavigator.h:18
PFRecHitPreshowerNavigator::PFRecHitPreshowerNavigator
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:74
PFRecHitHCALNavigator::hcalToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalToken_
Definition: Navigators.cc:97
PFRecHitFakeNavigator
Definition: PFRecHitFakeNavigator.h:23
PFRecHitEcalEndcapNavigatorWithTime::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:35
PFRecHitHCALNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:90
edm
HLT enums.
Definition: AlignableModifier.h:19
PFRecHitEcalEndcapNavigatorWithTime
Definition: Navigators.cc:29
PFRecHitEcalBarrelNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:49
PFRecHitHGCNavigator
HGCRecHitNavigator< HGCEE, PFRecHitHGCHexNavigator, HGCHEF, PFRecHitHGCHexNavigator, HGCHEB, PFRecHitHGCHENavigator > PFRecHitHGCNavigator
Definition: Navigators.cc:169
PFRecHitCaloNavigator.h
PFRecHitEcalEndcapNavigator::geomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:69
PFECALHashNavigator.h
PFRecHitDualNavigator
Definition: PFRecHitDualNavigator.h:9
PFRecHitNavigatorBase.h
PFLayer::ECAL_BARREL
Definition: PFLayer.h:33
PFRecHitECALNavigator
PFRecHitDualNavigator< PFLayer::ECAL_BARREL, PFRecHitEcalBarrelNavigator, PFLayer::ECAL_ENDCAP, PFRecHitEcalEndcapNavigator > PFRecHitECALNavigator
Definition: Navigators.cc:135
PFRecHitCaloNavigatorWithTime.h
PFRecHitEcalEndcapNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:63
MakerMacros.h
HGCRecHitNavigator.h
PFRecHitDualNavigator.h
PFRecHitCaloNavigator
Definition: PFRecHitCaloNavigator.h:23
PFRecHitHCALNavigatorWithTime::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:106
PFRecHitEcalBarrelNavigatorWithTime
Definition: Navigators.cc:14
PFRecHitHGCHexNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:165
edm::ESHandle< CaloGeometry >
PFHCALDenseIdNavigator
Definition: PFHCALDenseIdNavigator.h:26
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
EDM_REGISTER_PLUGINFACTORY
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:89
PFRecHitEcalBarrelNavigatorWithTime::PFRecHitEcalBarrelNavigatorWithTime
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:16
PFRecHitCaloTowerNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:121
PFRecHitPreshowerNavigator
Definition: Navigators.cc:72
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Transition
Transition
Definition: Transition.h:12
PFRecHitHGCEENavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:151
PFRecHitHGCHENavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:158
PFRecHitPreshowerNavigator::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:76
PFRecHitEcalEndcapNavigatorWithTime::geomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:41
edmplugin::PluginFactory
Definition: PluginFactory.h:34
PFRecHitHCALNavigator::PFRecHitHCALNavigator
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:87
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
PFRecHitEcalEndcapNavigatorWithTime::PFRecHitEcalEndcapNavigatorWithTime
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:31
edm::EventSetup
Definition: EventSetup.h:58
PFRecHitCaloTowerNavigator::PFRecHitCaloTowerNavigator
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:118
PFRecHitEcalEndcapNavigator::PFRecHitEcalEndcapNavigator
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:60
cc
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
PFRecHitECALNavigatorWithTime
PFRecHitDualNavigator< PFLayer::ECAL_BARREL, PFRecHitEcalBarrelNavigatorWithTime, PFLayer::ECAL_ENDCAP, PFRecHitEcalEndcapNavigatorWithTime > PFRecHitECALNavigatorWithTime
Definition: Navigators.cc:141
PFRecHitCaloNavigator< EBDetId, EcalBarrelTopology >::topology_
std::unique_ptr< const EcalBarrelTopology > topology_
Definition: PFRecHitCaloNavigator.h:100
PFRecHitHCALDenseIdNavigator::PFRecHitHCALDenseIdNavigator
PFRecHitHCALDenseIdNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:81
HGCalDetId.h
PFRecHitCaloTowerNavigator
Definition: Navigators.cc:116
PFRecHitCaloNavigatorWithTime< EBDetId, EcalBarrelTopology >::topology_
std::unique_ptr< const EcalBarrelTopology > topology_
Definition: PFRecHitCaloNavigatorWithTime.h:113
PFRecHitHCALNavigatorWithTime
Definition: Navigators.cc:100
PFHCALDenseIdNavigator.h
PFRecHitHGCHENavigator::PFRecHitHGCHENavigator
PFRecHitHGCHENavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:156
ConsumesCollector.h
PFECALHashNavigator
Definition: PFECALHashNavigator.h:20
PFRecHitHGCEENavigator
Definition: Navigators.cc:147
PFRecHitCaloNavigatorWithTime
Definition: PFRecHitCaloNavigatorWithTime.h:29
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
PFLayer::ECAL_ENDCAP
Definition: PFLayer.h:32
PFRecHitHCALNavigatorWithTime::PFRecHitHCALNavigatorWithTime
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:102
PFRecHitEcalEndcapNavigator
Definition: Navigators.cc:58
PFRecHitHCALNavigatorWithTime::hcalToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalToken_
Definition: Navigators.cc:113
PFRecHitHGCHENavigator
Definition: Navigators.cc:154
PFRecHitHGCHexNavigator::PFRecHitHGCHexNavigator
PFRecHitHGCHexNavigator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: Navigators.cc:163
PFRecHitFakeNavigator.h
PFRecHitEcalBarrelNavigator::geomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:55
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
PFRecHitEcalBarrelNavigatorWithTime::init
void init(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:20
PFRecHitEcalBarrelNavigatorWithTime::geomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: Navigators.cc:26