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)
69  CanvasPair eventPair_, trackPair_;
70  std::map<unsigned int,CanvasPair> mSectorPair_;
71 
72 };
73 
74 
75 #endif
PadCounterPair eventPadCounter_
Definition: ApeOverview.h:63
std::pair< std::vector< TCanvas * >, std::vector< TCanvas * > > CanvasPair
Definition: ApeOverview.h:68
void whichModuleInFile(int)
void eventAndTrackHistos()
void printOverview(const TString &outputFileName="apeOverview.ps", const HistLevel &histLevel=ApeOverview::event)
void onlyZoomedHists()
HistLevel histLevel_
Definition: ApeOverview.h:60
void getOverview()
int drawHistToPad(const TString histName, const bool setLogScale=true)
int setNewCanvas(const PlotDimension &pDim)
TFile * inputFile_
Definition: ApeOverview.h:48
TString pluginDir_
Definition: ApeOverview.h:58
unsigned int sectorCounter_
Definition: ApeOverview.h:66
TString setCanvasName() const
std::map< unsigned int, CanvasPair > mSectorPair_
Definition: ApeOverview.h:70
ApeOverview(const TString inputFileName)
std::vector< unsigned int > vSelectedSector_
Definition: ApeOverview.h:54
void setSectorsForOverview(const TString &sectors)
PadCounterPair trackPadCounter_
Definition: ApeOverview.h:63
TString histDir_
Definition: ApeOverview.h:58
TString firstSelectedSector_
Definition: ApeOverview.h:56
CanvasPair trackPair_
Definition: ApeOverview.h:69
CanvasPair eventPair_
Definition: ApeOverview.h:69
std::map< unsigned int, PadCounterPair > mSectorPadCounter_
Definition: ApeOverview.h:64
bool onlyZoomedHists_
Definition: ApeOverview.h:52
std::pair< unsigned int, unsigned int > PadCounterPair
Definition: ApeOverview.h:62