SpiRITTPCTasks - SpiRIT-Collaboration/FLowAnalysis GitHub Wiki

Track Quality definition

` void STSpiRITTPCTask::SetupTrackQualityFlag(STParticle *apart) { if( apart->GetP() == 0 || apart->GetP() > 3100 ) apart->SetMomentumFlag(0);

if( apart->GetdEdx() <= 0. ) apart->SetdEdxFlag(0);

if( apart->GetDistanceAtVertex() > 20 ) apart->SetDistanceAtVertexFlag(0);

if( apart->GetDistanceAtVertex() > 20 ) apart->SetDistanceAtVertexFlag(0);

if( abs( apart->GetVertex().Z() + 13.1 ) > 1.7*3. ) apart->SetVertexAtTargetFlag(0);

if( apart->GetNDF() < 20) apart->SetNDFFlag(0);

} `