CMS 3D CMS Logo

EcalPedHists.h
Go to the documentation of this file.
1 
24 
25 #include <iostream>
26 #include <vector>
27 #include <set>
28 #include "TFile.h"
29 #include "TH1.h"
30 #include "TDirectory.h"
31 
32 typedef std::map<std::string, TH1F*> stringHistMap;
33 
34 class EcalPedHists : public edm::EDAnalyzer {
35 public:
37  ~EcalPedHists() override;
38 
39 protected:
40  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
41  void beginRun(edm::Run const&, edm::EventSetup const& c) override;
42  void endJob(void) override;
43 
44 private:
48  void initHists(int FED);
49 
50  int runNum_;
51  bool inputIsOk_;
58  std::vector<int> listChannels_;
59  std::vector<int> listSamples_;
60  std::vector<int> listFEDs_;
61  std::vector<std::string> listEBs_;
62  std::map<int, stringHistMap> FEDsAndHistMaps_;
63  std::set<int> theRealFedSet_;
65  TFile* root_file_;
67 };
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalPedHists::headerProducer_
edm::InputTag headerProducer_
Definition: EcalPedHists.h:57
EcalPedHists::listEBs_
std::vector< std::string > listEBs_
Definition: EcalPedHists.h:61
EcalPedHists::FEDsAndHistMaps_
std::map< int, stringHistMap > FEDsAndHistMaps_
Definition: EcalPedHists.h:62
ESHandle.h
edm::Run
Definition: Run.h:45
EcalDetIdCollections.h
EcalPedHists::listFEDs_
std::vector< int > listFEDs_
Definition: EcalPedHists.h:60
stringHistMap
std::map< std::string, TH1F * > stringHistMap
Definition: EcalPedHists.h:32
EcalPedHists::EcalPedHists
EcalPedHists(const edm::ParameterSet &ps)
Definition: EcalPedHists.cc:13
EDAnalyzer.h
EcalPedHists::allFEDsSelected_
bool allFEDsSelected_
Definition: EcalPedHists.h:52
edm::Handle< EBDigiCollection >
EcalTriggerPrimitiveDigi.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalPedHists::endcapDigiCollection_
edm::InputTag endcapDigiCollection_
Definition: EcalPedHists.h:56
EcalRawDataCollections.h
EcalPedHists::readEEdigis
void readEEdigis(edm::Handle< EEDigiCollection > digis)
Definition: EcalPedHists.cc:325
MakerMacros.h
EcalPedHists::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: EcalPedHists.cc:170
EcalPedHists::barrelDigiCollection_
edm::InputTag barrelDigiCollection_
Definition: EcalPedHists.h:55
EcalPedHists::readEBdigis
void readEBdigis(edm::Handle< EBDigiCollection > digis)
Definition: EcalPedHists.cc:271
EcalMappingRcd.h
EcalDigiCollections.h
EcalPedHists::runNum_
int runNum_
Definition: EcalPedHists.h:50
EcalPedHists::ecalElectronicsMap_
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedHists.h:66
EcalPedHists::theRealFedSet_
std::set< int > theRealFedSet_
Definition: EcalPedHists.h:63
EcalPedHists
Definition: EcalPedHists.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPedHists::inputIsOk_
bool inputIsOk_
Definition: EcalPedHists.h:51
EcalPedHists::initHists
void initHists(int FED)
Definition: EcalPedHists.cc:238
edm::ParameterSet
Definition: ParameterSet.h:47
EcalPedHists::root_file_
TFile * root_file_
Definition: EcalPedHists.h:65
EcalPedHists::listSamples_
std::vector< int > listSamples_
Definition: EcalPedHists.h:59
Event.h
EcalFedMap.h
EcalElectronicsMapping.h
EcalPedHists::fileName_
std::string fileName_
Definition: EcalPedHists.h:54
edm::EventSetup
Definition: EventSetup.h:58
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
EcalPedHists::~EcalPedHists
~EcalPedHists() override
Definition: EcalPedHists.cc:103
EcalTriggerPrimitiveSample.h
EcalFedMap
Definition: EcalFedMap.h:7
EcalPedHists::histsFilled_
bool histsFilled_
Definition: EcalPedHists.h:53
EventSetup.h
EcalPedHists::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &c) override
Definition: EcalPedHists.cc:105
EcalPedHists::endJob
void endJob(void) override
Definition: EcalPedHists.cc:111
EcalPedHists::listChannels_
std::vector< int > listChannels_
Definition: EcalPedHists.h:58
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
EcalPedHists::fedMap_
EcalFedMap * fedMap_
Definition: EcalPedHists.h:64
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
EcalPedHists::intToString
std::string intToString(int num)
Definition: EcalPedHists.cc:376
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37