File indexing completed on 2024-09-07 04:37:35
0001 #ifndef RecoLocalCalo_EcalRecAlgos_EcalRecHitWorkerBaseClass_hh
0002 #define RecoLocalCalo_EcalRecAlgos_EcalRecHitWorkerBaseClass_hh
0003
0004 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0005 #include "FWCore/Framework/interface/ConsumesCollector.h"
0006
0007 namespace edm {
0008 class Event;
0009 class EventSetup;
0010 class ParameterSet;
0011 }
0012
0013 class EcalRecHitWorkerBaseClass {
0014 public:
0015 enum RecoveryFlags { EB_single, EE_single, EB_VFE, EE_VFE, EB_FE, EE_FE };
0016
0017 EcalRecHitWorkerBaseClass(const edm::ParameterSet&, edm::ConsumesCollector& c) {}
0018 EcalRecHitWorkerBaseClass(const edm::ParameterSet&) {}
0019 virtual ~EcalRecHitWorkerBaseClass() {}
0020
0021 virtual void set(const edm::EventSetup& es) = 0;
0022 virtual bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection& result) = 0;
0023 };
0024
0025 #endif