2626#include " FWCore/Framework/interface/stream/EDProducer.h"
2727#include " FWCore/MessageLogger/interface/MessageLogger.h"
2828#include " FWCore/ParameterSet/interface/ParameterSet.h"
29+ #include " FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
2930#include " FWCore/Utilities/interface/ESGetToken.h"
3031#include " Geometry/CaloGeometry/interface/CaloCellGeometry.h"
3132#include " Geometry/CaloGeometry/interface/CaloGenericDetId.h"
@@ -51,6 +52,8 @@ class EcalDetailedTimeRecHitProducer : public edm::stream::EDProducer<> {
5152 explicit EcalDetailedTimeRecHitProducer (const edm::ParameterSet& ps);
5253 void produce (edm::Event& evt, const edm::EventSetup& es) override ;
5354
55+ static void fillDescriptions (edm::ConfigurationDescriptions& descriptions);
56+
5457private:
5558 // Functions to correct the TOF from the EcalDigi which is not corrected for the vertex position
5659 double deltaTimeOfFlight (GlobalPoint& vertex, const DetId& detId, int layer) const ;
@@ -252,5 +255,22 @@ double EcalDetailedTimeRecHitProducer::deltaTimeOfFlight(GlobalPoint& vertex, co
252255 return (layerPos.mag () * CLHEP::cm - tofVector.mag () * CLHEP::cm) / (float )c_light;
253256}
254257
258+ void EcalDetailedTimeRecHitProducer::fillDescriptions (edm::ConfigurationDescriptions& descriptions) {
259+ edm::ParameterSetDescription desc;
260+ desc.add <edm::InputTag>(" EBRecHitCollection" , edm::InputTag (" ecalRecHit" , " EcalRecHitsEB" ));
261+ desc.add <edm::InputTag>(" EERecHitCollection" , edm::InputTag (" ecalRecHit" , " EcalRecHitsEE" ));
262+ desc.add <edm::InputTag>(" EBTimeDigiCollection" , edm::InputTag (" mix" , " EBTimeDigi" ));
263+ desc.add <edm::InputTag>(" EETimeDigiCollection" , edm::InputTag (" mix" , " EETimeDigi" ));
264+ desc.add <std::string>(" EBDetailedTimeRecHitCollection" , " EcalRecHitsEB" );
265+ desc.add <std::string>(" EEDetailedTimeRecHitCollection" , " EcalRecHitsEE" );
266+ desc.add <bool >(" correctForVertexZPosition" , false );
267+ desc.add <bool >(" useMCTruthVertex" , false );
268+ desc.add <edm::InputTag>(" recoVertex" , edm::InputTag (" offlinePrimaryVerticesWithBS" ));
269+ desc.add <edm::InputTag>(" simVertex" , edm::InputTag (" g4SimHits" ));
270+ desc.add <int >(" EBTimeLayer" , 7 );
271+ desc.add <int >(" EETimeLayer" , 3 );
272+ descriptions.addWithDefaultLabel (desc);
273+ }
274+
255275#include " FWCore/Framework/interface/MakerMacros.h"
256276DEFINE_FWK_MODULE (EcalDetailedTimeRecHitProducer);
0 commit comments