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

#include <SACFactorization.h>

Public Types

using SACDeltaCompression = IDCDeltaCompression
 

Public Member Functions

 SACFactorization (const unsigned int timeFrames)
 
 SACFactorization ()=default
 default constructor
 
void factorizeSACs ()
 
void calcSACZero ()
 calculate I_0(r,\phi) = <I(r,\phi,t)>_t
 
void calcSACOne ()
 calculate I_1(t) = <I(r,\phi,t) / I_0(r,\phi)>_{r,\phi}
 
void calcSACDelta ()
 calculate \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )
 
void createStatusMap ()
 create outlier map using the SAC0
 
auto getSACValue (const unsigned int stack, const unsigned int interval) const
 
float getSACZeroVal (const unsigned int stack) const
 
float getSACDeltaVal (const unsigned int stack, unsigned int interval) const
 
float getSACOneVal (const Side side, unsigned int interval) const
 
unsigned int getNTimeframes () const
 
unsigned long getNintervals (const int stack=0) const
 
unsigned long getNIntegrationIntervals (const int stack=0) const
 
const std::vector< float > & getSACZero (const o2::tpc::Side side) const
 
const std::vector< float > & getSACOne (const o2::tpc::Side side) const
 
const std::vector< float > & getSACDeltaUncompressed (const o2::tpc::Side side) const
 
const auto & getSACDeltaUncompressed () const &
 
auto getSACDeltaUncompressed () &&
 
auto getSACDeltaMediumCompressed () const
 
auto getSACDeltaHighCompressed () const
 
const auto & getSACZero () const
 
const auto & getSACOne () const &
 
auto getSACOne () &&
 
const auto & getSACs () const
 
const auto & getOutlierMap () const
 
void setSACs (std::vector< int32_t > &&SACs, const unsigned int stack)
 
void drawSACsSector (const unsigned int sector, const unsigned int interval, const float minZ=0, const float maxZ=-1, const std::string filename="SACsSector.pdf") const
 
void drawSACZeroSector (const unsigned int sector, const float minZ=0, const float maxZ=-1, const std::string filename="SACZeroSector.pdf") const
 
void drawSACZeroOutlierSector (const unsigned int sector, const float minZ=0, const float maxZ=-1, const std::string filename="SACZeroOutlierSector.pdf") const
 
void drawSACDeltaSector (const unsigned int sector, const unsigned int interval, const float minZ=0, const float maxZ=-1, const SACDeltaCompression compression=SACDeltaCompression::NO, const std::string filename="SACDeltaSector.pdf") const
 
void drawSACsSide (const o2::tpc::Side side, const unsigned int interval, const float minZ=0, const float maxZ=-1, const std::string filename="SACsSide.pdf") const
 
void drawSACZeroSide (const o2::tpc::Side side, const float minZ=0, const float maxZ=-1, const std::string filename="SACZeroSide.pdf") const
 
void drawSACZeroOutlierSide (const o2::tpc::Side side, const float minZ=0, const float maxZ=-1, const std::string filename="SACZeroOutlierSide.pdf") const
 
void drawSACDeltaSide (const o2::tpc::Side side, const unsigned int interval, const float minZ=0, const float maxZ=-1, const SACDeltaCompression compression=SACDeltaCompression::NO, const std::string filename="SACDeltaSide.pdf") const
 
void dumpToFile (const char *outFileName="SACFactorized.root", const char *outName="SACFactorized") const
 
void dumpToTree (int intervals=-1, const char *outFileName="SACTree.root") const
 
void reset ()
 resetting aggregated SACs
 
void setSACZero (const SACZero &sacZero)
 

Static Public Member Functions

static unsigned int getSACDeltaIndex (const unsigned int stack, unsigned int interval)
 
static int getNThreads ()
 
static void setNThreads (const int nThreads)
 
static void setMinCompressedSACDelta (const float minSACDeltaValue)
 
static void setMaxCompressedSACDelta (const float maxSACDeltaValue)
 
static Side getSide (const unsigned int gemStack)
 
static unsigned int getStack (const unsigned int sector, const unsigned int stack)
 
static unsigned int getStackInSide (const unsigned int sector, const unsigned int stack)
 

Detailed Description

Definition at line 29 of file SACFactorization.h.

Member Typedef Documentation

◆ SACDeltaCompression

Constructor & Destructor Documentation

◆ SACFactorization() [1/2]

o2::tpc::SACFactorization::SACFactorization ( const unsigned int  timeFrames)
inline

