#include <AFP_TDZVertex.h>
Definition at line 22 of file AFP_TDZVertex.h.
◆ AFP_TDZVertex()
AFP_TDZVertex::AFP_TDZVertex |
( |
| ) |
|
◆ ~AFP_TDZVertex()
AFP_TDZVertex::~AFP_TDZVertex |
( |
| ) |
|
◆ Execute()
StatusCode AFP_TDZVertex::Execute |
( |
const std::list< TDHIT > & |
ListTDHits | ) |
|
Definition at line 29 of file AFP_TDZVertex.cxx.
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;
◆ Finalize()
StatusCode AFP_TDZVertex::Finalize |
( |
std::list< TDRESULT > * |
pListResults | ) |
|
◆ GetData()
void AFP_TDZVertex::GetData |
( |
| ) |
|
◆ Initialize()
StatusCode AFP_TDZVertex::Initialize |
( |
float |
fAmpThresh, |
|
|
int |
iDataType |
|
) |
| |
◆ m_AmpThresh
float AFP_TDZVertex::m_AmpThresh |
|
private |
◆ m_iDataType
int AFP_TDZVertex::m_iDataType |
|
private |
◆ m_listResults
std::list<TDRESULT> AFP_TDZVertex::m_listResults |
|
private |
The documentation for this class was generated from the following files: