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 // $Id: SiStripPlotGain.h,v 1.2 2009/09/23 14:20:53 kaussen Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
30 
33 
35 
39 
40 #include "TH2F.h"
41 #include "TH1F.h"
42 #include "TFile.h"
43 
44 
45 //
46 // class decleration
47 //
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 SiStripApvGain&);
61  void getHistos(const uint32_t & detid,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)
unsigned long long cacheID
virtual void endJob()
void getHistos(const uint32_t &detid, std::vector< TH1F * > &histos)
void DoAnalysis(const SiStripApvGain &)
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:33