48 if (plane != NULL )plane->
print();
61 if ( mX == NULL )
return;
62 if ( mY == NULL )
return;
65 Double_t qTotX3 = 0, qTotY3 = 0;
66 Double_t meanX3 = 0, meanY3 = 0;
67 Double_t meanXevt = 0, meanYevt = 0;
69 Int_t triggerType = -1;
75 for(Int_t i = 0; i<7; i++) data[i] = -1000;
76 data[0] = triggerType;
78 for(Int_t i=0;i<
NADC;i++){
79 Double_t qTotX = 0, qTotY = 0;
80 Double_t meanX = 0, meanY = 0;
81 for(Int_t j=0;j<
NCHAN;j++){
97 if(qTotX*qTotY == 0)
continue;
101 meanXevt = meanX3/qTotX3;
102 meanYevt = meanY3/qTotY3;
107 if(i>=150)
hVertex2->Fill(meanXevt,meanYevt);
108 if(TMath::Abs(meanXevt-144)>10)
break;
109 if(TMath::Abs(meanYevt-144)>10)
break;
112 if(i<150 && i2>2)
break;
120 Double_t xMin = 400, yMin = 400, xMax = -1, yMax = -1;
121 for(Int_t J=0;J<
NCHAN;J++){
122 Double_t qXch = 0, qYch = 0;
123 for(Int_t I=i-1;I<i+100 && I<
NADC;I++){
124 Double_t qX = mX->
GetData(J,I);
125 Double_t qY = mY->
GetData(J,I);
131 if(qXch>1000 && J<xMin) xMin = J;
132 if(qYch>1000 && J<yMin) yMin = J;
133 if(qXch>1000 && J>xMax) xMax = J;
134 if(qYch>1000 && J>yMax) yMax = J;
137 Double_t widthX = xMax-xMin+1;
138 Double_t widthY = yMax-yMin+1;
140 if(widthX > 1 && widthY > 1){
170 fNtuple =
new TNtuple(
"fNtuple",
"vertex data",
"trigger:T:X:Y:T2:X2:Y2");
173 hVertex2 =
new TH2F(
"hVertex",
";X;Y",576,0,288,576,0,288);
175 hWidthRatio =
new TH1F(
"hWidthRatio",
"",1000,0,10);
178 hWidthXvsY =
new TH2F(
"hWidthXvsY",
";w_{X};w_{Y};",288,0,288,288,0,288);
Dummy analysis to run as test and example. Give basic histograms of the data.
Double_t GetData(Int_t i, Int_t j)
Set/Get Data Cell.
Bool_t isExist(ULong_t det)
Detecror date exist //! Number of Real Detectors.
TFile * OpenHistFile(const char *ananame)
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
HarpoDetEvent * GetDetEvent(Long_t plane=XDCC)
A class store HARPO raw PMM2 event buffer and header. End provide access metods to the row data...
HarpoEventHeader * GetHeader()
void Save(char *mode=NULL)
void print()
Overloaded method which do all job.
const ULong_t gkNDetectors
HarpoDccMap * GetDccMap(Long_t plane=XDCC)
R__EXTERN HarpoDetSet * gHDetSet