test
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 
4 
11 
12 class PFRecHitEcalBarrelNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EBDetId,EcalBarrelTopology> {
13  public:
16  {
17 
18  }
19 
20  void beginEvent(const edm::EventSetup& iSetup) {
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) {
37  iSetup.get<CaloGeometryRecord>().get(geoHandle);
38  topology_.reset( new EcalEndcapTopology(geoHandle) );
39  }
40 };
41 
42 class PFRecHitEcalBarrelNavigator : public PFRecHitCaloNavigator<EBDetId,EcalBarrelTopology> {
43  public:
45 
46  }
47 
48  void beginEvent(const edm::EventSetup& iSetup) {
50  iSetup.get<CaloGeometryRecord>().get(geoHandle);
51  topology_.reset( new EcalBarrelTopology(geoHandle) );
52  }
53 };
54 
55 class PFRecHitEcalEndcapNavigator : public PFRecHitCaloNavigator<EEDetId,EcalEndcapTopology> {
56  public:
58 
59  }
60 
61  void beginEvent(const edm::EventSetup& iSetup) {
63  iSetup.get<CaloGeometryRecord>().get(geoHandle);
64  topology_.reset( new EcalEndcapTopology(geoHandle) );
65  }
66 };
67 
68 class PFRecHitPreshowerNavigator : public PFRecHitCaloNavigator<ESDetId,EcalPreshowerTopology> {
69  public:
71 
72  }
73 
74 
75  void beginEvent(const edm::EventSetup& iSetup) {
77  iSetup.get<CaloGeometryRecord>().get(geoHandle);
78  topology_.reset( new EcalPreshowerTopology(geoHandle) );
79  }
80 };
81 
82 
83 class PFRecHitHCALNavigator : public PFRecHitCaloNavigator<HcalDetId,HcalTopology,false> {
84  public:
86 
87  }
88 
89 
90  void beginEvent(const edm::EventSetup& iSetup) {
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) {
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) {
123  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
124  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
125  topology_.release();
126  topology_.reset(caloTowerTopology.product());
127  }
128 };
129 
134 
139 
142 
143 class PFRecHitHGCEENavigator : public PFRecHitFakeNavigator<HGCEEDetId> {
144 public:
146  }
147 
148  void beginEvent(const edm::EventSetup& iSetup) {
149  }
150 };
151 
152 class PFRecHitHGCHENavigator : public PFRecHitFakeNavigator<HGCHEDetId> {
153 public:
155  }
156 
157  void beginEvent(const edm::EventSetup& iSetup) {
158  }
159 };
160 
161 typedef HGCRecHitNavigator<HGCEE,
163  HGCHEF,
165  HGCHEB,
167 
169 
172 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitEcalBarrelNavigatorWithTime, "PFRecHitEcalBarrelNavigatorWithTime");
175 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigator, "PFRecHitECALNavigator");
176 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigatorWithTime, "PFRecHitECALNavigatorWithTime");
183 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitHGCNavigator, "PFRecHitHGCNavigator");
184 
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:57
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:122
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:48
PFRecHitHGCEENavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:145
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:154
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:20
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:14
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:85
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:106
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:61
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:75
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:35
PFRecHitHCALNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:99
#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:44
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:148
#define DEFINE_EDM_PLUGIN(factory, type, name)
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:117
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:90
std::unique_ptr< const EcalBarrelTopology > topology_
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:157