26 return StatusCode::SUCCESS;
35 const int NTRAINS = 4;
38 std::vector<float> vecTDHit[NST][NDET][NTRAINS];
40 for (
int i=0;
i<NST; ++
i)
42 for (
int j=0; j<NDET; ++j)
44 for (
int k=0;
k<NTRAINS; ++
k)
46 vecTDHit[
i][j][
k].clear();
52 std::list<TDHIT>::const_iterator iter;
53 for (iter=ListTDHits.begin(); iter!=ListTDHits.end(); ++iter)
59 if ((*iter).fADC < 100) vecTDHit[(*iter).nStationID][(*iter).nSensitiveElementID][((*iter).nDetectorID)%4].push_back( (*iter).fTDC +
int(((*iter).nDetectorID)/4)*0.001 );
61 vecTDHit[(*iter).nStationID][(*iter).nSensitiveElementID][((*iter).nDetectorID)%4].push_back(0.0);
68 for (
int i=0;
i<NST; ++
i)
70 for (
int j=0; j<NDET; ++j)
72 for (
int k=0;
k<NTRAINS; ++
k)
74 int TrSize = vecTDHit[
i][j][
k].size();
79 for (
int l=0;
l<TrSize; ++
l)
81 TrTime += (vecTDHit[
i][j][
k].at(
l));
82 if ( vecTDHit[
i][j][
k].at(
l)==0.0) ++TrSat;
85 if( TrSize!=TrSat) TrTime /= (TrSize-TrSat);
107 return StatusCode::SUCCESS;
114 return StatusCode::SUCCESS;