![]() |
Project
|
#include <ResidualAggregator.h>
Public Types | |
using | TFType = o2::calibration::TFType |
Public Member Functions | |
ResidualsContainer ()=default | |
ResidualsContainer (ResidualsContainer &&rhs) | |
ResidualsContainer (const ResidualsContainer &) | |
ResidualsContainer & | operator= (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 TrackResiduals * | trackResiduals {nullptr} |
std::array< std::vector< TrackResiduals::LocalResid >, SECTORSPERSIDE *SIDES > | residuals {} |
local (binned) residuals per sector | |
std::array< std::vector< TrackResiduals::LocalResid > *, SECTORSPERSIDE *SIDES > | residualsPtr {} |
std::array< std::vector< TrackResiduals::VoxStats >, SECTORSPERSIDE *SIDES > | stats {} |
voxel statistics per sector | |
std::array< std::vector< TrackResiduals::VoxStats > *, SECTORSPERSIDE *SIDES > | statsPtr {} |
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::LumiInfo > | lumi |
std::vector< o2::ctp::LumiInfo > * | lumiPtr {&lumi} |
luminosity information from CTP per TF | |
std::vector< UnbinnedResid > | unbinnedRes |
std::vector< UnbinnedResid > * | unbinnedResPtr {&unbinnedRes} |
unbinned residuals which are sent to the aggregator | |
std::vector< TrackData > | trkData |
std::vector< TrackData > * | trkDataPtr {&trkData} |
track data and cluster ranges | |
std::vector< TrackDataCompact > | trackInfo |
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. | |
Definition at line 38 of file ResidualAggregator.h.
Definition at line 40 of file ResidualAggregator.h.
|
default |
ResidualsContainer::ResidualsContainer | ( | ResidualsContainer && | rhs | ) |
Definition at line 58 of file ResidualAggregator.cxx.
ResidualsContainer::ResidualsContainer | ( | const ResidualsContainer & | rhs | ) |
Definition at line 51 of file ResidualAggregator.cxx.
ResidualsContainer::~ResidualsContainer | ( | ) |
Definition at line 30 of file ResidualAggregator.cxx.
o2::tpc::ResidualsContainer::ClassDefNV | ( | ResidualsContainer | , |
5 | |||
) |
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.
void ResidualsContainer::fillStatisticsBranches | ( | ) |
Definition at line 162 of file ResidualAggregator.cxx.
|
inline |
Definition at line 50 of file ResidualAggregator.h.
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.
void ResidualsContainer::merge | ( | ResidualsContainer * | prev | ) |
Definition at line 296 of file ResidualAggregator.cxx.
|
delete |
void ResidualsContainer::print | ( | ) |
Definition at line 374 of file ResidualAggregator.cxx.
void ResidualsContainer::writeToFile | ( | bool | closeFileAfterwards | ) |
Definition at line 262 of file ResidualAggregator.cxx.
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.
std::string o2::tpc::ResidualsContainer::fileName {"o2tpc_residuals"} |
Definition at line 72 of file ResidualAggregator.h.
std::unique_ptr<TFile> o2::tpc::ResidualsContainer::fileOut {nullptr} |
Definition at line 73 of file ResidualAggregator.h.
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.
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.
TFType o2::tpc::ResidualsContainer::lastSeenTF {0} |
the last TF which was added to this container
Definition at line 91 of file ResidualAggregator.h.
std::vector<o2::ctp::LumiInfo> o2::tpc::ResidualsContainer::lumi |
Definition at line 65 of file ResidualAggregator.h.
std::vector<o2::ctp::LumiInfo> * o2::tpc::ResidualsContainer::lumiPtr {&lumi} |
luminosity information from CTP per TF
Definition at line 65 of file ResidualAggregator.h.
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.
uint64_t o2::tpc::ResidualsContainer::nResidualsTotal {0} |
the total number of residuals for this container
Definition at line 92 of file ResidualAggregator.h.
long o2::tpc::ResidualsContainer::orbitReset {0} |
current orbit reset time in ms
Definition at line 88 of file ResidualAggregator.h.
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.
std::array<std::vector<TrackResiduals::LocalResid>*, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::residualsPtr {} |
Definition at line 59 of file ResidualAggregator.h.
std::array<std::vector<TrackResiduals::VoxStats>, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::stats {} |
voxel statistics per sector
Definition at line 60 of file ResidualAggregator.h.
std::array<std::vector<TrackResiduals::VoxStats>*, SECTORSPERSIDE * SIDES> o2::tpc::ResidualsContainer::statsPtr {} |
Definition at line 61 of file ResidualAggregator.h.
std::vector<uint32_t> o2::tpc::ResidualsContainer::sumBinnedResid |
Definition at line 63 of file ResidualAggregator.h.
std::vector<uint32_t> * o2::tpc::ResidualsContainer::sumBinnedResidPtr {&sumBinnedResid} |
sum of binned residuals for each TF
Definition at line 63 of file ResidualAggregator.h.
std::vector<uint32_t> o2::tpc::ResidualsContainer::sumUnbinnedResid |
Definition at line 64 of file ResidualAggregator.h.
std::vector<uint32_t> * o2::tpc::ResidualsContainer::sumUnbinnedResidPtr {&sumUnbinnedResid} |
sum of unbinned residuals for each TF
Definition at line 64 of file ResidualAggregator.h.
std::vector<uint32_t> o2::tpc::ResidualsContainer::tfOrbits |
Definition at line 62 of file ResidualAggregator.h.
std::vector<uint32_t> * o2::tpc::ResidualsContainer::tfOrbitsPtr {&tfOrbits} |
first TF orbit
Definition at line 62 of file ResidualAggregator.h.
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.
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.
float o2::tpc::ResidualsContainer::TPCVDriftRef {-1.} |
TPC nominal drift speed in cm/microseconds.
Definition at line 93 of file ResidualAggregator.h.
std::vector<TrackDataCompact> o2::tpc::ResidualsContainer::trackInfo |
Definition at line 68 of file ResidualAggregator.h.
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.
const TrackResiduals* o2::tpc::ResidualsContainer::trackResiduals {nullptr} |
Definition at line 57 of file ResidualAggregator.h.
std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutRecords {nullptr} |
Definition at line 78 of file ResidualAggregator.h.
std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutResiduals {nullptr} |
Definition at line 76 of file ResidualAggregator.h.
std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutResidualsUnbinned {nullptr} |
Definition at line 74 of file ResidualAggregator.h.
std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutStats {nullptr} |
Definition at line 77 of file ResidualAggregator.h.
std::unique_ptr<TTree> o2::tpc::ResidualsContainer::treeOutTrackData {nullptr} |
Definition at line 75 of file ResidualAggregator.h.
std::vector<TrackData> o2::tpc::ResidualsContainer::trkData |
Definition at line 67 of file ResidualAggregator.h.
track data and cluster ranges
Definition at line 67 of file ResidualAggregator.h.
std::vector<UnbinnedResid> o2::tpc::ResidualsContainer::unbinnedRes |
Definition at line 66 of file ResidualAggregator.h.
std::vector<UnbinnedResid> * o2::tpc::ResidualsContainer::unbinnedResPtr {&unbinnedRes} |
unbinned residuals which are sent to the aggregator
Definition at line 66 of file ResidualAggregator.h.
bool o2::tpc::ResidualsContainer::writeBinnedResid {false} |
flag, whether binned residuals should be written out
Definition at line 82 of file ResidualAggregator.h.
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.
bool o2::tpc::ResidualsContainer::writeTrackData {false} |
flag, whether full seeding track information should be written out
Definition at line 84 of file ResidualAggregator.h.
bool o2::tpc::ResidualsContainer::writeUnbinnedResiduals {false} |
flag, whether unbinned residuals should be written out
Definition at line 83 of file ResidualAggregator.h.