CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripPlotGain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripPlotGain
4 // Class: SiStripPlotGain
5 //
13 //
14 // Original Author: Domenico GIORDANO
15 // Created: Mon Aug 10 10:42:04 CEST 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
29 
32 
34 
38 
39 #include "TH2F.h"
40 #include "TH1F.h"
41 #include "TFile.h"
42 
43 
44 //
45 // class decleration
46 //
47 class TrackerTopology;
48 
50 public:
51  explicit SiStripPlotGain(const edm::ParameterSet&);
53 
54 
55 private:
56  virtual void beginRun(const edm::Run& run, const edm::EventSetup& es);
57  virtual void analyze(const edm::Event&, const edm::EventSetup&){};
58  virtual void endJob();
59 
60  void DoAnalysis(const edm::EventSetup& es, const SiStripApvGain&);
61  void getHistos(const uint32_t & detid, const TrackerTopology* tTopo, std::vector<TH1F*>& histos);
62  TH1F* getHisto(const long unsigned int& index);
63 
64  unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripApvGainRcd>().cacheIdentifier();}
65 
66 
67  // ----------member data ---------------------------
68 
69 
71 
73 
74 
75  TFile* file;
76  std::vector<TH1F*> vTH1;
77 
79 
80 
81  unsigned long long cacheID;
82 };
83 
84 
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
virtual void endJob()
std::vector< TH1F * > vTH1
SiStripDetInfoFileReader * fr
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const T & get() const
Definition: EventSetup.h:55
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es)
TH1F * getHisto(const long unsigned int &index)
TrackerMap * tkmap
SiStripPlotGain(const edm::ParameterSet &)
edm::ESHandle< SiStripApvGain > Handle_
Definition: Run.h:41