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 
38 
39 #include "TFile.h"
40 #include "TH1F.h"
41 #include "TH2F.h"
42 
43 //
44 // class decleration
45 //
46 class TrackerTopology;
47 
49 public:
50  explicit SiStripPlotGain(const edm::ParameterSet &);
51  ~SiStripPlotGain() override;
52 
53 private:
54  void beginRun(const edm::Run &run, const edm::EventSetup &es) override;
55  void analyze(const edm::Event &, const edm::EventSetup &) override{};
56  void endJob() override;
57 
58  void DoAnalysis(const edm::EventSetup &es, const SiStripApvGain &);
59  void getHistos(const uint32_t &detid, const TrackerTopology *tTopo, std::vector<TH1F *> &histos);
60  TH1F *getHisto(const long unsigned int &index);
61 
62  unsigned long long getCache(const edm::EventSetup &eSetup) {
63  return eSetup.get<SiStripApvGainRcd>().cacheIdentifier();
64  }
65 
66  // ----------member data ---------------------------
67 
69 
71 
72  TFile *file;
73  std::vector<TH1F *> vTH1;
74 
76 
77  unsigned long long cacheID;
78 };
SiStripDependentRecords.h
MessageLogger.h
ESHandle.h
SiStripPlotGain
Definition: SiStripPlotGain.h:48
SiStripPlotGain::getHistos
void getHistos(const uint32_t &detid, const TrackerTopology *tTopo, std::vector< TH1F * > &histos)
Definition: SiStripPlotGain.cc:61
edm::Run
Definition: Run.h:45
TrackerTopology
Definition: TrackerTopology.h:16
EDAnalyzer.h
SiStripDetInfoFileReader
Definition: SiStripDetInfoFileReader.h:30
SiStripPlotGain::endJob
void endJob() override
Definition: SiStripPlotGain.cc:101
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
edm::ESHandle< SiStripApvGain >
SiStripDetInfoFileReader.h
SiStripPlotGain::~SiStripPlotGain
~SiStripPlotGain() override
Definition: SiStripPlotGain.cc:13
TrackerMap
Definition: TrackerMap.h:76
SiStripApvGain.h
SiStripPlotGain::tkmap
TrackerMap * tkmap
Definition: SiStripPlotGain.h:75
SiStripPlotGain::Handle_
edm::ESHandle< SiStripApvGain > Handle_
Definition: SiStripPlotGain.h:70
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripPlotGain::getCache
unsigned long long getCache(const edm::EventSetup &eSetup)
Definition: SiStripPlotGain.h:62
Event.h
SiStripPlotGain::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: SiStripPlotGain.cc:17
SiStripPlotGain::getHisto
TH1F * getHisto(const long unsigned int &index)
Definition: SiStripPlotGain.cc:87
SiStripPlotGain::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripPlotGain.h:55
edm::EventSetup
Definition: EventSetup.h:57
SiStripPlotGain::fr
SiStripDetInfoFileReader * fr
Definition: SiStripPlotGain.h:68
SiStripPlotGain::DoAnalysis
void DoAnalysis(const edm::EventSetup &es, const SiStripApvGain &)
Definition: SiStripPlotGain.cc:28
TrackerMap.h
SiStripApvGainRcd
Definition: SiStripCondDataRecords.h:8
combine.histos
histos
Definition: combine.py:4
SiStripPlotGain::file
TFile * file
Definition: SiStripPlotGain.h:72
writedatasetfile.run
run
Definition: writedatasetfile.py:27
Frameworkfwd.h
SiStripPlotGain::cacheID
unsigned long long cacheID
Definition: SiStripPlotGain.h:77
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
SiStripPlotGain::SiStripPlotGain
SiStripPlotGain(const edm::ParameterSet &)
Definition: SiStripPlotGain.cc:7
ParameterSet.h
SiStripPlotGain::vTH1
std::vector< TH1F * > vTH1
Definition: SiStripPlotGain.h:73
edm::Event
Definition: Event.h:73
SiStripApvGain
Definition: SiStripApvGain.h:25