constructor

Parameters
timeFramesnumber of time frames which will be stored

Definition at line 36 of file SACFactorization.h.

◆ SACFactorization() [2/2]

o2::tpc::SACFactorization::SACFactorization ( )
default

default constructor

Member Function Documentation

◆ calcSACDelta()

void o2::tpc::SACFactorization::calcSACDelta ( )

calculate \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )

Definition at line 126 of file SACFactorization.cxx.

◆ calcSACOne()

void o2::tpc::SACFactorization::calcSACOne ( )

calculate I_1(t) = <I(r,\phi,t) / I_0(r,\phi)>_{r,\phi}

Definition at line 96 of file SACFactorization.cxx.

◆ calcSACZero()

void o2::tpc::SACFactorization::calcSACZero ( )

calculate I_0(r,\phi) = <I(r,\phi,t)>_t

Definition at line 82 of file SACFactorization.cxx.

◆ createStatusMap()

void o2::tpc::SACFactorization::createStatusMap ( )

create outlier map using the SAC0

Definition at line 241 of file SACFactorization.cxx.

◆ drawSACDeltaSector()

void o2::tpc::SACFactorization::drawSACDeltaSector ( const unsigned int  sector,
const unsigned int  interval,
const float  minZ = 0,
const float  maxZ = -1,
const SACDeltaCompression  compression = SACDeltaCompression::NO,
const std::string  filename = "SACDeltaSector.pdf" 
) const
inline

draw SACDelta for one sector for one integration interval

Parameters
sectorsector which will be drawn
intervalwhich will be drawn
compressioncompression of Delta SACs. (setMaxCompressedSACDelta() should be called first in case of non standard compression parameter)
filenamename of the output file. If empty the canvas is drawn.

Definition at line 170 of file SACFactorization.h.

◆ drawSACDeltaSide()

void o2::tpc::SACFactorization::drawSACDeltaSide ( const o2::tpc::Side  side,
const unsigned int  interval,
const float  minZ = 0,
const float  maxZ = -1,
const SACDeltaCompression  compression = SACDeltaCompression::NO,
const std::string  filename = "SACDeltaSide.pdf" 
) const
inline

draw SACDelta for one side for one integration interval

Parameters
sideside which will be drawn
intervalwhich will be drawn
compressioncompression of Delta SACs. (setMaxCompressedSACDelta() should be called first in case of non standard compression parameter)
filenamename of the output file. If empty the canvas is drawn.

Definition at line 193 of file SACFactorization.h.

◆ drawSACsSector()

void o2::tpc::SACFactorization::drawSACsSector ( const unsigned int  sector,
const unsigned int  interval,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACsSector.pdf" 
) const
inline

draw SACs for one sector for one integration interval

Parameters
sectorsector which will be drawn
intervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 153 of file SACFactorization.h.

◆ drawSACsSide()

void o2::tpc::SACFactorization::drawSACsSide ( const o2::tpc::Side  side,
const unsigned int  interval,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACsSide.pdf" 
) const
inline

draw SACs for one side for one integration interval

Parameters
sideside which will be drawn
intervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 176 of file SACFactorization.h.

◆ drawSACZeroOutlierSector()

void o2::tpc::SACFactorization::drawSACZeroOutlierSector ( const unsigned int  sector,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACZeroOutlierSector.pdf" 
) const
inline

draw outliers of SACs obtained with SAC0

Parameters
sectorsector which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 163 of file SACFactorization.h.

◆ drawSACZeroOutlierSide()

void o2::tpc::SACFactorization::drawSACZeroOutlierSide ( const o2::tpc::Side  side,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACZeroOutlierSide.pdf" 
) const
inline

draw SACDelta for one sector for one integration interval

Parameters
sideside which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 186 of file SACFactorization.h.

◆ drawSACZeroSector()

void o2::tpc::SACFactorization::drawSACZeroSector ( const unsigned int  sector,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACZeroSector.pdf" 
) const
inline

draw SAC zero I_0(r,\phi) = <I(r,\phi,t)>_t

Parameters
sectorsector which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 158 of file SACFactorization.h.

◆ drawSACZeroSide()

void o2::tpc::SACFactorization::drawSACZeroSide ( const o2::tpc::Side  side,
const float  minZ = 0,
const float  maxZ = -1,
const std::string  filename = "SACZeroSide.pdf" 
) const
inline

draw SAC zero I_0(r,\phi) = <I(r,\phi,t)>_t

