Project
Loading...
Searching...
No Matches
o2::tpc::CalibLaserTracks Class Reference

#include <CalibLaserTracks.h>

Public Member Functions

 CalibLaserTracks ()
 
 CalibLaserTracks (const CalibLaserTracks &other)
 
 ~CalibLaserTracks ()=default
 
void fill (const gsl::span< const TrackTPC > tracks)
 process all tracks of one TF
 
void fill (std::vector< TrackTPC > const &tracks)
 process all tracks of one TF
 
void processTrack (const TrackTPC &track)
 process single track
 
int findLaserTrackID (TrackPar track, int side=-1)
 
void setTriggerPos (int triggerPos)
 trigger position for track z position correction
 
void merge (const CalibLaserTracks *other)
 merge data with other calibration object
 
void endTF ()
 End processing of this TF.
 
void finalize ()
 Finalize full processing.
 
void print () const
 print information
 
bool hasEnoughData (size_t numTFs=1) const
 
size_t getMatchedPairs () const
 number of associated laser tracks on both sides for all processed TFs
 
size_t getMatchedPairsA () const
 number of associated laser tracks for all processed TFs on the A-Side
 
size_t getMatchedPairsC () const
 number of associated laser tracks for all processed TFs on the C-Side
 
size_t getMatchedPairsTFA () const
 number of associated laser tracks presently processed TFs on the A-Side
 
size_t getMatchedPairsTFC () const
 number of associated laser tracks presently processed TFs on the C-Side
 
void setTFtimes (uint64_t tfStart, uint64_t tfEnd=0)
 
uint64_t getTFstart () const
 
uint64_t getTFend () const
 
void setWriteDebugTree (bool write)
 
bool getWriteDebugTree () const
 
TimePair fit (const std::vector< TimePair > &trackMatches, std::string_view info) const
 extract DV correction and T0 offset
 
void sort (std::vector< TimePair > &trackMatches)
 sort TimePoint vectors
 
const LtrCalibDatagetCalibDataTF ()
 drift velocity fit information for presently processed time frame
 
const LtrCalibDatagetCalibData ()
 drift velocity fit information for full data set
 
void setDebugOutputName (std::string_view name)
 name of the debug output tree
 
void setVDriftRef (float v)
 

Static Public Member Functions

static float getPhiNearbyLaserRod (const TrackPar &param, int side)
 calculate phi of nearest laser rod
 
static bool hasNearbyLaserRod (const TrackPar &param, int side)
 check if param is closer to a laser rod than 1/4 of a sector width
 

Static Public Attributes

static constexpr size_t MinTrackPerSidePerTF = 50
 

Detailed Description

Definition at line 46 of file CalibLaserTracks.h.

Constructor & Destructor Documentation

◆ CalibLaserTracks() [1/2]

o2::tpc::CalibLaserTracks::CalibLaserTracks ( )
inline

Definition at line 51 of file CalibLaserTracks.h.

◆ CalibLaserTracks() [2/2]

o2::tpc::CalibLaserTracks::CalibLaserTracks ( const CalibLaserTracks other)
inline

Definition at line 57 of file CalibLaserTracks.h.

◆ ~CalibLaserTracks()

o2::tpc::CalibLaserTracks::~CalibLaserTracks ( )
default

Member Function Documentation

◆ endTF()

void CalibLaserTracks::endTF ( )

End processing of this TF.

Definition at line 287 of file CalibLaserTracks.cxx.

◆ fill() [1/2]

void CalibLaserTracks::fill ( const gsl::span< const TrackTPC tracks)

process all tracks of one TF

Definition at line 33 of file CalibLaserTracks.cxx.

◆ fill() [2/2]

void CalibLaserTracks::fill ( std::vector< TrackTPC > const &  tracks)

process all tracks of one TF

Definition at line 27 of file CalibLaserTracks.cxx.

◆ finalize()

void CalibLaserTracks::finalize ( )

Finalize full processing.

Definition at line 304 of file CalibLaserTracks.cxx.

◆ findLaserTrackID()

int CalibLaserTracks::findLaserTrackID ( TrackPar  track,
int  side = -1 
)

try to associate track with ideal laser track

Returns
laser track ID; -1 in case of no match

Definition at line 155 of file CalibLaserTracks.cxx.

◆ fit()

TimePair CalibLaserTracks::fit ( const std::vector< TimePair > &  trackMatches,
std::string_view  info 
) const

extract DV correction and T0 offset

Definition at line 346 of file CalibLaserTracks.cxx.

◆ getCalibData()

const LtrCalibData & o2::tpc::CalibLaserTracks::getCalibData ( )
inline

drift velocity fit information for full data set

Definition at line 153 of file CalibLaserTracks.h.

◆ getCalibDataTF()

const LtrCalibData & o2::tpc::CalibLaserTracks::getCalibDataTF ( )
inline

drift velocity fit information for presently processed time frame

Definition at line 150 of file CalibLaserTracks.h.

◆ getMatchedPairs()

size_t o2::tpc::CalibLaserTracks::getMatchedPairs ( ) const
inline

number of associated laser tracks on both sides for all processed TFs

Definition at line 115 of file CalibLaserTracks.h.

◆ getMatchedPairsA()

size_t o2::tpc::CalibLaserTracks::getMatchedPairsA ( ) const
inline

number of associated laser tracks for all processed TFs on the A-Side

Definition at line 118 of file CalibLaserTracks.h.

◆ getMatchedPairsC()

size_t o2::tpc::CalibLaserTracks::getMatchedPairsC ( ) const
inline

number of associated laser tracks for all processed TFs on the C-Side

Definition at line 121 of file CalibLaserTracks.h.

◆ getMatchedPairsTFA()

size_t o2::tpc::CalibLaserTracks::getMatchedPairsTFA ( ) const
inline

number of associated laser tracks presently processed TFs on the A-Side

Definition at line 124 of file CalibLaserTracks.h.

◆ getMatchedPairsTFC()

size_t o2::tpc::CalibLaserTracks::getMatchedPairsTFC ( ) const
inline

number of associated laser tracks presently processed TFs on the C-Side

Definition at line 127 of file CalibLaserTracks.h.

◆ getPhiNearbyLaserRod()

float CalibLaserTracks::getPhiNearbyLaserRod ( const TrackPar &  param,
int  side 
)
static

calculate phi of nearest laser rod

Definition at line 219 of file CalibLaserTracks.cxx.

◆ getTFend()

uint64_t o2::tpc::CalibLaserTracks::getTFend ( ) const
inline

Definition at line 138 of file CalibLaserTracks.h.

◆ getTFstart()

uint64_t o2::tpc::CalibLaserTracks::getTFstart ( ) const
inline

Definition at line 137 of file CalibLaserTracks.h.

◆ getWriteDebugTree()

bool o2::tpc::CalibLaserTracks::getWriteDebugTree ( ) const
inline

Definition at line 141 of file CalibLaserTracks.h.

◆ hasEnoughData()

bool o2::tpc::CalibLaserTracks::hasEnoughData ( size_t  numTFs = 1) const
inline

check amount of data (to be improved) at least numTFs with laser track candidate and MinTrackPerSidePerTF tracks per side per TF

Definition at line 112 of file CalibLaserTracks.h.

◆ hasNearbyLaserRod()

bool CalibLaserTracks::hasNearbyLaserRod ( const TrackPar &  param,
int  side 
)
static

check if param is closer to a laser rod than 1/4 of a sector width

Definition at line 229 of file CalibLaserTracks.cxx.

◆ merge()

void CalibLaserTracks::merge ( const CalibLaserTracks other)

merge data with other calibration object

Definition at line 250 of file CalibLaserTracks.cxx.

◆ print()

void CalibLaserTracks::print ( ) const

print information

Definition at line 402 of file CalibLaserTracks.cxx.

◆ processTrack()

void CalibLaserTracks::processTrack ( const TrackTPC track)

process single track

Definition at line 75 of file CalibLaserTracks.cxx.

◆ setDebugOutputName()

void o2::tpc::CalibLaserTracks::setDebugOutputName ( std::string_view  name)
inline

name of the debug output tree

Definition at line 156 of file CalibLaserTracks.h.

◆ setTFtimes()

void o2::tpc::CalibLaserTracks::setTFtimes ( uint64_t  tfStart,
uint64_t  tfEnd = 0 
)
inline

time frame time of presently processed time frame should be called before calling processTrack(s)

Definition at line 131 of file CalibLaserTracks.h.

◆ setTriggerPos()

void o2::tpc::CalibLaserTracks::setTriggerPos ( int  triggerPos)
inline

trigger position for track z position correction

Definition at line 96 of file CalibLaserTracks.h.

◆ setVDriftRef()

void o2::tpc::CalibLaserTracks::setVDriftRef ( float  v)
inline

Definition at line 158 of file CalibLaserTracks.h.

◆ setWriteDebugTree()

void o2::tpc::CalibLaserTracks::setWriteDebugTree ( bool  write)
inline

Definition at line 140 of file CalibLaserTracks.h.

◆ sort()

void CalibLaserTracks::sort ( std::vector< TimePair > &  trackMatches)

sort TimePoint vectors

Definition at line 396 of file CalibLaserTracks.cxx.

Member Data Documentation

◆ MinTrackPerSidePerTF

constexpr size_t o2::tpc::CalibLaserTracks::MinTrackPerSidePerTF = 50
staticconstexpr

Definition at line 49 of file CalibLaserTracks.h.


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