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 class PFRecHitEcalBarrelNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EBDetId,EcalBarrelTopology> {
10  public:
13  {
14 
15  }
16 
17  void beginEvent(const edm::EventSetup& iSetup) {
19  iSetup.get<CaloGeometryRecord>().get(geoHandle);
20  topology_.reset( new EcalBarrelTopology(geoHandle) );
21  }
22 };
23 
24 class PFRecHitEcalEndcapNavigatorWithTime : public PFRecHitCaloNavigatorWithTime<EEDetId,EcalEndcapTopology> {
25  public:
28  {
29 
30  }
31 
32  void beginEvent(const edm::EventSetup& iSetup) {
34  iSetup.get<CaloGeometryRecord>().get(geoHandle);
35  topology_.reset( new EcalEndcapTopology(geoHandle) );
36  }
37 };
38 
39 class PFRecHitEcalBarrelNavigator : public PFRecHitCaloNavigator<EBDetId,EcalBarrelTopology> {
40  public:
42 
43  }
44 
45  void beginEvent(const edm::EventSetup& iSetup) {
47  iSetup.get<CaloGeometryRecord>().get(geoHandle);
48  topology_.reset( new EcalBarrelTopology(geoHandle) );
49  }
50 };
51 
52 class PFRecHitEcalEndcapNavigator : public PFRecHitCaloNavigator<EEDetId,EcalEndcapTopology> {
53  public:
55 
56  }
57 
58  void beginEvent(const edm::EventSetup& iSetup) {
60  iSetup.get<CaloGeometryRecord>().get(geoHandle);
61  topology_.reset( new EcalEndcapTopology(geoHandle) );
62  }
63 };
64 
65 class PFRecHitPreshowerNavigator : public PFRecHitCaloNavigator<ESDetId,EcalPreshowerTopology> {
66  public:
68 
69  }
70 
71 
72  void beginEvent(const edm::EventSetup& iSetup) {
74  iSetup.get<CaloGeometryRecord>().get(geoHandle);
75  topology_.reset( new EcalPreshowerTopology(geoHandle) );
76  }
77 };
78 
79 
80 class PFRecHitHCALNavigator : public PFRecHitCaloNavigator<HcalDetId,HcalTopology,false> {
81  public:
83 
84  }
85 
86 
87  void beginEvent(const edm::EventSetup& iSetup) {
88  edm::ESHandle<HcalTopology> hcalTopology;
89  iSetup.get<IdealGeometryRecord>().get( hcalTopology );
90  topology_.release();
91  topology_.reset(hcalTopology.product());
92  }
93 };
94 
95 
96 class PFRecHitCaloTowerNavigator : public PFRecHitCaloNavigator<CaloTowerDetId,CaloTowerTopology> {
97  public:
99 
100  }
101 
102 
103  void beginEvent(const edm::EventSetup& iSetup) {
104  topology_.reset( new CaloTowerTopology() );
105  }
106 };
107 
112 
117 
118 
119 EDM_REGISTER_PLUGINFACTORY(PFRecHitNavigationFactory, "PFRecHitNavigationFactory");
120 
123 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitEcalBarrelNavigatorWithTime, "PFRecHitEcalBarrelNavigatorWithTime");
126 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigator, "PFRecHitECALNavigator");
127 DEFINE_EDM_PLUGIN(PFRecHitNavigationFactory, PFRecHitECALNavigatorWithTime, "PFRecHitECALNavigatorWithTime");
PFRecHitEcalEndcapNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:54
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:103
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:45
PFRecHitPreshowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:67
PFRecHitEcalEndcapNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:26
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:17
PFRecHitEcalBarrelNavigatorWithTime(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:11
PFRecHitHCALNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:82
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:58
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:72
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:32
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
PFRecHitEcalBarrelNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:41
#define DEFINE_EDM_PLUGIN(factory, type, name)
PFRecHitCaloTowerNavigator(const edm::ParameterSet &iConfig)
Definition: Navigators.cc:98
void beginEvent(const edm::EventSetup &iSetup)
Definition: Navigators.cc:87
std::unique_ptr< const EcalBarrelTopology > topology_