Parameters
sideside which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 181 of file SACFactorization.h.

◆ dumpToFile()

void o2::tpc::SACFactorization::dumpToFile ( const char outFileName = "SACFactorized.root",
const char outName = "SACFactorized" 
) const

dump object to disc

Parameters
outFileNamename of the output file
outNamename of the object in the output file

Definition at line 26 of file SACFactorization.cxx.

◆ dumpToTree()

void o2::tpc::SACFactorization::dumpToTree ( int  intervals = -1,
const char outFileName = "SACTree.root" 
) const
Parameters
intervalsnumber of integration intervals which will be dumped to the tree (-1: all integration intervals)
outFileNamename of the output file

Definition at line 33 of file SACFactorization.cxx.

◆ factorizeSACs()

void o2::tpc::SACFactorization::factorizeSACs ( )

calculate I_0(r,\phi) = <I(r,\phi,t)>_t calculate I_1(t) = <I(r,\phi,t) / I_0(r,\phi)>_{r,\phi} calculate \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )

Definition at line 146 of file SACFactorization.cxx.

◆ getNIntegrationIntervals()

unsigned long o2::tpc::SACFactorization::getNIntegrationIntervals ( const int  stack = 0) const
inline
Returns
returns the total number of stored integration intervals

Definition at line 89 of file SACFactorization.h.

◆ getNintervals()

unsigned long o2::tpc::SACFactorization::getNintervals ( const int  stack = 0) const
inline
Returns
returns the total number of stored integration intervals

Definition at line 86 of file SACFactorization.h.

◆ getNThreads()

static int o2::tpc::SACFactorization::getNThreads ( )
inlinestatic
Returns
returns the number of threads used for some of the calculations

Definition at line 131 of file SACFactorization.h.

◆ getNTimeframes()

unsigned int o2::tpc::SACFactorization::getNTimeframes ( ) const
inline
Returns
returns number of timeframes for which the SACs are stored

Definition at line 83 of file SACFactorization.h.

◆ getOutlierMap()

const auto & o2::tpc::SACFactorization::getOutlierMap ( ) const
inline
Returns
returns outliers obtained with SAC0

Definition at line 128 of file SACFactorization.h.

◆ getSACDeltaHighCompressed()

auto o2::tpc::SACFactorization::getSACDeltaHighCompressed ( ) const
inline
Returns
creates and returns high compressed SACDelta \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )

Definition at line 113 of file SACFactorization.h.

◆ getSACDeltaIndex()

static unsigned int o2::tpc::SACFactorization::getSACDeltaIndex ( const unsigned int  stack,
unsigned int  interval 
)
inlinestatic
Returns
returns index for SAC delta
Parameters
stackstack
intervallocal integration interval

Definition at line 80 of file SACFactorization.h.

◆ getSACDeltaMediumCompressed()

auto o2::tpc::SACFactorization::getSACDeltaMediumCompressed ( ) const
inline
Returns
creates and returns medium compressed SACDelta \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )

Definition at line 110 of file SACFactorization.h.

◆ getSACDeltaUncompressed() [1/3]

auto o2::tpc::SACFactorization::getSACDeltaUncompressed ( ) &&
inline
Returns
returns returns stored SACDelta \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) ) using move semantics

Definition at line 107 of file SACFactorization.h.

◆ getSACDeltaUncompressed() [2/3]

const auto & o2::tpc::SACFactorization::getSACDeltaUncompressed ( ) const &
inline
Returns
returns stored SACDelta \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )

Definition at line 104 of file SACFactorization.h.

◆ getSACDeltaUncompressed() [3/3]

const std::vector< float > & o2::tpc::SACFactorization::getSACDeltaUncompressed ( const o2::tpc::Side  side) const
inline
Returns
returns stored SACDelta \Delta I(r,\phi,t) = I(r,\phi,t) / ( I_0(r,\phi) * I_1(t) )
Parameters
sideTPC side

Definition at line 101 of file SACFactorization.h.

◆ getSACDeltaVal()

float o2::tpc::SACFactorization::getSACDeltaVal ( const unsigned int  stack,
unsigned int  interval 
) const
inline
Returns
returns the stored DeltaSAC value
Parameters
stackstack
intervalintegration interval

Definition at line 70 of file SACFactorization.h.

◆ getSACOne() [1/3]

auto o2::tpc::SACFactorization::getSACOne ( ) &&
inline
Returns
returns struct containing SAC1 using move semantics

