CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/RecoLocalCalo/HcalRecProducers/src/ZdcHitReconstructor.h

Go to the documentation of this file.
00001 #ifndef ZDCHITRECONSTRUCTOR_H 
00002 #define ZDCHITRECONSTRUCTOR_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/HcalRecAlgos/interface/ZdcSimpleRecAlgo.h"
00012 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHFStatusBitFromRecHits.h"
00013 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalHFStatusBitFromDigis.h"
00014 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalCaloFlagLabels.h"
00015 #include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
00016 #include "CondFormats/HcalObjects/interface/HcalChannelStatus.h"
00017 #include "CondFormats/HcalObjects/interface/HcalLongRecoParams.h"
00018 #include "CondFormats/HcalObjects/interface/HcalLongRecoParam.h" 
00019 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHEStatusBitSetter.h"
00020 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalTimingCorrector.h"
00021 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHETimeProfileStatusBitSetter.h"
00022 #include "RecoLocalCalo/HcalRecAlgos/interface/HBHETimingShapedFlag.h"
00023 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalADCSaturationFlag.h"
00024 #include "RecoLocalCalo/HcalRecAlgos/interface/HFTimingTrustFlag.h"
00025 
00033     class ZdcHitReconstructor : public edm::EDProducer {
00034     public:
00035       explicit ZdcHitReconstructor(const edm::ParameterSet& ps);
00036       virtual ~ZdcHitReconstructor();
00037       virtual void beginRun(edm::Run&r, edm::EventSetup const & es);
00038       virtual void endRun(edm::Run&r, edm::EventSetup const & es);      
00039       virtual void produce(edm::Event& e, const edm::EventSetup& c);
00040     private:      
00041       ZdcSimpleRecAlgo reco_;
00042       HcalADCSaturationFlag* saturationFlagSetter_;
00043       HFTimingTrustFlag* HFTimingTrustFlagSetter_;
00044       HBHEStatusBitSetter* hbheFlagSetter_;
00045       HBHETimeProfileStatusBitSetter* hbheHSCPFlagSetter_;
00046       HBHETimingShapedFlagSetter* hbheTimingShapedFlagSetter_;
00047       HcalHFStatusBitFromRecHits* hfrechitbit_;
00048       HcalHFStatusBitFromDigis*   hfdigibit_;
00049  
00050       DetId::Detector det_;
00051       int subdet_;
00052       HcalOtherSubdetector subdetOther_;
00053       edm::InputTag inputLabel_;
00054       //std::vector<std::string> channelStatusToDrop_;
00055       bool correctTiming_; // turn on/off Ken Rossato's algorithm to fix timing
00056       bool setNoiseFlags_; // turn on/off basic noise flags
00057       bool setHSCPFlags_;  // turn on/off HSCP noise flags
00058       bool setSaturationFlags_; // turn on/off flag indicating ADC saturation
00059       bool setTimingTrustFlags_; // turn on/off HF timing uncertainty flag 
00060 
00061       bool dropZSmarkedPassed_; // turn on/off dropping of zero suppression marked and passed digis
00062       std::vector<int> AuxTSvec_;
00063     // new lowGainEnergy variables
00064       int lowGainOffset_;
00065       double lowGainFrac_;
00066       
00067       HcalLongRecoParams* myobject; //noiseTS and signalTS from db
00068     };
00069 
00070 #endif