CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibCalorimetry/EcalLaserAnalyzer/plugins/EcalStatusAnalyzer.h

Go to the documentation of this file.
00001 // $Id: EcalStatusAnalyzer.h
00002 
00003 #include <vector>
00004 #include <map>
00005 
00006 #include <memory>
00007 #include <FWCore/Framework/interface/EDAnalyzer.h>
00008 
00009 class Timestamp;
00010 
00011 class EcalStatusAnalyzer: public edm::EDAnalyzer{  
00012 
00013  public:
00014   
00015   explicit EcalStatusAnalyzer(const edm::ParameterSet& iConfig);  
00016   ~EcalStatusAnalyzer();
00017     
00018   virtual void analyze( const edm::Event & e, const  edm::EventSetup& c);
00019   virtual void beginJob();
00020   virtual void endJob();
00021 
00022   enum EcalLaserColorType{
00023     iBLUE  = 0,
00024     iGREEN = 1,
00025     iRED   = 3, // in fact should be 2
00026     iIR    = 2  // in fact should be 3
00027   };
00028   
00029  private:
00030   
00031   int iEvent;
00032 
00033   std::string  resdir_;
00034   std::string  statusfile_;
00035   std::string  eventHeaderCollection_;
00036   std::string  eventHeaderProducer_;
00037       
00038   std::map <int,int> isFedLasCreated;
00039   std::map <int,int> isFedTPCreated;
00040   std::map <int,int> isFedPedCreated;
00041 
00042   std::vector<int> fedIDsLas;
00043   std::vector<int> fedIDsTP;
00044   std::vector<int> fedIDsPed;
00045   std::vector<int> dccIDsLas;
00046   std::vector<int> dccIDsTP;
00047   std::vector<int> dccIDsPed;
00048 
00049   std::string   _dataType;
00050   
00051   // Identify run type
00052 
00053   int runType;
00054   int runNum;
00055   int event;
00056   int nSM;
00057   int fedID;
00058   int dccID;
00059   
00060   unsigned long long timeStampCur;
00061 
00062   std::map<int, unsigned long long> timeStampBegLas;
00063   std::map<int, unsigned long long> timeStampEndLas;
00064 
00065   std::map<int, unsigned long long> timeStampBegTP;
00066   std::map<int, unsigned long long> timeStampEndTP;
00067 
00068   std::map<int, unsigned long long> timeStampBegPed;
00069   std::map<int, unsigned long long> timeStampEndPed;
00070 
00071   std::map<int, short> MGPAGainLas;
00072   std::map<int, short> MEMGainLas;
00073 
00074   std::map<int, short> MGPAGainTP;
00075   std::map<int, short> MEMGainTP;
00076 
00077   std::map<int, short> MGPAGainPed;
00078   std::map<int, short> MEMGainPed;
00079 
00080   std::map<int, int > laserPowerBlue;
00081   std::map<int, int > laserFilterBlue;
00082   std::map<int, int > laserDelayBlue;
00083 
00084   std::map<int, int > laserPowerRed;
00085   std::map<int, int > laserFilterRed;
00086   std::map<int, int > laserDelayRed;
00087 
00088   std::map<int, int> nEvtsLas;
00089   std::map<int, int> nBlueLas;
00090   std::map<int, int> nRedLas;
00091   std::map<int, int> runTypeLas;
00092 
00093   std::map<int, int> nEvtsTP;
00094   std::map<int, int> runTypeTP;
00095 
00096   std::map<int, int> nEvtsPed;
00097   std::map<int, int> runTypePed;
00098   
00099 
00100 };
00101 
00102