15#ifndef ALICEO2_TPC_TPCSCALER
16#define ALICEO2_TPC_TPCSCALER
83 void dumpToFile(
const char*
file,
const char*
name,
double startTimeMS,
double endTimeMS);
90 void dumpToFileSlices(
const char*
file,
const char*
name,
int minutesPerObject,
float marginMS = 500,
float marginCCDBMinutes = 1);
151 float mIonDriftTimeMS{200};
153 unsigned int mFirstTFOrbit{};
154 double mTimeStampMS{};
155 float mIntegrationTimeMS{1.};
156 std::vector<float> mScalerA{};
157 std::vector<float> mScalerC{};
158 TPCScalerWeights mScalerWeights{};
159 bool mUseWeights{
false};
162 int getDataIdx(
double timestamp)
const {
return (timestamp - mTimeStampMS) / mIntegrationTimeMS + 0.5; }
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
unsigned int getFirstTFOrbit() const
bool weightsUsed() const
return if weights are used
int getNValuesIonDriftTime() const
void dumpToFileSlices(const char *file, const char *name, int minutesPerObject, float marginMS=500, float marginCCDBMinutes=1)
TPCScaler()=default
default constructor
float getScalers(unsigned int idx, o2::tpc::Side side) const
float getMeanScaler(double timestamp, o2::tpc::Side side) const
void setScaler(const std::vector< float > &values, const o2::tpc::Side side)
void setIonDriftTimeMS(float ionDriftTimeMS)
TPCScaler & operator=(TPCScaler &&other)=default
default move assignment
int getNValues(o2::tpc::Side side) const
float getIntegrationTimeMS() const
float getDurationMS(o2::tpc::Side side) const
float getIonDriftTimeMS() const
double getStartTimeStampMS() const
void loadFromFile(const char *inpf, const char *name)
const auto & getScalers(o2::tpc::Side side) const
void clampScalers(float minThreshold, float maxThreshold, Side side)
double getEndTimeStampMS(o2::tpc::Side side) const
void dumpToFile(const char *file, const char *name)
void setFirstTFOrbit(unsigned int firstTFOrbit)
void setStartTimeStampMS(double timeStampMS)
void useWeights(bool useWeights)
enable usage of weights
void setFromTree(TTree &tpcScalerTree)
set this object from input tree
const auto & getScalerWeights() const
void setIntegrationTimeMS(float integrationTimeMS)
void setScalerWeights(const TPCScalerWeights &weights)
setting the weights for the scalers
GLsizei const GLuint const GLfloat * weights
GLuint const GLchar * name
GLenum GLsizei GLsizei GLint * values
Global TPC definitions and constants.
float getDurationMS() const
float mSamplingTimeMS
sampling of the stored weights
std::vector< float > mWeights
stored weights
float mFirstTimeStampMS
first timestamp
ClassDefNV(TPCScalerWeights, 1)
float getWeight(float deltaTime) const
bool isInRange(float deltaTime) const
VectorOfTObjectPtrs other