1 |
andersj |
1.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 |
|
|
|
13 |
|
|
class PlotAllDisplay {
|
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);
|
31 |
|
|
MyHcalSubdetector getSubDetector(int ieta, int depth);
|
32 |
|
|
private:
|
33 |
|
|
struct DisplaySetupStruct {
|
34 |
|
|
std::string eventTypeStr;
|
35 |
|
|
std::string flavTypeStr;
|
36 |
|
|
int ieta, iphi;
|
37 |
|
|
};
|
38 |
|
|
std::vector<MyHcalDetId> spatialFilter(int ieta, int iphi,
|
39 |
|
|
const std::vector<MyHcalDetId>& inputs);
|
40 |
|
|
TH1* bookMasterHistogram(DisplaySetupStruct& ss,
|
41 |
|
|
const std::string& basename,
|
42 |
|
|
int lo, int hi);
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
struct DisplayElecSetup {
|
47 |
|
|
std::string eventTypeStr;
|
48 |
|
|
std::string flavTypeStr;
|
49 |
|
|
int fiber,fiberChan,crate,Slot;
|
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 |
|
|
|
56 |
|
|
TH1* bookMasterHistogram(DisplayElecSetup& ess,
|
57 |
|
|
const std::string& basename,
|
58 |
|
|
int lo, int hi);
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
TFile m_f;
|
63 |
|
|
HistoManager histKeys;
|
64 |
|
|
TCanvas* m_movie;
|
65 |
|
|
int n_movie;
|
66 |
|
|
};
|
67 |
|
|
|
68 |
|
|
#endif
|