CMS 3D CMS Logo

PlotAllDisplay.h
Go to the documentation of this file.
1 #ifndef PLOTALLDISPLAY_H
2 #define PLOTALLDISPLAY_H
3 
4 #include "TFile.h"
5 #include "TTree.h"
6 #include "TH1.h"
7 #include <iostream>
8 #include "HistoManager.h"
9 #include "MyHcalClasses.h"
10 #include "TCanvas.h"
11 #include "TProfile.h"
12 
14 public:
15  PlotAllDisplay(const char *outfn) : m_f(outfn), histKeys(&m_f)
16  {
17  m_movie=0;
18  n_movie=0;
19  }
20  void displaySummary(int ieta=0, int iphi=0, int evtType=4, int flavType=0);
21  void displayOne(int ieta, int iphi, int depth, int evtType, int flavType);
22 
23  void displayElecOne(int fiber,int fiberChan,int crate,int slot,int tb,int evtType, int flavType);
24  void displayElecSummary(int crate,int Slot,int tb,int evtType4, int flavType);
25  void displayElecOne(const MyElectronicsId& id, int evtType, int flavType);
26  void CrateDisplaySelector(int crate, int evtType, int flavType,int plotStatType);
27 
28 
29  void displayOne(const MyHcalDetId& id, int evtType, int flavType);
30  void displaySelector(int evtType, int flavType, int plotStatType);
32 private:
36  int ieta, iphi;
37  };
38  std::vector<MyHcalDetId> spatialFilter(int ieta, int iphi,
39  const std::vector<MyHcalDetId>& inputs);
41  const std::string& basename,
42  int lo, int hi);
43 
44 
45 
50  int tb;
51  };
52  std::vector<MyElectronicsId> electronicsFilter(int fiber,int fiberChan,int crate,int slot,int tb,
53  const std::vector<MyElectronicsId>& inputs);
54 
55 
57  const std::string& basename,
58  int lo, int hi);
59 
60 
61 
62  TFile m_f;
64  TCanvas* m_movie;
65  int n_movie;
66 };
67 
68 #endif
PlotAllDisplay::DisplayElecSetup::flavTypeStr
std::string flavTypeStr
Definition: PlotAllDisplay.h:48
MyHcalSubdetector
MyHcalSubdetector
Definition: MyHcalClasses.h:4
PlotAllDisplay::DisplaySetupStruct::eventTypeStr
std::string eventTypeStr
Definition: PlotAllDisplay.h:34
PlotAllDisplay::getSubDetector
MyHcalSubdetector getSubDetector(int ieta, int depth)
PlotAllDisplay::DisplayElecSetup
Definition: PlotAllDisplay.h:46
PlotAllDisplay::CrateDisplaySelector
void CrateDisplaySelector(int crate, int evtType, int flavType, int plotStatType)
PlotAllDisplay::electronicsFilter
std::vector< MyElectronicsId > electronicsFilter(int fiber, int fiberChan, int crate, int slot, int tb, const std::vector< MyElectronicsId > &inputs)
l1GtBoardMaps_cfi.Slot
Slot
Definition: l1GtBoardMaps_cfi.py:120
PlotAllDisplay::n_movie
int n_movie
Definition: PlotAllDisplay.h:65
PlotAllDisplay::DisplaySetupStruct::ieta
int ieta
Definition: PlotAllDisplay.h:36
PlotAllDisplay::displayOne
void displayOne(int ieta, int iphi, int depth, int evtType, int flavType)
PlotAllDisplay::DisplaySetupStruct::flavTypeStr
std::string flavTypeStr
Definition: PlotAllDisplay.h:35
HistoManager.h
PlotAllDisplay::spatialFilter
std::vector< MyHcalDetId > spatialFilter(int ieta, int iphi, const std::vector< MyHcalDetId > &inputs)
PlotAllDisplay::PlotAllDisplay
PlotAllDisplay(const char *outfn)
Definition: PlotAllDisplay.h:15
MyHcalClasses.h
PlotAllDisplay::DisplayElecSetup::tb
int tb
Definition: PlotAllDisplay.h:50
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
PlotAllDisplay::DisplayElecSetup::eventTypeStr
std::string eventTypeStr
Definition: PlotAllDisplay.h:47
MyElectronicsId
Definition: MyHcalClasses.h:20
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
PlotAllDisplay::DisplayElecSetup::Slot
int Slot
Definition: PlotAllDisplay.h:49
PlotAllDisplay::m_f
TFile m_f
Definition: PlotAllDisplay.h:62
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
PlotAllDisplay::m_movie
TCanvas * m_movie
Definition: PlotAllDisplay.h:64
PlotAllDisplay::DisplayElecSetup::fiberChan
int fiberChan
Definition: PlotAllDisplay.h:49
MyHcalDetId
Definition: MyHcalClasses.h:11
PlotAllDisplay::DisplayElecSetup::crate
int crate
Definition: PlotAllDisplay.h:49
PlotAllDisplay::DisplayElecSetup::fiber
int fiber
Definition: PlotAllDisplay.h:49
HistoManager
Definition: HistoManager.h:8
PlotAllDisplay::DisplaySetupStruct
Definition: PlotAllDisplay.h:33
PixelMapPlotter.inputs
inputs
Definition: PixelMapPlotter.py:490
PlotAllDisplay::displayElecSummary
void displayElecSummary(int crate, int Slot, int tb, int evtType4, int flavType)
PlotAllDisplay::displayElecOne
void displayElecOne(int fiber, int fiberChan, int crate, int slot, int tb, int evtType, int flavType)
hi
Definition: EPCuts.h:4
PlotAllDisplay::bookMasterHistogram
TH1 * bookMasterHistogram(DisplaySetupStruct &ss, const std::string &basename, int lo, int hi)
PlotAllDisplay
Definition: PlotAllDisplay.h:13
PlotAllDisplay::DisplaySetupStruct::iphi
int iphi
Definition: PlotAllDisplay.h:36
PlotAllDisplay::displaySelector
void displaySelector(int evtType, int flavType, int plotStatType)
PlotAllDisplay::displaySummary
void displaySummary(int ieta=0, int iphi=0, int evtType=4, int flavType=0)
PlotAllDisplay::histKeys
HistoManager histKeys
Definition: PlotAllDisplay.h:63