CMS 3D CMS Logo

ApeOverview.h
Go to the documentation of this file.
1 #ifndef ApeOverview_h
2 #define ApeOverview_h
3 
4 #include <vector>
5 #include <map>
6 
7 #include "TString.h"
8 #include "TCanvas.h"
9 #include "TFile.h"
10 #include "TH1.h"
11 #include "TH2.h"
12 
13 
14 
15 
17  public:
18  ApeOverview(const TString inputFileName);
19  ~ApeOverview();
20 
21  void whichModuleInFile(int); // if several modules were registered in TFileService, give nr. of wanted one (alphabetical order)
22 
23  void onlyZoomedHists(); // if wanted, has to be set before getOverview()
24 
25  void setSectorsForOverview(const TString& sectors); // comma separated list; if wanted, has to be set before getOverview()
26 
27  void getOverview();
28 
30  void printOverview(const TString& outputFileName = "apeOverview.ps", const HistLevel& histLevel = ApeOverview::event); //ApeOverview::event, ApeOverview::track, ApeOverview::sector
31 
32  private:
33 
34  TString setCanvasName()const;
35 
36  void eventAndTrackHistos();
37 
38  int drawHistToPad(const TString histName, const bool setLogScale = true);
39 
40 
42  int setNewCanvas(const PlotDimension& pDim);
43 
44 
45 
46  // --------------------------------------------------- member data ---------------------------------------------------
47 
48  TFile* inputFile_;
49 
50  int moduleNo_;
51 
53 
54  std::vector<unsigned int> vSelectedSector_;
55 
57 
58  TString pluginDir_, histDir_;
59 
61 
62  typedef std::pair<unsigned int, unsigned int> PadCounterPair;
64  std::map<unsigned int, PadCounterPair> mSectorPadCounter_;
65 
66  unsigned int sectorCounter_;
67 
68  typedef std::pair<std::vector<TCanvas*>, std::vector<TCanvas*> > CanvasPair; //contain (1DHists, 2DAndProfileHists)
70  std::map<unsigned int,CanvasPair> mSectorPair_;
71 
72 };
73 
74 
75 #endif
ApeOverview::drawHistToPad
int drawHistToPad(const TString histName, const bool setLogScale=true)
ApeOverview::inputFile_
TFile * inputFile_
Definition: ApeOverview.h:48
ApeOverview
Definition: ApeOverview.h:16
ApeOverview::CanvasPair
std::pair< std::vector< TCanvas * >, std::vector< TCanvas * > > CanvasPair
Definition: ApeOverview.h:68
ApeOverview::moduleNo_
int moduleNo_
Definition: ApeOverview.h:50
ApeOverview::sectorCounter_
unsigned int sectorCounter_
Definition: ApeOverview.h:66
ApeOverview::getOverview
void getOverview()
ApeOverview::eventAndTrackHistos
void eventAndTrackHistos()
ApeOverview::setNewCanvas
int setNewCanvas(const PlotDimension &pDim)
ApeOverview::onlyZoomedHists
void onlyZoomedHists()
ApeOverview::whichModuleInFile
void whichModuleInFile(int)
ApeOverview::histLevel_
HistLevel histLevel_
Definition: ApeOverview.h:60
ApeOverview::vSelectedSector_
std::vector< unsigned int > vSelectedSector_
Definition: ApeOverview.h:54
ApeOverview::printOverview
void printOverview(const TString &outputFileName="apeOverview.ps", const HistLevel &histLevel=ApeOverview::event)
ApeOverview::track
Definition: ApeOverview.h:29
InefficientDoubleROC.inputFileName
inputFileName
Definition: InefficientDoubleROC.py:437
ApeOverview::mSectorPair_
std::map< unsigned int, CanvasPair > mSectorPair_
Definition: ApeOverview.h:70
ApeOverview::ApeOverview
ApeOverview(const TString inputFileName)
ApeOverview::PlotDimension
PlotDimension
Definition: ApeOverview.h:41
ApeOverview::pluginDir_
TString pluginDir_
Definition: ApeOverview.h:58
ApeOverview::histDir_
TString histDir_
Definition: ApeOverview.h:58
ApeOverview::dim1
Definition: ApeOverview.h:41
ApeOverview::dim2
Definition: ApeOverview.h:41
reco_skim_cfg_mod.outputFileName
outputFileName
Definition: reco_skim_cfg_mod.py:15
ApeOverview::mSectorPadCounter_
std::map< unsigned int, PadCounterPair > mSectorPadCounter_
Definition: ApeOverview.h:64
ApeOverview::setSectorsForOverview
void setSectorsForOverview(const TString &sectors)
ApeOverview::trackPair_
CanvasPair trackPair_
Definition: ApeOverview.h:69
ApeOverview::trackPadCounter_
PadCounterPair trackPadCounter_
Definition: ApeOverview.h:63
ApeOverview::eventPair_
CanvasPair eventPair_
Definition: ApeOverview.h:69
ApeOverview::onlyZoomedHists_
bool onlyZoomedHists_
Definition: ApeOverview.h:52
ApeOverview::setCanvasName
TString setCanvasName() const
ApeOverview::HistLevel
HistLevel
Definition: ApeOverview.h:29
ApeOverview::sector
Definition: ApeOverview.h:29
ApeOverview::firstSelectedSector_
TString firstSelectedSector_
Definition: ApeOverview.h:56
volumeBasedMagneticField_160812_cfi.sectors
sectors
Definition: volumeBasedMagneticField_160812_cfi.py:59
ApeOverview::~ApeOverview
~ApeOverview()
ApeOverview::event
Definition: ApeOverview.h:29
ApeOverview::eventPadCounter_
PadCounterPair eventPadCounter_
Definition: ApeOverview.h:63
ApeOverview::PadCounterPair
std::pair< unsigned int, unsigned int > PadCounterPair
Definition: ApeOverview.h:62