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_.reset( new 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_.reset( new 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_.reset( new 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_.reset( new 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 {
77  iSetup.get<CaloGeometryRecord>().get(geoHandle);
78  topology_.reset( new EcalPreshowerTopology(geoHandle) );
79  }
80 };
81 
82 
83 class PFRecHitHCALNavigator final : public PFRecHitCaloNavigator<HcalDetId,HcalTopology,false> {
84  public:
86 
87  }
88 
89 
90  void beginEvent(const edm::EventSetup& iSetup) override {
91  edm::ESHandle<HcalTopology> hcalTopology;
92  iSetup.get<HcalRecNumberingRecord>().get( hcalTopology );
93  topology_.release();
94  topology_.reset(hcalTopology.product());
95  }
96 };
97 class PFRecHitHCALNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<HcalDetId,HcalTopology,false> {
98  public:
101  {
102 
103  }
104 
105 
106  void beginEvent(const edm::EventSetup& iSetup) override {
107  edm::ESHandle<HcalTopology> hcalTopology;
108  iSetup.get<HcalRecNumberingRecord>().get( hcalTopology );
109  topology_.release();
110  topology_.reset(hcalTopology.product());
111  }
112 };
113 
114 
115 class PFRecHitCaloTowerNavigator : public PFRecHitCaloNavigator<CaloTowerDetId,CaloTowerTopology> {
116  public:
118 
119  }
120 
121 
122  void beginEvent(const edm::EventSetup& iSetup) override {
123  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
124  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
125  topology_.release();
126  topology_.reset(caloTowerTopology.product());
127  }
128 };
129 
134 
139 
143 
144 class PFRecHitHGCEENavigator : public PFRecHitFakeNavigator<HGCEEDetId> {
145 public:
147  }
148 
149  void beginEvent(const edm::EventSetup& iSetup) override {
150  }
151 };
152 
153 class PFRecHitHGCHENavigator : public PFRecHitFakeNavigator<HGCHEDetId> {
154 public:
156  }
157 
158  void beginEvent(const edm::EventSetup& iSetup) override {
159  }
160 };
161 
162 class PFRecHitHGCHexNavigator : public PFRecHitFakeNavigator<HGCalDetId> {
163 public:
165  }
166 
167  void beginEvent(const edm::EventSetup& iSetup) override {
168  }
169 };
170 
171 typedef HGCRecHitNavigator<HGCEE,
173  HGCHEF,
175  HGCHEB,
177 
179 
182 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitEcalBarrelNavigatorWithTime, "PFRecHitEcalBarrelNavigatorWithTime");
185 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigator, "PFRecHitECALNavigator");
186 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigatorWithTime, "PFRecHitECALNavigatorWithTime");
193 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitHGCNavigator, "PFRecHitHGCNavigator");
194 
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:57
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:146
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:155
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:90
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:149
PFRecHitHGCHexNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:164
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:14
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:85
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:75
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:99
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:35
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:48
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:91
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:158
const T & get() const
Definition: EventSetup.h:59
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:20
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:122
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:44
#define DEFINE_EDM_PLUGIN(factory, type, name)
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:106
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:117
void beginEvent(const edm::EventSetup &iSetup) override
Definition: Navigators.cc:167