Definition at line 122 of file SACFactorization.h.

◆ getSACOne() [2/3]

const auto & o2::tpc::SACFactorization::getSACOne ( ) const &
inline
Returns
returns struct containing SAC1

Definition at line 119 of file SACFactorization.h.

◆ getSACOne() [3/3]

const std::vector< float > & o2::tpc::SACFactorization::getSACOne ( const o2::tpc::Side  side) const
inline
Returns
returns stored SAC1 I_1(t) = <I(r,\phi,t) / I_0(r,\phi)>_{r,\phi}
Parameters
sideTPC side

Definition at line 97 of file SACFactorization.h.

◆ getSACOneVal()

float o2::tpc::SACFactorization::getSACOneVal ( const Side  side,
unsigned int  interval 
) const
inline
Returns
returns SAC1 value
Parameters
SideTPC side
intervalintegration interval

Definition at line 75 of file SACFactorization.h.

◆ getSACs()

const auto & o2::tpc::SACFactorization::getSACs ( ) const
inline
Returns
returns grouped SACs

Definition at line 125 of file SACFactorization.h.

◆ getSACValue()

auto o2::tpc::SACFactorization::getSACValue ( const unsigned int  stack,
const unsigned int  interval 
) const
inline
Returns
returns the stored SAC value
Parameters
stackstack
intervalintegration interval

Definition at line 61 of file SACFactorization.h.

◆ getSACZero() [1/2]

const auto & o2::tpc::SACFactorization::getSACZero ( ) const
inline
Returns
returns struct containing SAC0

Definition at line 116 of file SACFactorization.h.

◆ getSACZero() [2/2]

const std::vector< float > & o2::tpc::SACFactorization::getSACZero ( const o2::tpc::Side  side) const
inline
Returns
returns stored SAC0 I_0(r,\phi) = <I(r,\phi,t)>_t
Parameters
sideTPC side

Definition at line 93 of file SACFactorization.h.

◆ getSACZeroVal()

float o2::tpc::SACFactorization::getSACZeroVal ( const unsigned int  stack) const
inline
Returns
returns the stored SAC0 value
Parameters
stackstack

Definition at line 65 of file SACFactorization.h.

◆ getSide()

static Side o2::tpc::SACFactorization::getSide ( const unsigned int  gemStack)
inlinestatic
Returns
returns side for given GEM stack

Definition at line 208 of file SACFactorization.h.

◆ getStack()

static unsigned int o2::tpc::SACFactorization::getStack ( const unsigned int  sector,
const unsigned int  stack 
)
inlinestatic
Returns
returns stack for given sector and stack

Definition at line 211 of file SACFactorization.h.

◆ getStackInSide()

static unsigned int o2::tpc::SACFactorization::getStackInSide ( const unsigned int  sector,
const unsigned int  stack 
)
inlinestatic
Returns
returns stack (starts at 0 for each side)

Definition at line 214 of file SACFactorization.h.

◆ reset()

void o2::tpc::SACFactorization::reset ( )

resetting aggregated SACs

Definition at line 159 of file SACFactorization.cxx.

◆ setMaxCompressedSACDelta()

static void o2::tpc::SACFactorization::setMaxCompressedSACDelta ( const float  maxSACDeltaValue)
inlinestatic
Parameters
maxSACDeltaValuemaximum SAC delta value for compressed SAC delta

Definition at line 147 of file SACFactorization.h.

◆ setMinCompressedSACDelta()

static void o2::tpc::SACFactorization::setMinCompressedSACDelta ( const float  minSACDeltaValue)
inlinestatic
Parameters
minSACDeltaValueminimum SAC delta value for compressed SAC delta

Definition at line 144 of file SACFactorization.h.

◆ setNThreads()

static void o2::tpc::SACFactorization::setNThreads ( const int  nThreads)
inlinestatic

set the number of threads used for some of the calculations

Parameters
nThreadsnumber of threads

Definition at line 141 of file SACFactorization.h.

◆ setSACs()

void o2::tpc::SACFactorization::setSACs ( std::vector< int32_t > &&  SACs,
const unsigned int  stack 
)
inline

set the SAC data

Parameters
SACsvector containing the SACs
cruCRU
timeframetime frame of the SACs

Definition at line 137 of file SACFactorization.h.

◆ setSACZero()

void o2::tpc::SACFactorization::setSACZero ( const SACZero sacZero)
inline

Definition at line 216 of file SACFactorization.h.


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