Project
Loading...
Searching...
No Matches
o2::tpc::dcs::Pressure Struct Reference

#include <DCS.h>

Public Member Functions

void fill (std::string_view sensor, const TimeStampType time, const DataType value)
 fill pressure data
 
void sortAndClean (float pMin=800, float pMax=1100)
 
void clear ()
 \clear all stored data except the buffer
 
void append (const Pressure &other)
 append other pressure values
 
TimeStampType getMinTime () const
 
TimeStampType getMaxTime () const
 
void makeRobustPressure (TimeStampType timeInterval=100 *1000, TimeStampType timeIntervalRef=24 *60 *1000, TimeStampType tStart=1, TimeStampType tEnd=0, const int nthreads=1)
 average pressure values for given time interval
 
 ClassDefNV (Pressure, 1)
 

Static Public Member Functions

static void setAliases (TTree *tree)
 set aliases for the cuts used in the calculation of the robust pressure
 

Public Attributes

RawDPsF cavernAtmosPressure {}
 raw pressure in the cavern from sensor 1
 
RawDPsF cavernAtmosPressure2 {}
 raw pressure in the cavern from sensor 2
 
RawDPsF surfaceAtmosPressure {}
 raw pressure at the surface
 
RobustPressure robustPressure {}
 combined robust pressure estimator from all three sensors
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mCavernAtmosPressure1Buff {}
 ! buffer for the pressure cavern 1 sensor
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mCavernAtmosPressure2Buff {}
 ! buffer for the pressure cavern 2 sensor
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mSurfaceAtmosPressureBuff {}
 ! buffer for the pressure surface sensort
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mPressure12Buff {}
 ! buffer for normalizing the pressure cavern 1 / cavern 2
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mPressure1SBuff {}
 ! buffer for normalizing the pressure cavern 1 / surface
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mPressure2SBuff {}
 ! buffer for normalizing the pressure cavern 2 / surface
 
std::pair< std::vector< float >, std::vector< TimeStampType > > mRobPressureBuff {}
 ! buffer for the robust pressure
 

Detailed Description

Definition at line 569 of file DCS.h.

Member Function Documentation

◆ append()

void Pressure::append ( const Pressure other)

append other pressure values

Definition at line 313 of file DCS.cxx.

◆ ClassDefNV()

o2::tpc::dcs::Pressure::ClassDefNV ( Pressure  ,
 
)

◆ clear()

void Pressure::clear ( )

\clear all stored data except the buffer

Definition at line 305 of file DCS.cxx.

◆ fill()

void Pressure::fill ( std::string_view  sensor,
const TimeStampType  time,
const DataType  value 
)

fill pressure data

Parameters
sensorname of the sensor from DCS data stream
timemeasurement time
valuepressure value

Definition at line 272 of file DCS.cxx.

◆ getMaxTime()

TimeStampType Pressure::getMaxTime ( ) const
Returns
get maximum time of stored data

Definition at line 135 of file DCS.cxx.

◆ getMinTime()

TimeStampType Pressure::getMinTime ( ) const
Returns
get minimum time of stored data

Definition at line 123 of file DCS.cxx.

◆ makeRobustPressure()

void Pressure::makeRobustPressure ( TimeStampType  timeInterval = 100 * 1000,
TimeStampType  timeIntervalRef = 24 * 60 * 1000,
TimeStampType  tStart = 1,
TimeStampType  tEnd = 0,
const int  nthreads = 1 
)

average pressure values for given time interval

Parameters
timeIntervaltime interval for which the pressure values are averaged
timeIntervalReftime interval used to calculate the normalization values for the pressure
tStartmin time of the data
tEndmax time of the data
nthreadsnumbe rof threads used for some calculations

minimum number of points in the interval - otherwise use the n closest points

Definition at line 342 of file DCS.cxx.

◆ setAliases()

void Pressure::setAliases ( TTree *  tree)
static

set aliases for the cuts used in the calculation of the robust pressure

Definition at line 522 of file DCS.cxx.

◆ sortAndClean()

void Pressure::sortAndClean ( float  pMin = 800,
float  pMax = 1100 
)

sort pressure values and remove obvious outliers

Parameters
pMinmin accepted pressure
pMaxmax accepted pressure

Definition at line 285 of file DCS.cxx.

Member Data Documentation

◆ cavernAtmosPressure

RawDPsF o2::tpc::dcs::Pressure::cavernAtmosPressure {}

raw pressure in the cavern from sensor 1

Definition at line 605 of file DCS.h.

◆ cavernAtmosPressure2

RawDPsF o2::tpc::dcs::Pressure::cavernAtmosPressure2 {}

raw pressure in the cavern from sensor 2

Definition at line 606 of file DCS.h.

◆ mCavernAtmosPressure1Buff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mCavernAtmosPressure1Buff {}

! buffer for the pressure cavern 1 sensor

Definition at line 610 of file DCS.h.

◆ mCavernAtmosPressure2Buff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mCavernAtmosPressure2Buff {}

! buffer for the pressure cavern 2 sensor

Definition at line 611 of file DCS.h.

◆ mPressure12Buff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mPressure12Buff {}

! buffer for normalizing the pressure cavern 1 / cavern 2

Definition at line 614 of file DCS.h.

◆ mPressure1SBuff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mPressure1SBuff {}

! buffer for normalizing the pressure cavern 1 / surface

Definition at line 615 of file DCS.h.

◆ mPressure2SBuff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mPressure2SBuff {}

! buffer for normalizing the pressure cavern 2 / surface

Definition at line 616 of file DCS.h.

◆ mRobPressureBuff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mRobPressureBuff {}

! buffer for the robust pressure

Definition at line 618 of file DCS.h.

◆ mSurfaceAtmosPressureBuff

std::pair<std::vector<float>, std::vector<TimeStampType> > o2::tpc::dcs::Pressure::mSurfaceAtmosPressureBuff {}

! buffer for the pressure surface sensort

Definition at line 612 of file DCS.h.

◆ robustPressure

RobustPressure o2::tpc::dcs::Pressure::robustPressure {}

combined robust pressure estimator from all three sensors

Definition at line 608 of file DCS.h.

◆ surfaceAtmosPressure

RawDPsF o2::tpc::dcs::Pressure::surfaceAtmosPressure {}

raw pressure at the surface

Definition at line 607 of file DCS.h.


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