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;
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 };
EcalMipGraphs::allFedsTimingHist_
TH1F * allFedsTimingHist_
Definition: EcalMipGraphs.h:111
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalMipGraphs::listEBChannels
std::set< EBDetId > listEBChannels
Definition: EcalMipGraphs.h:92
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
ESHandle.h
EcalMipGraphs::canvasNames_
TTree * canvasNames_
Definition: EcalMipGraphs.h:114
edm::Run
Definition: Run.h:45
EcalMipGraphs::intToString
std::string intToString(int num)
Definition: EcalMipGraphs.cc:370
EcalMipGraphs::file_
TFile * file_
Definition: EcalMipGraphs.h:113
EcalMipGraphs::headerProducer_
edm::InputTag headerProducer_
Definition: EcalMipGraphs.h:82
EcalMipGraphs::EBRecHitCollection_
edm::InputTag EBRecHitCollection_
Definition: EcalMipGraphs.h:78
EcalMipGraphs::names
std::vector< std::string > * names
Definition: EcalMipGraphs.h:101
EcalMipGraphs::listEEChannels
std::set< EEDetId > listEEChannels
Definition: EcalMipGraphs.h:93
EcalMipGraphs::ecalElectronicsMap_
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalMipGraphs.h:116
EcalMipGraphs::EBdigisHandle
edm::Handle< EBDigiCollection > EBdigisHandle
Definition: EcalMipGraphs.h:84
EcalMipGraphs::seedFrequencyMap_
std::map< std::string, int > seedFrequencyMap_
Definition: EcalMipGraphs.h:109
EDAnalyzer.h
edm::Handle
Definition: AssociativeIterator.h:50
EcalRecHitCollections.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalMipGraphs::maskedFEDs_
std::vector< int > maskedFEDs_
Definition: EcalMipGraphs.h:103
EcalMipGraphs::EERecHitCollection_
edm::InputTag EERecHitCollection_
Definition: EcalMipGraphs.h:79
DetId
Definition: DetId.h:17
EcalRawDataCollections.h
MakerMacros.h
EcalMipGraphs::EEdigisHandle
edm::Handle< EEDigiCollection > EEdigisHandle
Definition: EcalMipGraphs.h:85
Service.h
EcalMappingRcd.h
EcalDigiCollections.h
edm::ESHandle< CaloTopology >
EcalRecHit.h
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TFileService.h
edm::ParameterSet
Definition: ParameterSet.h:47
EcalMipGraphs::FEDsAndTimingHists_
std::map< int, TH1F * > FEDsAndTimingHists_
Definition: EcalMipGraphs.h:106
Event.h
EcalMipGraphs::maskedChannels_
std::vector< int > maskedChannels_
Definition: EcalMipGraphs.h:102
EcalFedMap.h
EcalMipGraphs::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: EcalMipGraphs.cc:330
EcalMipGraphs
Definition: EcalMipGraphs.h:59
CaloTopologyRecord.h
EcalElectronicsMapping.h
EcalMipGraphs::abscissa
int abscissa[10]
Definition: EcalMipGraphs.h:95
EcalMipGraphs::gainRatio
static float gainRatio[3]
Definition: EcalMipGraphs.h:98
EcalMipGraphs::runNum_
int runNum_
Definition: EcalMipGraphs.h:87
EcalMipGraphs::FEDsAndDCCHeaders_
std::map< int, EcalDCCHeaderBlock > FEDsAndDCCHeaders_
Definition: EcalMipGraphs.h:108
edm::Service< TFileService >
EcalMipGraphs::threshold_
double threshold_
Definition: EcalMipGraphs.h:89
EcalMipGraphs::fedMap_
EcalFedMap * fedMap_
Definition: EcalMipGraphs.h:115
EcalDCCHeaderBlock.h
EcalMipGraphs::endJob
void endJob() override
Definition: EcalMipGraphs.cc:337
edm::EventSetup
Definition: EventSetup.h:58
EcalMipGraphs::EcalMipGraphs
EcalMipGraphs(const edm::ParameterSet &)
Definition: EcalMipGraphs.cc:42
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
EcalMipGraphs::side_
int side_
Definition: EcalMipGraphs.h:88
CaloTopology.h
EcalMipGraphs::floatToString
std::string floatToString(float num)
Definition: EcalMipGraphs.cc:377
EcalMipGraphs::minTimingAmp_
double minTimingAmp_
Definition: EcalMipGraphs.h:90
EcalMipGraphs::selectHits
void selectHits(edm::Handle< EcalRecHitCollection > hits, int ievt, edm::ESHandle< CaloTopology > caloTopo)
Definition: EcalMipGraphs.cc:235
EcalMipGraphs::~EcalMipGraphs
~EcalMipGraphs() override
Definition: EcalMipGraphs.cc:86
EcalFedMap
Definition: EcalFedMap.h:7
EcalMipGraphs::ordinate
int ordinate[10]
Definition: EcalMipGraphs.h:96
DetId.h
Frameworkfwd.h
EcalMipGraphs::initHists
void initHists(int)
Definition: EcalMipGraphs.cc:318
EcalMipGraphs::EEDigis_
edm::InputTag EEDigis_
Definition: EcalMipGraphs.h:81
EcalMipGraphs::writeGraphs
void writeGraphs()
EcalMipGraphs::EBDigis_
edm::InputTag EBDigis_
Definition: EcalMipGraphs.h:80
EventSetup.h
EcalMipGraphs::naiveEvtNum_
int naiveEvtNum_
Definition: EcalMipGraphs.h:118
ParameterSet.h
EcalMipGraphs::maskedEBs_
std::vector< std::string > maskedEBs_
Definition: EcalMipGraphs.h:105
EcalMipGraphs::crysAndAmplitudesMap_
std::map< int, float > crysAndAmplitudesMap_
Definition: EcalMipGraphs.h:107
EcalMipGraphs::selectDigi
TGraph * selectDigi(DetId det, int ievt)
Definition: EcalMipGraphs.cc:134
edm::Event
Definition: Event.h:73
EcalMipGraphs::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: EcalMipGraphs.cc:93
EcalMipGraphs::fileService
static edm::Service< TFileService > fileService
Definition: EcalMipGraphs.h:99
EcalMipGraphs::getEEIndex
int getEEIndex(EcalElectronicsId elecId)
Definition: EcalMipGraphs.cc:312
edm::InputTag
Definition: InputTag.h:15
EcalMipGraphs::seedCrys_
std::vector< int > seedCrys_
Definition: EcalMipGraphs.h:104