CMS 3D CMS Logo

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 // system include files
20 #include <memory>
21 #include <vector>
22 #include <map>
23 #include <set>
24 
25 // user include files
36 
43 
47 
49 
50 #include "TFile.h"
51 #include "TH1F.h"
52 #include "TGraph.h"
53 #include "TTree.h"
54 
55 //
56 // class declaration
57 //
58 
60 public:
61  explicit EcalMipGraphs(const edm::ParameterSet&);
62  ~EcalMipGraphs() override;
63 
64 private:
65  void beginRun(edm::Run const&, edm::EventSetup const&) override;
66  void analyze(edm::Event const&, edm::EventSetup const&) override;
67  void endJob() override;
69  std::string floatToString(float num);
70  void writeGraphs();
71  void initHists(int);
73  TGraph* selectDigi(DetId det, int ievt);
74  int getEEIndex(EcalElectronicsId elecId);
75 
76  // ----------member data ---------------------------
77 
83 
86 
87  int runNum_;
88  int side_;
89  double threshold_;
90  double minTimingAmp_;
91 
92  std::set<EBDetId> listEBChannels;
93  std::set<EEDetId> listEEChannels;
94 
95  int abscissa[10];
96  int ordinate[10];
97 
98  static float gainRatio[3];
100 
101  std::vector<std::string>* names;
102  std::vector<int> maskedChannels_;
103  std::vector<int> maskedFEDs_;
104  std::vector<int> seedCrys_;
105  std::vector<std::string> maskedEBs_;
106  std::map<int, TH1F*> FEDsAndTimingHists_;
107  std::map<int, float> crysAndAmplitudesMap_;
108  std::map<int, EcalDCCHeaderBlock> FEDsAndDCCHeaders_;
109  std::map<std::string, int> seedFrequencyMap_;
110 
112 
113  TFile* file_;
114  TTree* canvasNames_;
117 
119 };
void analyze(edm::Event const &, edm::EventSetup const &) override
std::string floatToString(float num)
std::vector< int > maskedFEDs_
int getEEIndex(EcalElectronicsId elecId)
void initHists(int)
edm::InputTag headerProducer_
Definition: EcalMipGraphs.h:82
EcalFedMap * fedMap_
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
std::string intToString(int num)
edm::InputTag EERecHitCollection_
Definition: EcalMipGraphs.h:79
std::vector< std::string > maskedEBs_
TTree * canvasNames_
const EcalElectronicsMapping * ecalElectronicsMap_
static edm::Service< TFileService > fileService
Definition: EcalMipGraphs.h:99
int abscissa[10]
Definition: EcalMipGraphs.h:95
std::map< std::string, int > seedFrequencyMap_
edm::InputTag EEDigis_
Definition: EcalMipGraphs.h:81
std::set< EEDetId > listEEChannels
Definition: EcalMipGraphs.h:93
std::map< int, EcalDCCHeaderBlock > FEDsAndDCCHeaders_
double threshold_
Definition: EcalMipGraphs.h:89
EcalMipGraphs(const edm::ParameterSet &)
std::set< EBDetId > listEBChannels
Definition: EcalMipGraphs.h:92
void selectHits(edm::Handle< EcalRecHitCollection > hits, int ievt, edm::ESHandle< CaloTopology > caloTopo)
std::map< int, float > crysAndAmplitudesMap_
edm::InputTag EBRecHitCollection_
Definition: EcalMipGraphs.h:78
int ordinate[10]
Definition: EcalMipGraphs.h:96
void writeGraphs()
void endJob() override
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:85
std::vector< std::string > * names
void beginRun(edm::Run const &, edm::EventSetup const &) override
double minTimingAmp_
Definition: EcalMipGraphs.h:90
std::map< int, TH1F * > FEDsAndTimingHists_
~EcalMipGraphs() override
static float gainRatio[3]
Definition: EcalMipGraphs.h:98
TH1F * allFedsTimingHist_
edm::Handle< EBDigiCollection > EBdigisHandle
Definition: EcalMipGraphs.h:84
Definition: Run.h:45
edm::InputTag EBDigis_
Definition: EcalMipGraphs.h:80