CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CaloOnlineTools/EcalTools/plugins/EcalPnGraphs.h

Go to the documentation of this file.
00001 #ifndef ECALPNGRAPHS_h
00002 #define ECALPNGRAPHS_h
00003 
00004 #include <FWCore/Framework/interface/EDAnalyzer.h>
00005 #include <FWCore/Framework/interface/Event.h>
00006 #include <FWCore/Framework/interface/MakerMacros.h>
00007 #include <DataFormats/EcalDigi/interface/EcalDigiCollections.h>
00008 #include <DataFormats/EcalDetId/interface/EcalDetIdCollections.h>
00009 
00010 #include <DataFormats/EcalDigi/interface/EcalTriggerPrimitiveDigi.h>
00011 #include <DataFormats/EcalDigi/interface/EcalTriggerPrimitiveSample.h>
00012 
00013 #include "CaloOnlineTools/EcalTools/interface/EcalFedMap.h"
00014 #include <iostream>
00015 #include <vector>
00016 
00017 #include "TFile.h"
00018 #include "TGraph.h"
00019 
00020 
00021 
00022 class EcalPnGraphs: public edm::EDAnalyzer{
00023   
00024 public:
00025 
00026   EcalPnGraphs(const edm::ParameterSet& ps);   
00027   ~EcalPnGraphs();
00028     
00029 private:
00030   virtual void analyze(const edm::Event & e, const  edm::EventSetup& c);
00031   virtual void beginJob();
00032   virtual void endJob();
00033  
00034   //  void pnGraphs (edm::Handle<EcalPnDiodeDigiCollection> PNs );
00035 
00036   std::string intToString(int num);
00037 
00038   EcalFedMap* fedMap;
00039   
00040 protected:
00041 
00042   //  std::string ebDigiCollection_;
00043   //std::string eeDigiCollection_;
00044   std::string digiProducer_;
00045 
00046   std::vector<int> feds_;
00047   std::vector<std::string> ebs_;
00048 
00049   int verbosity;
00050   int eventCounter;
00051    
00052   //  std::vector<int ieb_id;
00053   int first_Pn;
00054   
00055 
00056   bool inputIsOk;
00057 
00058   std::string fileName;
00059 
00060   std::vector<int> listChannels;
00061   std::vector<int> listAllChannels;
00062   std::vector<int> listPns;
00063   std::vector<int> listAllPns;
00064 
00065   int numPn;
00066 
00067   int abscissa[50];
00068   int ordinate[50];
00069   
00070   std::vector<TGraph> graphs;
00071   
00072   TFile * root_file;
00073   
00074 };
00075 
00076 #endif
00077