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 };
unsigned long long getCache(const edm::EventSetup &eSetup)
void getHistos(const uint32_t &detid, const TrackerTopology *tTopo, std::vector< TH1F * > &histos)
void DoAnalysis(const edm::EventSetup &es, const SiStripApvGain &)
unsigned long long cacheID
SiStripDetInfoFileReader * fr
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * getHisto(const long unsigned int &index)
TrackerMap * tkmap
T get() const
Definition: EventSetup.h:71
SiStripPlotGain(const edm::ParameterSet &)
std::vector< TH1F * > vTH1
edm::ESHandle< SiStripApvGain > Handle_
void endJob() override
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: Run.h:45
~SiStripPlotGain() override