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 // $Id: EcalMipGraphs.h,v 1.9 2010/01/16 14:46:16 hegner Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <vector>
24 #include <map>
25 #include <set>
26 
27 // user include files
38 
45 
49 
51 
52 #include "TFile.h"
53 #include "TH1F.h"
54 #include "TGraph.h"
55 #include "TTree.h"
56 
57 
58 //
59 // class declaration
60 //
61 
63  public:
64  explicit EcalMipGraphs(const edm::ParameterSet&);
66 
67 
68  private:
69  virtual void beginRun(edm::Run const &, edm::EventSetup const &) ;
70  virtual void analyze(edm::Event const &, edm::EventSetup const &);
71  virtual void endJob() ;
73  std::string floatToString(float num);
74  void writeGraphs();
75  void initHists(int);
77  int ievt, edm::ESHandle<CaloTopology> caloTopo);
78  TGraph* selectDigi(DetId det, int ievt);
79  int getEEIndex(EcalElectronicsId elecId);
80 
81  // ----------member data ---------------------------
82 
88 
91 
92  int runNum_;
93  int side_;
94  double threshold_;
95  double minTimingAmp_;
96 
97  std::set<EBDetId> listEBChannels;
98  std::set<EEDetId> listEEChannels;
99 
100  int abscissa[10];
101  int ordinate[10];
102 
103  static float gainRatio[3];
105 
106  std::vector<std::string>* names;
107  std::vector<int> maskedChannels_;
108  std::vector<int> maskedFEDs_;
109  std::vector<int> seedCrys_;
110  std::vector<std::string> maskedEBs_;
111  std::map<int,TH1F*> FEDsAndTimingHists_;
112  std::map<int,float> crysAndAmplitudesMap_;
113  std::map<int,EcalDCCHeaderBlock> FEDsAndDCCHeaders_;
114  std::map<std::string,int> seedFrequencyMap_;
115 
117 
118  TFile* file_;
119  TTree* canvasNames_;
122 
124 };
std::string floatToString(float num)
std::vector< int > maskedFEDs_
int getEEIndex(EcalElectronicsId elecId)
void initHists(int)
edm::InputTag headerProducer_
Definition: EcalMipGraphs.h:87
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:84
std::vector< std::string > maskedEBs_
TTree * canvasNames_
const EcalElectronicsMapping * ecalElectronicsMap_
static edm::Service< TFileService > fileService
int abscissa[10]
std::map< int, float > crysAndAmplitudesMap_
edm::InputTag EEDigis_
Definition: EcalMipGraphs.h:86
std::set< EEDetId > listEEChannels
Definition: EcalMipGraphs.h:98
double threshold_
Definition: EcalMipGraphs.h:94
EcalMipGraphs(const edm::ParameterSet &)
std::set< EBDetId > listEBChannels
Definition: EcalMipGraphs.h:97
void selectHits(edm::Handle< EcalRecHitCollection > hits, int ievt, edm::ESHandle< CaloTopology > caloTopo)
edm::InputTag EBRecHitCollection_
Definition: EcalMipGraphs.h:83
std::map< int, TH1F * > FEDsAndTimingHists_
int ordinate[10]
void writeGraphs()
TGraph * selectDigi(DetId det, int ievt)
Definition: DetId.h:20
std::vector< int > seedCrys_
std::vector< int > maskedChannels_
edm::Handle< EEDigiCollection > EEdigisHandle
Definition: EcalMipGraphs.h:90
std::vector< std::string > * names
long long int num
Definition: procUtils.cc:71
double minTimingAmp_
Definition: EcalMipGraphs.h:95
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:89
Definition: Run.h:36
edm::InputTag EBDigis_
Definition: EcalMipGraphs.h:85