00001 #ifndef CASTORSIMPLERECONSTRUCTOR_H 00002 #define CASTORSIMPLERECONSTRUCTOR_H 1 00003 00004 #include "FWCore/Framework/interface/EDProducer.h" 00005 #include "FWCore/Framework/interface/Event.h" 00006 #include "DataFormats/Common/interface/Handle.h" 00007 00008 #include "FWCore/Framework/interface/EventSetup.h" 00009 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00010 00011 #include "RecoLocalCalo/CastorReco/interface/CastorSimpleRecAlgo.h" 00012 #include "CondFormats/CastorObjects/interface/CastorRecoParams.h" 00013 00014 class CastorSimpleReconstructor : public edm::EDProducer { 00015 public: 00016 explicit CastorSimpleReconstructor(const edm::ParameterSet& ps); 00017 virtual ~CastorSimpleReconstructor(); 00018 virtual void beginRun(edm::Run&r, edm::EventSetup const & es); 00019 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00020 private: 00021 CastorSimpleRecAlgo reco_; 00022 DetId::Detector det_; 00023 int subdet_; 00024 // HcalOtherSubdetector subdetOther_; 00025 edm::InputTag inputLabel_; 00026 00027 int firstSample_; 00028 int samplesToAdd_; 00029 bool tsFromDB_; 00030 CastorRecoParams* paramTS_; 00031 }; 00032 00033 #endif