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:
16  {
17 
18  }
19 
20  void beginEvent(const edm::EventSetup& iSetup) override {
22  iSetup.get<CaloGeometryRecord>().get(geoHandle);
23  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
24  }
25 };
26 
27 class PFRecHitEcalEndcapNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EEDetId,EcalEndcapTopology> {
28  public:
31  {
32 
33  }
34 
35  void beginEvent(const edm::EventSetup& iSetup) override {
37  iSetup.get<CaloGeometryRecord>().get(geoHandle);
38  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
39  }
40 };
41 
42 class PFRecHitEcalBarrelNavigator final : public PFRecHitCaloNavigator<EBDetId,EcalBarrelTopology> {
43  public:
45 
46  }
47 
48  void beginEvent(const edm::EventSetup& iSetup) override {
50  iSetup.get<CaloGeometryRecord>().get(geoHandle);
51  topology_ = std::make_unique<EcalBarrelTopology>(*geoHandle);
52  }
53 };
54 
55 class PFRecHitEcalEndcapNavigator final : public PFRecHitCaloNavigator<EEDetId,EcalEndcapTopology> {
56  public:
58 
59  }
60 
61  void beginEvent(const edm::EventSetup& iSetup) override {
63  iSetup.get<CaloGeometryRecord>().get(geoHandle);
64  topology_ = std::make_unique<EcalEndcapTopology>(*geoHandle);
65  }
66 };
67 
68 class PFRecHitPreshowerNavigator final : public PFRecHitCaloNavigator<ESDetId,EcalPreshowerTopology> {
69  public:
71 
72  }
73 
74 
75  void beginEvent(const edm::EventSetup& iSetup) override {
76  topology_ = std::make_unique<EcalPreshowerTopology>();
77  }
78 };
79 
80 
81 class PFRecHitHCALNavigator final : public PFRecHitCaloNavigator<HcalDetId,HcalTopology,false> {
82  public:
84 
85  }
86 
87 
88  void beginEvent(const edm::EventSetup& iSetup) override {
89  edm::ESHandle<HcalTopology> hcalTopology;
90  iSetup.get<HcalRecNumberingRecord>().get( hcalTopology );
91  topology_.release();
92  topology_.reset(hcalTopology.product());
93  }
94 };
95 class PFRecHitHCALNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<HcalDetId,HcalTopology,false> {
96  public:
99  {
100 
101  }
102 
103 
104  void beginEvent(const edm::EventSetup& iSetup) override {
105  edm::ESHandle<HcalTopology> hcalTopology;
106  iSetup.get<HcalRecNumberingRecord>().get( hcalTopology );
107  topology_.release();
108  topology_.reset(hcalTopology.product());
109  }
110 };
111 
112 
113 class PFRecHitCaloTowerNavigator : public PFRecHitCaloNavigator<CaloTowerDetId,CaloTowerTopology> {
114  public:
116 
117  }
118 
119 
120  void beginEvent(const edm::EventSetup& iSetup) override {
121  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
122  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
123  topology_.release();
124  topology_.reset(caloTowerTopology.product());
125  }
126 };
127 
132 
137 
141 
142 class PFRecHitHGCEENavigator : public PFRecHitFakeNavigator<HGCEEDetId> {
143 public:
145  }
146 
147  void beginEvent(const edm::EventSetup& iSetup) override {
148  }
149 };
150 
151 class PFRecHitHGCHENavigator : public PFRecHitFakeNavigator<HGCHEDetId> {
152 public:
154  }
155 
156  void beginEvent(const edm::EventSetup& iSetup) override {
157  }
158 };
159 
160 class PFRecHitHGCHexNavigator : public PFRecHitFakeNavigator<HGCalDetId> {
161 public:
163  }
164 
165  void beginEvent(const edm::EventSetup& iSetup) override {
166  }
167 };
168 
169 typedef HGCRecHitNavigator<HGCEE,
171  HGCHEF,
173  HGCHEB,
175 
177 
180 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitEcalBarrelNavigatorWithTime, "PFRecHitEcalBarrelNavigatorWithTime");
183 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigator, "PFRecHitECALNavigator");
184 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigatorWithTime, "PFRecHitECALNavigatorWithTime");
191 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitHGCNavigator, "PFRecHitHGCNavigator");
192 
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:57
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:86
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:144
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:70
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:29
PFRecHitHGCHENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:153
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:88
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:147
PFRecHitHGCHexNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:162
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:14
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:83
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:75
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:97
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:35
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:48
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:156
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:20
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:120
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:44
T get() const
Definition: EventSetup.h:71
#define DEFINE_EDM_PLUGIN(factory, type, name)
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:104
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:61
T const * product() const
Definition: ESHandle.h:86
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:115
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:165