CMS 3D CMS Logo

SiStripPlotGain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripPlotGain
4 // Class: SiStripPlotGain
5 //
14 //
15 // Original Author: Domenico GIORDANO
16 // Created: Mon Aug 10 10:42:04 CEST 2009
17 //
18 //
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
29 
32 
34 
40 
41 #include "TFile.h"
42 #include "TH1F.h"
43 #include "TH2F.h"
44 
45 //
46 // class decleration
47 //
48 class TrackerTopology;
49 
51 public:
52  explicit SiStripPlotGain(const edm::ParameterSet &);
53  ~SiStripPlotGain() override;
54 
55 private:
56  void beginRun(const edm::Run &run, const edm::EventSetup &es) override;
57  void analyze(const edm::Event &, const edm::EventSetup &) override{};
58  void endJob() override;
59 
60  void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &);
61  void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector<TH1F *> &histos);
62  TH1F *getHisto(const long unsigned int &index);
63 
64  // ----------member data ---------------------------
65 
67 
71 
72  TFile *file;
73  std::vector<TH1F *> vTH1;
74 
76 };
SiStripDependentRecords.h
SiStripPlotGain::gainToken_
edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd > gainToken_
Definition: SiStripPlotGain.h:69
MessageLogger.h
SiStripPlotGain::DoAnalysis
void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &)
Definition: SiStripPlotGain.cc:22
edm::ESWatcher< SiStripApvGainRcd >
SiStripPlotGain
Definition: SiStripPlotGain.h:50
edm::Run
Definition: Run.h:45
TrackerTopology
Definition: TrackerTopology.h:16
EDAnalyzer.h
SiStripDetInfoFileReader
Definition: SiStripDetInfoFileReader.h:30
SiStripPlotGain::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripPlotGain.h:70
SiStripPlotGain::endJob
void endJob() override
Definition: SiStripPlotGain.cc:89
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DetId
Definition: DetId.h:17
MakerMacros.h
TrackerTopology.h
TrackerTopologyRcd.h
SiStripDetInfoFileReader.h
SiStripPlotGain::~SiStripPlotGain
~SiStripPlotGain() override
Definition: SiStripPlotGain.cc:10
TrackerMap
Definition: TrackerMap.h:76
SiStripApvGain.h
SiStripPlotGain::tkmap
TrackerMap * tkmap
Definition: SiStripPlotGain.h:75
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
SiStripPlotGain::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: SiStripPlotGain.cc:14
SiStripPlotGain::getHisto
TH1F * getHisto(const long unsigned int &index)
Definition: SiStripPlotGain.cc:75
SiStripPlotGain::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripPlotGain.h:57
edm::EventSetup
Definition: EventSetup.h:58
SiStripPlotGain::fr
SiStripDetInfoFileReader * fr
Definition: SiStripPlotGain.h:66
edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd >
TrackerMap.h
combine.histos
histos
Definition: combine.py:4
SiStripPlotGain::gainWatcher_
edm::ESWatcher< SiStripApvGainRcd > gainWatcher_
Definition: SiStripPlotGain.h:68
SiStripPlotGain::file
TFile * file
Definition: SiStripPlotGain.h:72
writedatasetfile.run
run
Definition: writedatasetfile.py:27
Frameworkfwd.h
ESWatcher.h
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
SiStripPlotGain::SiStripPlotGain
SiStripPlotGain(const edm::ParameterSet &)
Definition: SiStripPlotGain.cc:3
SiStripPlotGain::getHistos
void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector< TH1F * > &histos)
Definition: SiStripPlotGain.cc:50
ParameterSet.h
SiStripPlotGain::vTH1
std::vector< TH1F * > vTH1
Definition: SiStripPlotGain.h:73
edm::Event
Definition: Event.h:73
SiStripApvGain
Definition: SiStripApvGain.h:25