00001 #ifndef testChannel_H 00002 #define testChannel_H 00003 00014 #include <map> 00015 #include "FWCore/Framework/interface/Event.h" 00016 #include "FWCore/Framework/interface/MakerMacros.h" 00017 #include "FWCore/Framework/interface/EDAnalyzer.h" 00018 #include "DataFormats/Common/interface/EDProduct.h" 00019 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h" 00020 #include "CalibCalorimetry/EcalPedestalOffsets/interface/TPedValues.h" 00021 #include "CalibCalorimetry/EcalPedestalOffsets/interface/TPedResult.h" 00022 00023 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00024 00025 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00026 00027 #include "TROOT.h" 00028 #include "TStyle.h" 00029 00030 #include "TH2.h" 00031 #include "TProfile.h" 00032 00033 #include <memory> 00034 #include <iostream> 00035 #include <fstream> 00036 #include <vector> 00037 #include <string> 00038 00039 class testChannel: public edm::EDAnalyzer 00040 { 00041 00042 public: 00043 00045 testChannel (const edm::ParameterSet& ps) ; 00046 00048 virtual ~testChannel () ; 00049 00051 void subscribe (void) ; 00052 void subscribeNew (void) ; 00053 void unsubscribe (void) ; 00054 00056 void analyze (edm::Event const& event, edm::EventSetup const& eventSetup) ; 00057 00059 void beginJob () ; 00060 00062 void endJob (void) ; 00063 00064 private: 00065 00066 int getHeaderSMId (const int headerId) ; 00067 00068 std::string m_digiCollection ; 00069 std::string m_digiProducer ; 00070 std::string m_headerProducer ; 00071 00072 std::string m_xmlFile ; 00073 00074 int m_DACmin ; 00075 int m_DACmax ; 00076 double m_RMSmax ; 00077 int m_bestPed ; 00078 00079 int m_xtal ; 00080 00081 TH2F m_pedVSDAC ; 00082 TH2F m_singlePedVSDAC_1 ; 00083 TH2F m_singlePedVSDAC_2 ; 00084 TH2F m_singlePedVSDAC_3 ; 00085 00086 } ; 00087 00088 #endif