6 #include "TGeoManager.h"
32 for (std::map<TString, TH1*>::const_iterator ki =
fHistos.begin(); ki !=
fHistos.end(); ki++){
44 if (
fHistos[hit->GetDetName()] == 0){
45 fHistos[hit->GetDetName()] =
new TH2I(
"HitDistribution",hit->GetDetName().Data(), 400,0,400,101,0,100);
48 if (
fFeHits[hit->GetDetName()] == 0){
49 fFeHits[hit->GetDetName()] =
new std::vector<Int_t>(30,0);
52 TH2* tempHisto = (TH2*)(
fHistos[hit->GetDetName()]);
61 TH1I* hPix1 =
new TH1I(
"hPix1",
"Hitrate per Module",600,0,600);
62 hPix1->SetLineColor(2);
63 hPix1->GetXaxis()->SetTitle(
"Module ID");
64 hPix1->GetYaxis()->SetTitle(
"Hits per second");
65 hPix1->SetStats(kFALSE);
66 TH1I* hPix2 =
new TH1I(
"hPix2",
"Hitrate per Module",600,0,600);
67 hPix2->SetLineColor(3);
68 hPix2->GetXaxis()->SetTitle(
"Module ID");
69 hPix2->GetYaxis()->SetTitle(
"Hits per second");
70 hPix2->SetStats(kFALSE);
71 TH1I* hMPix1 =
new TH1I(
"hMPix1",
"Hitrate per Module",600,0,600);
72 hMPix1->SetLineColor(4);
73 hMPix1->GetXaxis()->SetTitle(
"Module ID");
74 hMPix1->GetYaxis()->SetTitle(
"Hits per second");
75 hMPix1->SetStats(kFALSE);
76 TH1I* hMPix2 =
new TH1I(
"hMPix2",
"Hitrate per Module",600,0,600);
77 hMPix2->SetLineColor(5);
78 hMPix2->GetXaxis()->SetTitle(
"Module ID");
79 hMPix2->GetYaxis()->SetTitle(
"Hits per second");
80 hMPix2->SetStats(kFALSE);
81 TH1I* hSDisk1 =
new TH1I(
"hSDisk1",
"Hitrate per Module",600,0,600);
82 hSDisk1->SetLineColor(6);
83 hSDisk1->GetXaxis()->SetTitle(
"Module ID");
84 hSDisk1->GetYaxis()->SetTitle(
"Hits per second");
85 hSDisk1->SetStats(kFALSE);
86 TH1I* hSDisk2 =
new TH1I(
"hSDisk2",
"Hitrate per Module",600,0,600);
87 hSDisk2->SetLineColor(7);
88 hSDisk2->GetXaxis()->SetTitle(
"Module ID");
89 hSDisk2->GetYaxis()->SetTitle(
"Hits per second");
90 hSDisk2->SetStats(kFALSE);
91 TH1I* hRest =
new TH1I(
"hRest",
"Hitrate per Module",600,0,600);
92 hRest->SetLineColor(1);
93 hRest->GetXaxis()->SetTitle(
"Module ID");
94 hRest->GetYaxis()->SetTitle(
"Hits per second");
95 hRest->SetStats(kFALSE);
100 std::cout << weight << std::endl;
101 if (
fGeoH->
GetPath(hName.Data()).Contains(
"MiniPixelDisk_1"))
103 else if (
fGeoH->
GetPath(hName.Data()).Contains(
"MiniPixelDisk_2")){
106 else if (
fGeoH->
GetPath(hName.Data()).Contains(
"PixelDisk_1"))
108 else if (
fGeoH->
GetPath(hName.Data()).Contains(
"PixelDisk_2"))
110 else if (
fGeoH->
GetPath(hName.Data()).Contains(
"StripDiskMedium2_1"))
112 else if (
fGeoH->
GetPath(hName.Data()).Contains(
"StripDiskMedium2_2"))
118 hMPix2->Draw(
"same");
123 hSDisk1->Draw(
"same");
124 hSDisk2->Draw(
"same");
139 TH1I* feHisto =
new TH1I(
"feHisto",path.Data(),500,0,10000);
140 vector<Int_t>*
fe =
fFeHits[path.Data()];
141 for (UInt_t
i = 0;
i < fe->size();
i++){
142 feHisto->Fill(fe->at(
i));
149 TH1I* feHisto =
new TH1I(
"feHisto",
"Hits in FE", 500, 0,10000);
150 std::map<TString, std::vector<Int_t>* >::const_iterator ki;
152 for (UInt_t
i = 0;
i< ki->second->size();
i++)
153 feHisto->Fill(ki->second->at(
i));
Int_t GetPixelRow() const
void DrawAllModulesFEHisto()
Int_t GetPixelColumn() const
void SetCanvasColumns(Int_t col)
TString GetPath(Int_t shortID)
for a given shortID the path is returned
std::map< TString, TH1 * > fHistos
virtual void AnaHitNr(Int_t hitNr)
virtual void InitHistos()
void DrawSingleModuleFEHisto(TString path)
std::vector< TH1 * > fHistoVector
static PndGeoHandling * Instance()
std::map< TString, std::vector< PndSdsDigiPixel > > fDigiPixelArray
std::map< TString, TString > fDrawOption
std::map< TString, std::vector< Int_t > * > fFeHits
virtual void InitBranch()
cout<<"will loop over "<< t-> GetEntries()
Data class to store the digi output of a pixel module.
void CreateMaxHitsHisto()
virtual void Init(TString fileName)