53 if (plane != NULL )plane->
print();
70 for(Int_t plane = 0; plane<2; plane++){
74 if ( m == NULL )
continue;
77 Double_t qTotBefore = 0;
78 Double_t qTotAfter = 0;
79 for(Int_t j=0;j<
NCHAN;j++){
80 for(Int_t i=0;i<
NADC;i++){
84 if(i< fTstart ) qTotBefore += q;
85 if( i >fTend) qTotAfter += q;
86 if(i>=fTstart && i<=fTend) qTotIn += q;
92 hQbefore[plane]->Fill(qTotBefore);
93 hQafter[plane]->Fill(qTotAfter);
94 hQin[plane]->Fill(qTotIn);
101 Double_t data[7] = {(Double_t) plane,qTotIn,qTotBefore,qTotAfter,
107 if(qTotBefore>fThr || qTotAfter>fThr)
108 fEvt->GetHeader()->SetEvAnaStatus(-2);
122 Info(
"Constructor",
"Use default fTstart %d",fTstart);
128 Info(
"Constructor",
"Use default fTend %d",fTend);
136 Info(
"Constructor",
"Use default fThr %g",fThr);
140 const Int_t nbinsQcl = 100;
141 Double_t xminQcl = 10;
142 Double_t xmaxQcl = 1e5;
143 Double_t logxminQcl = TMath::Log(xminQcl);
144 Double_t logxmaxQcl = TMath::Log(xmaxQcl);
145 Double_t binwidthQcl = (logxmaxQcl-logxminQcl)/nbinsQcl;
146 Double_t xbinsQcl[nbinsQcl+1];
147 xbinsQcl[0] = xminQcl;
148 for (Int_t i=1;i<=nbinsQcl;i++)
149 xbinsQcl[i] = TMath::Exp(logxminQcl+i*binwidthQcl);
150 hQbefore[0] =
new TH1F(
"hQbeforeX",
";Q_{before}",nbinsQcl,xbinsQcl);
151 hQbefore[1] =
new TH1F(
"hQbeforeY",
";Q_{before}",nbinsQcl,xbinsQcl);
152 hQafter[0] =
new TH1F(
"hQafterX",
";Q_{after}",nbinsQcl,xbinsQcl);
153 hQafter[1] =
new TH1F(
"hQafterY",
";Q_{after}",nbinsQcl,xbinsQcl);
154 hQin[0] =
new TH1F(
"hQinX",
";Q_{in}",nbinsQcl,xbinsQcl);
155 hQin[1] =
new TH1F(
"hQinY",
";Q_{in}",nbinsQcl,xbinsQcl);
157 ntuple =
new TNtupleD(
"ntuple",
"pile up data",
"plane:qIn:qBefore:qAfter:xS:yS:tS");
158 ntuple->SetDirectory(0);
169 hQbefore[0]->Write();
170 hQbefore[1]->Write();
void print()
Overloaded method which do all job.
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.
void Save(char *mode=NULL)
Object containing the reconstruction information for one event (with array of HarpoRecoClusters Harpo...
Dummy analysis to run as test and example. Give basic histograms of the data.
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
Bool_t Lookup(const char *path, Bool_t &val)
Lookup function for scalar values.
const ULong_t gkNDetectors
R__EXTERN HarpoDetSet * gHDetSet