CMS 3D CMS Logo

EcalDetailedTimeRecHitProducer.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalRecProducers_EcalDetailedTimeRecHitProducer_HH
2 #define RecoLocalCalo_EcalRecProducers_EcalDetailedTimeRecHitProducer_HH
3 
14 
24 
25 // forward declaration
26 
27 class CaloGeometry;
28 
30 public:
33  void produce(edm::Event& evt, const edm::EventSetup& es) override;
34 
35 private:
36  //Functions to correct the TOF from the EcalDigi which is not corrected for the vertex position
37  double deltaTimeOfFlight(GlobalPoint& vertex, const DetId& detId, int layer) const;
38 
40 
41  edm::EDGetTokenT<EBRecHitCollection> EBRecHitCollection_; // secondary name given to collection of EBrechits
42  edm::EDGetTokenT<EERecHitCollection> EERecHitCollection_; // secondary name given to collection of EErechits
43 
48 
51 
53  ebTimeDigiCollection_; // secondary name given to collection of EB uncalib rechits
55  eeTimeDigiCollection_; // secondary name given to collection of EE uncalib rechits
56 
58 
59  std::string EBDetailedTimeRecHitCollection_; // secondary name to be given to EB collection of hits
60  std::string EEDetailedTimeRecHitCollection_; // secondary name to be given to EE collection of hits
61 };
62 #endif
edm::EDGetTokenT< EcalTimeDigiCollection > eeTimeDigiCollection_
edm::EDGetTokenT< EcalTimeDigiCollection > ebTimeDigiCollection_
constexpr std::array< uint8_t, layerIndexSize > layer
double deltaTimeOfFlight(GlobalPoint &vertex, const DetId &detId, int layer) const
edm::EDGetTokenT< reco::VertexCollection > recoVertex_
EcalDetailedTimeRecHitProducer(const edm::ParameterSet &ps)
Definition: DetId.h:17
edm::EDGetTokenT< EBRecHitCollection > EBRecHitCollection_
edm::EDGetTokenT< edm::SimVertexContainer > simVertex_
edm::EDGetTokenT< EERecHitCollection > EERecHitCollection_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometry_
void produce(edm::Event &evt, const edm::EventSetup &es) override