Commit 3c3703b9 authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Correction of the TrackingTimeWindow

parent 456e2ab0
......@@ -123,7 +123,7 @@ TrackingFilter::TrackingFilter() :
fTsGeAnc_min = 0x80000000;
fTsGeAnc_max = 0x7FFFFFFF;
fTrackTimeWindow=0.;
fTrackTimeWindow=-1.;
//fForceSGtoCC = false;
......@@ -738,25 +738,32 @@ UInt_t TrackingFilter::ProcessBlock(ADF::FrameBlock &inBlock, ADF::FrameBlock &o
swap(pEXYZ[i],pEXYZ[i+1]);
}
// reference time for the next builded block
// cout<<"List of hits:"<<endl;
// for(ushort t=0 ; t<number_of_hits ; t++){
// cout<<pEXYZ[t].Ind<<" "<<pEXYZ[t].Ind<<" "<<pEXYZ[t].E<<" "<<pEXYZ[t].T<<endl;
// }
// cout<<endl;
// reference time for the next builded block
uint index=0;
int tot_number_of_gammas=0;
first_hit = 0;
// Float_t GlobRefTime = pEXYZ[index].T;
while(index<saved_number_of_hits) {
// reference time for the next builded block
Float_t RefTime = saved_pEXYZ[index].T;
Float_t RefTime = pEXYZ[index].T;
// value sent to the tracking
number_of_hits=0;
// cout<<"New block (TrackingTimeWindow="<<fTrackTimeWindow<<"):"<<endl;
while(saved_pEXYZ[index].T-RefTime<=fTrackTimeWindow && index<saved_number_of_hits){
pEXYZ[number_of_hits] = saved_pEXYZ[index];
// cout<<setw(2)<<pEXYZ[number_of_hits].Det<<" (seg "<<setw(2)<<pEXYZ[number_of_hits].Seg<<") dt="<<setw(8)<<pEXYZ[number_of_hits].T-RefT<<" ; T="<<setw(8)<<pEXYZ[number_of_hits].T<<" E="<<setw(8)<<pEXYZ[number_of_hits].E<<endl;
while(pEXYZ[index].T-RefTime<=fTrackTimeWindow && index<saved_number_of_hits){
pEXYZ[number_of_hits] = pEXYZ[index];
// cout<<setw(2)<<pEXYZ[number_of_hits].Det<<" (seg "<<setw(2)<<pEXYZ[number_of_hits].Seg<<") dt in block="<<setw(8)<<pEXYZ[number_of_hits].T-RefTime<<" ; dT Global="<<setw(8)<<pEXYZ[number_of_hits].T-GlobRefTime<<" E="<<setw(8)<<pEXYZ[number_of_hits].E<<endl;
number_of_hits++;
index++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment