Project
Loading...
Searching...
No Matches
o2::tpc::ResidualsContainer Struct Reference

#include <ResidualAggregator.h>

Public Types

using TFType = o2::calibration::TFType
 

Public Member Functions

 ResidualsContainer ()=default
 
 ResidualsContainer (ResidualsContainer &&rhs)
 
 ResidualsContainer (const ResidualsContainer &)
 
ResidualsContaineroperator= (const ResidualsContainer &src)=delete
 
 ~ResidualsContainer ()
 
void init (const TrackResiduals *residualsEngine, std::string outputDir, bool wFile, bool wBinnedResid, bool wUnbinnedResid, bool wTrackData, int autosave, int compression, long orbitResetTime)
 
void fillStatisticsBranches ()
 
uint64_t getNEntries () const
 
void fill (const o2::dataformats::TFIDInfo &ti, const gsl::span< const UnbinnedResid > resid, const gsl::span< const o2::tpc::TrackDataCompact > trkRefsIn, const gsl::span< const o2::tpc::TrackData > *trkDataIn, const o2::ctp::LumiInfo *lumiInput)
 
void merge (ResidualsContainer *prev)
 
void print ()
 
void writeToFile (bool closeFileAfterwards)
 
 ClassDefNV (ResidualsContainer, 5)
 

Public Attributes

const TrackResidualstrackResiduals {nullptr}
 
std::array< std::vector< TrackResiduals::LocalResid >, SECTORSPERSIDE *SIDESresiduals {}
 local (binned) residuals per sector
 
std::array< std::vector< TrackResiduals::LocalResid > *, SECTORSPERSIDE *SIDESresidualsPtr {}
 
std::array< std::vector< TrackResiduals::VoxStats >, SECTORSPERSIDE *SIDESstats {}
 voxel statistics per sector
 
std::array< std::vector< TrackResiduals::VoxStats > *, SECTORSPERSIDE *SIDESstatsPtr {}
 
std::vector< uint32_t > tfOrbits
 
std::vector< uint32_t > * tfOrbitsPtr {&tfOrbits}
 first TF orbit
 
std::vector< uint32_t > sumBinnedResid
 
std::vector< uint32_t > * sumBinnedResidPtr {&sumBinnedResid}
 sum of binned residuals for each TF
 
std::vector< uint32_t > sumUnbinnedResid
 
std::vector< uint32_t > * sumUnbinnedResidPtr {&sumUnbinnedResid}
 sum of unbinned residuals for each TF
 
std::vector< o2::ctp::LumiInfolumi
 
std::vector< o2::ctp::LumiInfo > * lumiPtr {&lumi}
 luminosity information from CTP per TF
 
std::vector< UnbinnedResidunbinnedRes
 
std::vector< UnbinnedResid > * unbinnedResPtr {&unbinnedRes}
 unbinned residuals which are sent to the aggregator
 
std::vector< TrackDatatrkData
 
std::vector< TrackData > * trkDataPtr {&trkData}
 track data and cluster ranges
 
std::vector< TrackDataCompacttrackInfo
 
std::vector< TrackDataCompact > * trackInfoPtr {&trackInfo}
 allows to obtain track type for each unbinned residual downstream
 
o2::ctp::LumiInfo lumiTF
 for each processed TF we store the lumi information in the tree of unbinned residuals
 
uint64_t timeMS
 for each processed TF we store its absolute time in ms in the tree of unbinned residuals
 
std::string fileName {"o2tpc_residuals"}
 
std::unique_ptr< TFile > fileOut {nullptr}
 
std::unique_ptr< TTree > treeOutResidualsUnbinned {nullptr}
 
std::unique_ptr< TTree > treeOutTrackData {nullptr}
 
std::unique_ptr< TTree > treeOutResiduals {nullptr}
 
std::unique_ptr< TTree > treeOutStats {nullptr}
 
std::unique_ptr< TTree > treeOutRecords {nullptr}
 
bool writeToRootFile {true}
 set to false to avoid that any output file is produced
 
bool writeBinnedResid {false}
 flag, whether binned residuals should be written out
 
bool writeUnbinnedResiduals {false}
 flag, whether unbinned residuals should be written out
 
bool writeTrackData {false}
 flag, whether full seeding track information should be written out
 
int autosaveInterval {0}
 if > 0, then the output written to file for every n-th TF
 
long orbitReset {0}
 current orbit reset time in ms
 
uint32_t firstTForbit {0}
 stored for the first seen TF to allow conversion to time stamp
 
TFType firstSeenTF {o2::calibration::INFINITE_TF}
 the first TF which was added to this container
 
TFType lastSeenTF {0}
 the last TF which was added to this container
 
uint64_t nResidualsTotal {0}
 the total number of residuals for this container
 
float TPCVDriftRef {-1.}
 TPC nominal drift speed in cm/microseconds.
 
float TPCDriftTimeOffsetRef {0.}
 TPC nominal (e.g. at the start of run) drift time bias in cm/mus.
 

Detailed Description

Definition at line 38 of file ResidualAggregator.h.

Member Typedef Documentation

◆ TFType

Constructor & Destructor Documentation

◆ ResidualsContainer() [1/3]

o2::tpc::ResidualsContainer::ResidualsContainer ( )
default

◆ ResidualsContainer() [2/3]

ResidualsContainer::ResidualsContainer ( ResidualsContainer &&  rhs)

Definition at line 58 of file ResidualAggregator.cxx.

◆ ResidualsContainer() [3/3]

ResidualsContainer::ResidualsContainer ( const ResidualsContainer rhs)

Definition at line 51 of file ResidualAggregator.cxx.

◆ ~ResidualsContainer()

ResidualsContainer::~ResidualsContainer ( )

Definition at line 30 of file ResidualAggregator.cxx.

Member Function Documentation

◆ ClassDefNV()

o2::tpc::ResidualsContainer::ClassDefNV ( ResidualsContainer  ,
 
)

◆ fill()

void ResidualsContainer::fill ( const o2::dataformats::TFIDInfo ti,
const gsl::span< const UnbinnedResid resid,
const gsl::span< const o2::tpc::TrackDataCompact trkRefsIn,
const gsl::span< const o2::tpc::TrackData > *  trkDataIn,
const o2::ctp::LumiInfo lumiInput 
)

Definition at line 173 of file ResidualAggregator.cxx.

◆ fillStatisticsBranches()

void ResidualsContainer::fillStatisticsBranches ( )

Definition at line 162 of file ResidualAggregator.cxx.

◆ getNEntries()

uint64_t o2::tpc::ResidualsContainer::getNEntries ( ) const
inline

Definition at line 50 of file ResidualAggregator.h.

◆ init()

void ResidualsContainer::init ( const TrackResiduals residualsEngine,
std::string  outputDir,
bool  wFile,
bool  wBinnedResid,
bool  wUnbinnedResid,
bool  wTrackData,
int  autosave,
int  compression,
long  orbitResetTime 
)

Definition at line 87 of file ResidualAggregator.cxx.

◆ merge()

void ResidualsContainer::merge ( ResidualsContainer prev)

Definition at line 296 of file ResidualAggregator.cxx.

◆ operator=()

ResidualsContainer & o2::tpc::ResidualsContainer::operator= ( const ResidualsContainer src)
delete

◆ print()

void ResidualsContainer::print ( )

Definition at line 374 of file ResidualAggregator.cxx.

◆ writeToFile()

void ResidualsContainer::writeToFile ( bool  closeFileAfterwards)

Definition at line 262 of file ResidualAggregator.cxx.

Member Data Documentation

◆ autosaveInterval

int o2::tpc::ResidualsContainer::autosaveInterval {0}

if > 0, then the output written to file for every n-th TF

Definition at line 85 of file ResidualAggregator.h.

◆ fileName

std::string o2::tpc::ResidualsContainer::fileName {"o2tpc_residuals"}

Definition at line 72 of file ResidualAggregator.h.

◆ fileOut

std::unique_ptr<TFile> o2::tpc::ResidualsContainer::fileOut {nullptr}

Definition at line 73 of file ResidualAggregator.h.

◆ firstSeenTF

TFType o2::tpc::ResidualsContainer::firstSeenTF {o2::calibration::INFINITE_TF}

the first TF which was added to this container

Definition at line 90 of file ResidualAggregator.h.

◆ firstTForbit

uint32_t o2::tpc::ResidualsContainer::firstTForbit {0}

stored for the first seen TF to allow conversion to time stamp

Definition at line 89 of file ResidualAggregator.h.

◆ lastSeenTF

TFType o2::tpc::ResidualsContainer::lastSeenTF {0}

the last TF which was added to this container

Definition at line 91 of file ResidualAggregator.h.

◆ lumi

std::vector<o2::ctp::LumiInfo> o2::tpc::ResidualsContainer::lumi

Definition at line 65 of file ResidualAggregator.h.

◆ lumiPtr

std::vector<o2::ctp::LumiInfo> * o2::tpc::ResidualsContainer::lumiPtr {&lumi}

luminosity information from CTP per TF

Definition at line 65 of file ResidualAggregator.h.

◆ lumiTF

o2::ctp::LumiInfo o2::tpc::ResidualsContainer::lumiTF

for each processed TF we store the lumi information in the tree of unbinned residuals

Definition at line 69 of file ResidualAggregator.h.

◆ nResidualsTotal

uint64_t o2::tpc::ResidualsContainer::nResidualsTotal {0}

the total number of residuals for this container

Definition at line 92 of file ResidualAggregator.h.

◆ orbitReset

long o2::tpc::ResidualsContainer::orbitReset {0}

current orbit reset time in ms

Definition at line 88 of file ResidualAggregator.h.

◆ residuals

std::array<std::vector<TrackResiduals::LocalResid>, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::residuals {}

local (binned) residuals per sector

Definition at line 58 of file ResidualAggregator.h.

◆ residualsPtr

std::array<std::vector<TrackResiduals::LocalResid>*, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::residualsPtr {}

Definition at line 59 of file ResidualAggregator.h.

◆ stats

std::array<std::vector<TrackResiduals::VoxStats>, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::stats {}

voxel statistics per sector

Definition at line 60 of file ResidualAggregator.h.

◆ statsPtr

std::array<std::vector<TrackResiduals::VoxStats>*, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::statsPtr {}

Definition at line 61 of file ResidualAggregator.h.

◆ sumBinnedResid

std::vector<uint32_t> o2::tpc::ResidualsContainer::sumBinnedResid

Definition at line 63 of file ResidualAggregator.h.

◆ sumBinnedResidPtr

std::vector<uint32_t> * o2::tpc::ResidualsContainer::sumBinnedResidPtr {&sumBinnedResid}

sum of binned residuals for each TF

Definition at line 63 of file ResidualAggregator.h.

◆ sumUnbinnedResid

std::vector<uint32_t> o2::tpc::ResidualsContainer::sumUnbinnedResid

Definition at line 64 of file ResidualAggregator.h.

◆ sumUnbinnedResidPtr

std::vector<uint32_t> * o2::tpc::ResidualsContainer::sumUnbinnedResidPtr {&sumUnbinnedResid}

sum of unbinned residuals for each TF

Definition at line 64 of file ResidualAggregator.h.

◆ tfOrbits

std::vector<uint32_t> o2::tpc::ResidualsContainer::tfOrbits

Definition at line 62 of file ResidualAggregator.h.

◆ tfOrbitsPtr

std::vector<uint32_t> * o2::tpc::ResidualsContainer::tfOrbitsPtr {&tfOrbits}

first TF orbit

Definition at line 62 of file ResidualAggregator.h.

◆ timeMS

uint64_t o2::tpc::ResidualsContainer::timeMS

for each processed TF we store its absolute time in ms in the tree of unbinned residuals

Definition at line 70 of file ResidualAggregator.h.

◆ TPCDriftTimeOffsetRef

float o2::tpc::ResidualsContainer::TPCDriftTimeOffsetRef {0.}

TPC nominal (e.g. at the start of run) drift time bias in cm/mus.

Definition at line 94 of file ResidualAggregator.h.

◆ TPCVDriftRef

float o2::tpc::ResidualsContainer::TPCVDriftRef {-1.}

TPC nominal drift speed in cm/microseconds.

Definition at line 93 of file ResidualAggregator.h.

◆ trackInfo

std::vector<TrackDataCompact> o2::tpc::ResidualsContainer::trackInfo

Definition at line 68 of file ResidualAggregator.h.

◆ trackInfoPtr

std::vector<TrackDataCompact> * o2::tpc::ResidualsContainer::trackInfoPtr {&trackInfo}

allows to obtain track type for each unbinned residual downstream

Definition at line 68 of file ResidualAggregator.h.

◆ trackResiduals

const TrackResiduals* o2::tpc::ResidualsContainer::trackResiduals {nullptr}

Definition at line 57 of file ResidualAggregator.h.

◆ treeOutRecords

std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutRecords {nullptr}

Definition at line 78 of file ResidualAggregator.h.

◆ treeOutResiduals

std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutResiduals {nullptr}

Definition at line 76 of file ResidualAggregator.h.

◆ treeOutResidualsUnbinned

std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutResidualsUnbinned {nullptr}

Definition at line 74 of file ResidualAggregator.h.

◆ treeOutStats

std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutStats {nullptr}

Definition at line 77 of file ResidualAggregator.h.

◆ treeOutTrackData

std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutTrackData {nullptr}

Definition at line 75 of file ResidualAggregator.h.

◆ trkData

std::vector<TrackData> o2::tpc::ResidualsContainer::trkData

Definition at line 67 of file ResidualAggregator.h.

◆ trkDataPtr

std::vector<TrackData> * o2::tpc::ResidualsContainer::trkDataPtr {&trkData}

track data and cluster ranges

Definition at line 67 of file ResidualAggregator.h.

◆ unbinnedRes

std::vector<UnbinnedResid> o2::tpc::ResidualsContainer::unbinnedRes

Definition at line 66 of file ResidualAggregator.h.

◆ unbinnedResPtr

std::vector<UnbinnedResid> * o2::tpc::ResidualsContainer::unbinnedResPtr {&unbinnedRes}

unbinned residuals which are sent to the aggregator

Definition at line 66 of file ResidualAggregator.h.

◆ writeBinnedResid

bool o2::tpc::ResidualsContainer::writeBinnedResid {false}

flag, whether binned residuals should be written out

Definition at line 82 of file ResidualAggregator.h.

◆ writeToRootFile

bool o2::tpc::ResidualsContainer::writeToRootFile {true}

set to false to avoid that any output file is produced

Definition at line 81 of file ResidualAggregator.h.

◆ writeTrackData

bool o2::tpc::ResidualsContainer::writeTrackData {false}

flag, whether full seeding track information should be written out

Definition at line 84 of file ResidualAggregator.h.

◆ writeUnbinnedResiduals

bool o2::tpc::ResidualsContainer::writeUnbinnedResiduals {false}

flag, whether unbinned residuals should be written out

Definition at line 83 of file ResidualAggregator.h.


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