ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::AFPToFTrack_v1 Class Reference

Class representing a track reconstructed in AFP ToF. More...

#include <AFPToFTrack_v1.h>

Inheritance diagram for xAOD::AFPToFTrack_v1:
Collaboration diagram for xAOD::AFPToFTrack_v1:

Public Types

typedef ElementLink< AFPToFHitContainerAFPToFHitLink_t
 Type of a link to the hit.

Public Member Functions

int stationID () const
 Index of the station where track was reconstructed.
void setStationID (int stationID)
 Set index of the station where track was reconstructed.
float trainTime () const
 Track local time.
void setTrainTime (float newTrainTime)
 Set track time.
int trainID () const
 Track train ID.
void setTrainID (int newTrainID)
 Set track train id(position).
int trainSize () const
 Track train size.
void setTrainSize (int newTrainSize)
 Set track train size.
int trainNSat () const
 number of saturated bars in the train
void setTrainNSat (int newTrainNSat)
 Set slope of the reconstructed track along X axis in local coordinate system.
const std::vector< AFPToFHitLink_t > & hits () const
 Vector of links to bars that were used to reconstruct the track.
void setHits (const std::vector< AFPToFHitLink_t > &newHitsVector)
 Set vector of links to bars used for track reconstruction.
void addBar (const AFPToFHitLink_t &newHit)
 Add a link to a bar used to reconstruct the track.
int algID () const
 Identification number of the algorithm used to reconstruct the track.
void setAlgID (int newIAlgID)
 Set reconstruction algorithm identification number.
void toPersistent ()
 Function making sure that the object is ready for persistification i.e. saving.

Detailed Description

Class representing a track reconstructed in AFP ToF.

This class provides access to the information about tracks that were reconstructed using AFP ToF information.

Definition at line 35 of file AFPToFTrack_v1.h.

Member Typedef Documentation

◆ AFPToFHitLink_t

Type of a link to the hit.

Definition at line 39 of file AFPToFTrack_v1.h.

Member Function Documentation

◆ addBar()

void xAOD::AFPToFTrack_v1::addBar ( const AFPToFHitLink_t & newHit)

Add a link to a bar used to reconstruct the track.

A new link to the hit is added to the existing vector of links to the bars used to reconstruct the track.

Parameters
newHitlink to the pixel used to reconstruct the track

Definition at line 34 of file AFPToFTrack_v1.cxx.

35 {
36 hitsAcc( *this ).push_back( link );
37 }
static const SG::AuxElement::Accessor< std::vector< AFPToFTrack_v1::AFPToFHitLink_t > > hitsAcc("bars")

◆ algID()

int xAOD::AFPToFTrack_v1::algID ( ) const

Identification number of the algorithm used to reconstruct the track.

The following coding is used.

ID Algorithm Comments
0 Basic algorithm
Returns
identification number of the algorithm used to reconstruct the track

◆ hits()

const std::vector< AFPToFHitLink_t > & xAOD::AFPToFTrack_v1::hits ( ) const

Vector of links to bars that were used to reconstruct the track.

This method provides access to the bar that were used to reconstruct the track via ElementLink object.

Note
Returns

◆ setAlgID()

void xAOD::AFPToFTrack_v1::setAlgID ( int newIAlgID)

Set reconstruction algorithm identification number.

The following coding is used.

ID Algorithm Comments
0 Basic algorithm
Returns
identification number of the algorithm used to reconstruct the track
Parameters
newIAlgIDidentification number of the algorithm used to reconstruct the track

◆ setHits()

void xAOD::AFPToFTrack_v1::setHits ( const std::vector< AFPToFHitLink_t > & newHitsVector)

Set vector of links to bars used for track reconstruction.

Parameters
newHitsVectorvector of links to bars used for track reconstruction

◆ setStationID()

void xAOD::AFPToFTrack_v1::setStationID ( int stationID)

Set index of the station where track was reconstructed.

The numbering scheme is the same as in xAOD::AFPStationID. It is recommended to use this class instead of bare numbers.

Parameters
stationIDindex of the station where track was reconstructed

◆ setTrainID()

void xAOD::AFPToFTrack_v1::setTrainID ( int newTrainID)

Set track train id(position).

Parameters
newTrainIDtrack train ID(position)

◆ setTrainNSat()

void xAOD::AFPToFTrack_v1::setTrainNSat ( int newTrainNSat)

Set slope of the reconstructed track along X axis in local coordinate system.

Parameters
newTrainNSatnumber of saturated bars in the train

◆ setTrainSize()

void xAOD::AFPToFTrack_v1::setTrainSize ( int newTrainSize)

Set track train size.

Parameters
newTrainSizetrack train size

◆ setTrainTime()

void xAOD::AFPToFTrack_v1::setTrainTime ( float newTrainTime)

Set track time.

Parameters
newTrainTime

◆ stationID()

int xAOD::AFPToFTrack_v1::stationID ( ) const

Index of the station where track was reconstructed.

The numbering scheme is the same as in xAOD::AFPStationID. It is recommended to use this class instead of bare numbers.

◆ toPersistent()

void xAOD::AFPToFTrack_v1::toPersistent ( )

Function making sure that the object is ready for persistification i.e. saving.

Definition at line 39 of file AFPToFTrack_v1.cxx.

39 {
40 // Prepare the hits links for persistification:
41 if( hitsAcc.isAvailableWritable( *this ) ) {
42 std::vector<AFPToFTrack_v1::AFPToFHitLink_t>::iterator end = hitsAcc( *this ).end();
43 for(std::vector<AFPToFTrack_v1::AFPToFHitLink_t>::iterator itr = hitsAcc( *this ).begin(); itr != end; ++itr )
44 itr->toPersistent();
45
46 }
47 }

◆ trainID()

int xAOD::AFPToFTrack_v1::trainID ( ) const

Track train ID.

@copydetail xAOD::AFPToFTrack_v1::TrainID()

◆ trainNSat()

int xAOD::AFPToFTrack_v1::trainNSat ( ) const

number of saturated bars in the train

◆ trainSize()

int xAOD::AFPToFTrack_v1::trainSize ( ) const

Track train size.

◆ trainTime()

float xAOD::AFPToFTrack_v1::trainTime ( ) const

Track local time.


The documentation for this class was generated from the following files: