CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalMipGraphs.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EcalMipGraphs
4 // Class: EcalMipGraphs
5 //
13 //
14 // Original Author: Seth COOPER
15 // Created: Th Nov 22 5:46:22 CEST 2007
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include <vector>
23 #include <map>
24 #include <set>
25 
26 // user include files
37 
44 
48 
50 
51 #include "TFile.h"
52 #include "TH1F.h"
53 #include "TGraph.h"
54 #include "TTree.h"
55 
56 
57 //
58 // class declaration
59 //
60 
62  public:
63  explicit EcalMipGraphs(const edm::ParameterSet&);
65 
66 
67  private:
68  virtual void beginRun(edm::Run const &, edm::EventSetup const &) ;
69  virtual void analyze(edm::Event const &, edm::EventSetup const &);
70  virtual void endJob() ;
72  std::string floatToString(float num);
73  void writeGraphs();
74  void initHists(int);
76  int ievt, edm::ESHandle<CaloTopology> caloTopo);
77  TGraph* selectDigi(DetId det, int ievt);
78  int getEEIndex(EcalElectronicsId elecId);
79 
80  // ----------member data ---------------------------
81 
87 
90 
91  int runNum_;
92  int side_;
93  double threshold_;
94  double minTimingAmp_;
95 
96  std::set<EBDetId> listEBChannels;
97  std::set<EEDetId> listEEChannels;
98 
99  int abscissa[10];
100  int ordinate[10];
101 
102  static float gainRatio[3];
104 
105  std::vector<std::string>* names;
106  std::vector<int> maskedChannels_;
107  std::vector<int> maskedFEDs_;
108  std::vector<int> seedCrys_;
109  std::vector<std::string> maskedEBs_;
110  std::map<int,TH1F*> FEDsAndTimingHists_;
111  std::map<int,float> crysAndAmplitudesMap_;
112  std::map<int,EcalDCCHeaderBlock> FEDsAndDCCHeaders_;
113  std::map<std::string,int> seedFrequencyMap_;
114 
116 
117  TFile* file_;
118  TTree* canvasNames_;
121 
123 };
std::string floatToString(float num)
std::vector< int > maskedFEDs_
int getEEIndex(EcalElectronicsId elecId)
void initHists(int)
edm::InputTag headerProducer_
Definition: EcalMipGraphs.h:86
virtual void analyze(edm::Event const &, edm::EventSetup const &)
EcalFedMap * fedMap_
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
std::map< int, EcalDCCHeaderBlock > FEDsAndDCCHeaders_
std::string intToString(int num)
edm::InputTag EERecHitCollection_
Definition: EcalMipGraphs.h:83
std::vector< std::string > maskedEBs_
TTree * canvasNames_
const EcalElectronicsMapping * ecalElectronicsMap_
static edm::Service< TFileService > fileService
int abscissa[10]
Definition: EcalMipGraphs.h:99
std::map< int, float > crysAndAmplitudesMap_
edm::InputTag EEDigis_
Definition: EcalMipGraphs.h:85
std::set< EEDetId > listEEChannels
Definition: EcalMipGraphs.h:97
double threshold_
Definition: EcalMipGraphs.h:93
EcalMipGraphs(const edm::ParameterSet &)
std::set< EBDetId > listEBChannels
Definition: EcalMipGraphs.h:96
void selectHits(edm::Handle< EcalRecHitCollection > hits, int ievt, edm::ESHandle< CaloTopology > caloTopo)
edm::InputTag EBRecHitCollection_
Definition: EcalMipGraphs.h:82
std::map< int, TH1F * > FEDsAndTimingHists_
int ordinate[10]
void writeGraphs()
TGraph * selectDigi(DetId det, int ievt)
Definition: DetId.h:18
std::vector< int > seedCrys_
std::vector< int > maskedChannels_
edm::Handle< EEDigiCollection > EEdigisHandle
Definition: EcalMipGraphs.h:89
std::vector< std::string > * names
double minTimingAmp_
Definition: EcalMipGraphs.h:94
virtual void endJob()
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
static float gainRatio[3]
TH1F * allFedsTimingHist_
std::map< std::string, int > seedFrequencyMap_
edm::Handle< EBDigiCollection > EBdigisHandle
Definition: EcalMipGraphs.h:88
Definition: Run.h:43
edm::InputTag EBDigis_
Definition: EcalMipGraphs.h:84