35 if(
verbose ) std::cout <<
" Processing Event " <<
nEvents<< std::endl;
42 helen->Fill(esize+0.5);
48 for(imes=0;imes<esize;imes++) {
62 int iadc = m[imes].getCharge();
63 int ig = m[imes].getGain();
64 hadc[ig]->Fill(iadc + 0.5);
66 int ipps = m[imes].getPPS();
67 int its = m[imes].getTimeStamp();
69 hpps->Fill(ipps + 0.5, its + 0.5);
71 htvse->Fill(ievnum + 0.5, its + 0.5);
73 if ( (imes == 0) && (
itsold != -1) )
80 htdiff->Fill(itdiff + 0.5);
86 int iramp = m[imes].getTRamp();
87 int iftime = m[imes].getFTime();
88 hramp->Fill(iramp + 0.5, iftime + 0.5);
101 helen =
new TH1F(
"hELen",
"Hits per Event",20,0.0,19.0);
102 heprof =
new TH1F(
"hEProf",
"Hits per Chan",20,0.0,19.0);
103 hadc[0] =
new TH1F(
"hAdcg0",
"All Adc counts Gain 0",256,0.0,1024.0);
104 hadc[1] =
new TH1F(
"hAdcg1",
"All Adc counts Gain 1",256,0.0,1024.0);
105 hpps =
new TH2F(
"hPps",
"Time Stamp vs PPS",20,0.0,19.0,256,0.0,0.0);
106 htvse =
new TH2F(
"hTvsE",
"Time Stamp vs Ev Num",512,0.0,0.0,512,0.0,0.0);
107 hramp =
new TH2F(
"hRamp",
"Fine Time vs TDC Ramp",4,0.0,3.0,256,0.0,0.0);
108 htdiff =
new TH1F(
"hTDiff",
"Time Diff",1024,0.0,1000000.0);
109 htdiff2 =
new TH1F(
"hTDiff2",
"Time Diff low",1024,0.0,15000.0);
116 if ( hstFile == NULL ) {
119 "No Hist File name gived, use default" << std::endl;
120 hstFile =
new TString(
"evprop.root");
123 TFile *hf =
new TFile(hstFile->Data(),
"RECREATE");
TString * GetProgramName()
Get Program Name.
A simle analyse of base PMM2 event properties.
void Save(char *mode=NULL)
TH2F * hpps
Time stamp vs Event number.
int itsold
Time Stamp differens ( zoom on low val)
TH1F * helen
Redefine empty default.
TH2F * htvse
Adc valuer for each gain.
TH2F * hramp
Time stamp vs PPS counter.
TH1F * htdiff
Fine Time vs TDC Ramp.
virtual const EventHeader_t * GetHeader() const
TH1F * htdiff2
Time Stamp differens.
TString * GetHistFile()
Get Name of Histogram output file.
A list of all mesurements in one Event for Pmm2 v2 card The class is place holder for all unpacked me...
TH1F * heprof
Number of Digi's in event.
TH1F * hadc[2]
Hits per channel.
virtual Pmm2MesVect * GetMesurements()
Return pointer to decoded Pmm2 data vector.
Long64_t GetVerbose()
Get program verbosity level.