34 if(
verbose ) std::cout <<
" Processing Event " <<
nEvents<< std::endl;
46 std::cout <<
"No PMM2 data for this event" << std::endl;
54 helen->Fill(esize+0.5);
60 for(imes=0;imes<esize;imes++) {
74 int iadc = m[imes].getCharge();
75 int ig = m[imes].getGain();
76 hadc[ig]->Fill(iadc + 0.5);
78 int ipps = m[imes].getPPS();
79 int its = m[imes].getTimeStamp();
81 hpps->Fill(ipps + 0.5, its + 0.5);
83 htvse->Fill(ievnum + 0.5, its + 0.5);
85 if ( (imes == 0) && (
itsold != -1) )
92 htdiff->Fill(itdiff + 0.5);
98 int iramp = m[imes].getTRamp();
99 int iftime = m[imes].getFTime();
100 hramp->Fill(iramp + 0.5, iftime + 0.5);
112 helen =
new TH1F(
"hELen",
"Hist per Event",20,0.0,19.0);
113 heprof =
new TH1F(
"hEProf",
"Hits per Chan",20,0.0,19.0);
114 hadc[0] =
new TH1F(
"hAdcg0",
"All Adc counts Gain 0",256,0.0,1024.0);
115 hadc[1] =
new TH1F(
"hAdcg1",
"All Adc counts Gain 1",256,0.0,1024.0);
116 hpps =
new TH2F(
"hPps",
"Time Stamp vs PPS",20,0.0,19.0,256,0.0,0.0);
117 htvse =
new TH2F(
"hTvsE",
"Time Stamp vs Ev Num",512,0.0,0.0,512,0.0,0.0);
118 hramp =
new TH2F(
"hRamp",
"Fine Time vs TDC Ramp",4,0.0,3.0,256,0.0,0.0);
119 htdiff =
new TH1F(
"hTDiff",
"Time Diff",1024,0.0,1000000.0);
120 htdiff2 =
new TH1F(
"hTDiff2",
"Time Diff low",1024,0.0,15000.0);
126 if ( hstFile == NULL ) {
128 "No Hist File name gived, use default" << std::endl;
129 hstFile =
new TString(
"pmm2evprop.root");
132 TFile *hf =
new TFile(hstFile->Data(),
"RECREATE");
A symple class analyse base PMM2 events properties Event Analysis code.
int itsold
Time Stamp differens ( zoom on low val)
TString * GetProgramName()
Get Program Name.
Bool_t isExist(ULong_t det)
Detecror date exist //! Number of Real Detectors.
void print() const
Add new Digi to the event.
TH1F * htdiff
Fine Time vs TDC Ramp.
TH1F * hadc[2]
Hits per channel.
TH1F * htdiff2
Time Stamp differens.
HarpoDetEvent * GetDetEvent(Long_t plane=XDCC)
Pmm2MesVect * GetMesurements()
Return pointer to decoded data.
TH2F * htvse
Adc valuer for each gain.
TH2F * hpps
Time stamp vs Event number.
TH2F * hramp
Time stamp vs PPS counter.
TH1F * heprof
Number of Digi's in event.
A class store HARPO raw PMM2 event buffer and header. End provide access metods to the row data...
virtual const EventHeader_t * GetHeader() const
TH1F * helen
Redefine empty default.
TString * GetHistFile()
Get Name of Histogram output file.
void Save(char *mode=NULL)
A list of all mesurements in one Event for Pmm2 v2 card The class is place holder for all unpacked me...
R__EXTERN HarpoDetSet * gHDetSet
Long64_t GetVerbose()
Get program verbosity level.