00001 #ifndef HCALHITRECONSTRUCTOR_H 00002 #define HCALHITRECONSTRUCTOR_H 1 00003 00004 #include "FWCore/Framework/interface/EDProducer.h" 00005 #include "DataFormats/Common/interface/EDProduct.h" 00006 #include "FWCore/Framework/interface/Event.h" 00007 #include "DataFormats/Common/interface/Handle.h" 00008 00009 #include "FWCore/Framework/interface/EventSetup.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 00012 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalSimpleRecAlgo.h" 00013 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHFStatusBitFromRecHits.h" 00014 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHFStatusBitFromDigis.h" 00015 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalCaloFlagLabels.h" 00016 #include "CondFormats/HcalObjects/interface/HcalChannelQuality.h" 00017 #include "CondFormats/HcalObjects/interface/HcalChannelStatus.h" 00018 #include "CondFormats/HcalObjects/interface/HcalRecoParams.h" 00019 #include "CondFormats/HcalObjects/interface/HcalRecoParam.h" 00020 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHEStatusBitSetter.h" 00021 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalTimingCorrector.h" 00022 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHETimeProfileStatusBitSetter.h" 00023 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHETimingShapedFlag.h" 00024 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHEPulseShapeFlag.h" 00025 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalADCSaturationFlag.h" 00026 #include "RecoLocalCalo/HcalRecAlgos/interface/HFTimingTrustFlag.h" 00027 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHF_S9S1algorithm.h" 00028 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHF_PETalgorithm.h" 00029 00037 class HcalHitReconstructor : public edm::EDProducer { 00038 public: 00039 explicit HcalHitReconstructor(const edm::ParameterSet& ps); 00040 virtual ~HcalHitReconstructor(); 00041 virtual void beginRun(edm::Run&r, edm::EventSetup const & es); 00042 virtual void endRun(edm::Run&r, edm::EventSetup const & es); 00043 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00044 private: 00045 HcalSimpleRecAlgo reco_; 00046 HcalADCSaturationFlag* saturationFlagSetter_; 00047 HFTimingTrustFlag* HFTimingTrustFlagSetter_; 00048 HBHEStatusBitSetter* hbheFlagSetter_; 00049 HBHETimeProfileStatusBitSetter* hbheHSCPFlagSetter_; 00050 HBHETimingShapedFlagSetter* hbheTimingShapedFlagSetter_; 00051 HBHEPulseShapeFlagSetter *hbhePulseShapeFlagSetter_; 00052 HcalHFStatusBitFromDigis* hfdigibit_; 00053 HcalHF_S9S1algorithm* hfS9S1_; 00054 HcalHF_S9S1algorithm* hfS8S1_; 00055 HcalHF_PETalgorithm* hfPET_; 00056 00057 DetId::Detector det_; 00058 int subdet_; 00059 HcalOtherSubdetector subdetOther_; 00060 edm::InputTag inputLabel_; 00061 //std::vector<std::string> channelStatusToDrop_; 00062 bool correctTiming_; // turn on/off Ken Rossato's algorithm to fix timing 00063 bool setNoiseFlags_; // turn on/off basic noise flags 00064 bool setHSCPFlags_; // turn on/off HSCP noise flags 00065 bool setSaturationFlags_; // turn on/off flag indicating ADC saturation 00066 bool setTimingTrustFlags_; // turn on/off HF timing uncertainty flag 00067 bool setPulseShapeFlags_; // turn on/off HBHE fit-based noise flags 00068 bool dropZSmarkedPassed_; // turn on/off dropping of zero suppression marked and passed digis 00069 00070 int firstAuxTS_; 00071 00072 // legacy parameters for config-set values compatibility 00073 // to be removed after 4_2_0... 00074 int firstSample_; 00075 int samplesToAdd_; 00076 bool tsFromDB_; 00077 00078 HcalRecoParams* paramTS; // firstSample & sampleToAdd from DB 00079 }; 00080 00081 #endif