CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Navigators.cc
Go to the documentation of this file.
2 
8 
9 
10 class PFRecHitEcalBarrelNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EBDetId,EcalBarrelTopology> {
11  public:
14  {
15 
16  }
17 
18  void beginEvent(const edm::EventSetup& iSetup) {
20  iSetup.get<CaloGeometryRecord>().get(geoHandle);
21  topology_.reset( new EcalBarrelTopology(geoHandle) );
22  }
23 };
24 
25 class PFRecHitEcalEndcapNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EEDetId,EcalEndcapTopology> {
26  public:
29  {
30 
31  }
32 
33  void beginEvent(const edm::EventSetup& iSetup) {
35  iSetup.get<CaloGeometryRecord>().get(geoHandle);
36  topology_.reset( new EcalEndcapTopology(geoHandle) );
37  }
38 };
39 
40 class PFRecHitEcalBarrelNavigator : public PFRecHitCaloNavigator<EBDetId,EcalBarrelTopology> {
41  public:
43 
44  }
45 
46  void beginEvent(const edm::EventSetup& iSetup) {
48  iSetup.get<CaloGeometryRecord>().get(geoHandle);
49  topology_.reset( new EcalBarrelTopology(geoHandle) );
50  }
51 };
52 
53 class PFRecHitEcalEndcapNavigator : public PFRecHitCaloNavigator<EEDetId,EcalEndcapTopology> {
54  public:
56 
57  }
58 
59  void beginEvent(const edm::EventSetup& iSetup) {
61  iSetup.get<CaloGeometryRecord>().get(geoHandle);
62  topology_.reset( new EcalEndcapTopology(geoHandle) );
63  }
64 };
65 
66 class PFRecHitPreshowerNavigator : public PFRecHitCaloNavigator<ESDetId,EcalPreshowerTopology> {
67  public:
69 
70  }
71 
72 
73  void beginEvent(const edm::EventSetup& iSetup) {
75  iSetup.get<CaloGeometryRecord>().get(geoHandle);
76  topology_.reset( new EcalPreshowerTopology(geoHandle) );
77  }
78 };
79 
80 
81 class PFRecHitHCALNavigator : public PFRecHitCaloNavigator<HcalDetId,HcalTopology,false> {
82  public:
84 
85  }
86 
87 
88  void beginEvent(const edm::EventSetup& iSetup) {
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) {
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) {
121  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
122  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
123  topology_.release();
124  topology_.reset(caloTowerTopology.product());
125  }
126 };
127 
132 
137 
138 
140 
143 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitEcalBarrelNavigatorWithTime, "PFRecHitEcalBarrelNavigatorWithTime");
146 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigator, "PFRecHitECALNavigator");
147 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigatorWithTime, "PFRecHitECALNavigatorWithTime");
152 
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:55
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:120
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:46
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:68
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:27
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:18
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:12
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:83
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:104
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:59
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:73
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:33
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:97
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:42
#define DEFINE_EDM_PLUGIN(factory, type, name)
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:115
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:88
std::unique_ptr< const EcalBarrelTopology > topology_