Public Member Functions | Protected Attributes | List of all members
caldp::DCMSummary Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-18/CalibrationDataProducts/DCMSummary.h"

Public Member Functions

 DCMSummary ()
 
virtual ~DCMSummary ()
 
uint32_t StartTime () const
 return start time offset is valid for More...
 
uint32_t EndTime () const
 return end time offset is valid for More...
 
std::vector< intDCMUse (std::vector< int > in) const
 
std::vector< std::vector< int > > DCMOffsetCount () const
 
std::vector< std::vector< float > > DCMOffsetSum () const
 
std::vector< std::vector< float > > DCMOffsetSumSquare () const
 
int DCMOffsetCountIndx (int i, int j) const
 
float DCMOffsetSumIndx (int i, int j) const
 
float DCMOffsetSumSquareIndx (int i, int j) const
 
int DCMUseIndx (int i) const
 
void SetStartTime (uint32_t aStart)
 
void SetEndTime (uint32_t aEnd)
 Set end time offset is valid for. More...
 
void SetDCMUse (std::vector< int > in)
 
void SetDCMOffsetCount (std::vector< std::vector< int > > in)
 
void SetDCMOffsetSum (std::vector< std::vector< float > > in)
 
void SetDCMOffsetSumSquare (std::vector< std::vector< float > > in)
 
void SetDCMOffsetCountIndx (int i, int j, int val)
 
void SetDCMOffsetSumIndx (int i, int j, float val)
 
void SetDCMOffsetSumSquareIndx (int i, int j, float val)
 
void SetDCMUseIndx (int i, int val)
 

Protected Attributes

uint32_t sTime
 start time offset is valid for More...
 
uint32_t eTime
 
std::vector< std::vector< int > > dcmOffsetCount
 vector of number of uses for a dcm pair More...
 
std::vector< std::vector< float > > dcmOffsetSum
 vector running sum of relative dcm offsets More...
 
std::vector< std::vector< float > > dcmOffsetSumSquare
 vector running sum squared of dcm offsets More...
 
std::vector< intdcmUse
 vector of times a dcm is used More...
 

Detailed Description

Definition at line 19 of file DCMSummary.h.

Constructor & Destructor Documentation

caldp::DCMSummary::DCMSummary ( )

Definition at line 12 of file DCMSummary.cxx.

12  :
15  dcmOffsetCount(kDCMNumMax, std::vector<int>(kDCMNumMax, 0)),
16  dcmOffsetSum(kDCMNumMax, std::vector<float>(kDCMNumMax, 0)),
17  dcmOffsetSumSquare(kDCMNumMax, std::vector<float>(kDCMNumMax, 0)),
18  dcmUse(kDCMNumMax, 0)
19  { }
std::vector< int > dcmUse
vector of times a dcm is used
Definition: DCMSummary.h:65
static const int kDCMNumMax
maximum number of dcms possible on a detector
Definition: DCMSummary.h:16
std::vector< std::vector< float > > dcmOffsetSumSquare
vector running sum squared of dcm offsets
Definition: DCMSummary.h:63
uint32_t sTime
start time offset is valid for
Definition: DCMSummary.h:50
uint32_t eTime
Definition: DCMSummary.h:57
static float min(const float a, const float b, const float c)
Definition: absgeo.cxx:45
std::vector< std::vector< int > > dcmOffsetCount
vector of number of uses for a dcm pair
Definition: DCMSummary.h:59
std::vector< std::vector< float > > dcmOffsetSum
vector running sum of relative dcm offsets
Definition: DCMSummary.h:61
T max(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:68
caldp::DCMSummary::~DCMSummary ( )
virtual

Definition at line 21 of file DCMSummary.cxx.

21 { }

Member Function Documentation

std::vector<std::vector<int> > caldp::DCMSummary::DCMOffsetCount ( ) const
inline

Definition at line 31 of file DCMSummary.h.

References dcmOffsetCount.

31 {return dcmOffsetCount;};
std::vector< std::vector< int > > dcmOffsetCount
vector of number of uses for a dcm pair
Definition: DCMSummary.h:59
int caldp::DCMSummary::DCMOffsetCountIndx ( int  i,
int  j 
) const
inline

Definition at line 35 of file DCMSummary.h.

References dcmOffsetCount, MECModelEnuComparisons::i, and calib::j.

Referenced by calib::DCMTimingOffset::endSubRun().

35 {return dcmOffsetCount[i][j];};
const double j
Definition: BetheBloch.cxx:29
std::vector< std::vector< int > > dcmOffsetCount
vector of number of uses for a dcm pair
Definition: DCMSummary.h:59
std::vector<std::vector<float> > caldp::DCMSummary::DCMOffsetSum ( ) const
inline

Definition at line 32 of file DCMSummary.h.

References dcmOffsetSum.

32 {return dcmOffsetSum;};
std::vector< std::vector< float > > dcmOffsetSum
vector running sum of relative dcm offsets
Definition: DCMSummary.h:61
float caldp::DCMSummary::DCMOffsetSumIndx ( int  i,
int  j 
) const
inline

Definition at line 36 of file DCMSummary.h.

References dcmOffsetSum, MECModelEnuComparisons::i, and calib::j.

Referenced by calib::DCMTimingOffset::endSubRun().

36 {return dcmOffsetSum[i][j];};
const double j
Definition: BetheBloch.cxx:29
std::vector< std::vector< float > > dcmOffsetSum
vector running sum of relative dcm offsets
Definition: DCMSummary.h:61
std::vector<std::vector<float> > caldp::DCMSummary::DCMOffsetSumSquare ( ) const
inline

Definition at line 33 of file DCMSummary.h.

References dcmOffsetSumSquare.

33 {return dcmOffsetSumSquare;};
std::vector< std::vector< float > > dcmOffsetSumSquare
vector running sum squared of dcm offsets
Definition: DCMSummary.h:63
float caldp::DCMSummary::DCMOffsetSumSquareIndx ( int  i,
int  j 
) const
inline

Definition at line 37 of file DCMSummary.h.

References dcmOffsetSumSquare, MECModelEnuComparisons::i, and calib::j.

Referenced by calib::DCMTimingOffset::endSubRun().

37 {return dcmOffsetSumSquare[i][j];};
std::vector< std::vector< float > > dcmOffsetSumSquare
vector running sum squared of dcm offsets
Definition: DCMSummary.h:63
const double j
Definition: BetheBloch.cxx:29
std::vector<int> caldp::DCMSummary::DCMUse ( std::vector< int in) const
inline

Definition at line 30 of file DCMSummary.h.

References dcmUse.

30 {return dcmUse;};
std::vector< int > dcmUse
vector of times a dcm is used
Definition: DCMSummary.h:65
int caldp::DCMSummary::DCMUseIndx ( int  i) const
inline

Definition at line 38 of file DCMSummary.h.

References dcmUse, and MECModelEnuComparisons::i.

Referenced by calib::DCMTimingOffset::endSubRun().

38 {return dcmUse[i];};
std::vector< int > dcmUse
vector of times a dcm is used
Definition: DCMSummary.h:65
uint32_t caldp::DCMSummary::EndTime ( ) const
inline

return end time offset is valid for

Definition at line 29 of file DCMSummary.h.

References eTime.

Referenced by calib::DCMTimingOffset::endSubRun().

29 {return eTime; };
uint32_t eTime
Definition: DCMSummary.h:57
void caldp::DCMSummary::SetDCMOffsetCount ( std::vector< std::vector< int > >  in)
inline

Definition at line 44 of file DCMSummary.h.

References dcmOffsetCount, and in.

Referenced by calib::TimingCalFilter::endSubRun().

44 {dcmOffsetCount = in;};
ifstream in
Definition: comparison.C:7
std::vector< std::vector< int > > dcmOffsetCount
vector of number of uses for a dcm pair
Definition: DCMSummary.h:59
void caldp::DCMSummary::SetDCMOffsetCountIndx ( int  i,
int  j,
int  val 
)
inline

Definition at line 47 of file DCMSummary.h.

References dcmOffsetCount, MECModelEnuComparisons::i, calib::j, and febshutoff_auto::val.

Referenced by calib::DCMTimingOffset::endRun().

47 {dcmOffsetCount[i][j] = val;};
const double j
Definition: BetheBloch.cxx:29
std::vector< std::vector< int > > dcmOffsetCount
vector of number of uses for a dcm pair
Definition: DCMSummary.h:59
void caldp::DCMSummary::SetDCMOffsetSum ( std::vector< std::vector< float > >  in)
inline

Definition at line 45 of file DCMSummary.h.

References dcmOffsetSum, and in.

Referenced by calib::TimingCalFilter::endSubRun().

45 {dcmOffsetSum = in;};
ifstream in
Definition: comparison.C:7
std::vector< std::vector< float > > dcmOffsetSum
vector running sum of relative dcm offsets
Definition: DCMSummary.h:61
void caldp::DCMSummary::SetDCMOffsetSumIndx ( int  i,
int  j,
float  val 
)
inline

Definition at line 48 of file DCMSummary.h.

References dcmOffsetSum, MECModelEnuComparisons::i, calib::j, and febshutoff_auto::val.

Referenced by calib::DCMTimingOffset::endRun().

48 {dcmOffsetSum[i][j] = val;};
const double j
Definition: BetheBloch.cxx:29
std::vector< std::vector< float > > dcmOffsetSum
vector running sum of relative dcm offsets
Definition: DCMSummary.h:61
void caldp::DCMSummary::SetDCMOffsetSumSquare ( std::vector< std::vector< float > >  in)
inline

Definition at line 46 of file DCMSummary.h.

References dcmOffsetSumSquare, and in.

Referenced by calib::TimingCalFilter::endSubRun().

std::vector< std::vector< float > > dcmOffsetSumSquare
vector running sum squared of dcm offsets
Definition: DCMSummary.h:63
ifstream in
Definition: comparison.C:7
void caldp::DCMSummary::SetDCMOffsetSumSquareIndx ( int  i,
int  j,
float  val 
)
inline

Definition at line 49 of file DCMSummary.h.

References dcmOffsetSumSquare, MECModelEnuComparisons::i, calib::j, and febshutoff_auto::val.

Referenced by calib::DCMTimingOffset::endRun().

49 {dcmOffsetSumSquare[i][j] = val;};
std::vector< std::vector< float > > dcmOffsetSumSquare
vector running sum squared of dcm offsets
Definition: DCMSummary.h:63
const double j
Definition: BetheBloch.cxx:29
void caldp::DCMSummary::SetDCMUse ( std::vector< int in)
inline

Definition at line 43 of file DCMSummary.h.

References dcmUse, and in.

Referenced by calib::TimingCalFilter::endSubRun().

43 {dcmUse = in;};
std::vector< int > dcmUse
vector of times a dcm is used
Definition: DCMSummary.h:65
ifstream in
Definition: comparison.C:7
void caldp::DCMSummary::SetDCMUseIndx ( int  i,
int  val 
)
inline

Definition at line 50 of file DCMSummary.h.

Referenced by calib::DCMTimingOffset::endRun().

50 {dcmUse[i] = val;};
std::vector< int > dcmUse
vector of times a dcm is used
Definition: DCMSummary.h:65
void caldp::DCMSummary::SetEndTime ( uint32_t  aEnd)
inline

Set end time offset is valid for.

Definition at line 42 of file DCMSummary.h.

References eTime.

Referenced by calib::DCMTimingOffset::endRun(), and calib::TimingCalFilter::endSubRun().

42 {eTime = aEnd; };
uint32_t eTime
Definition: DCMSummary.h:57
void caldp::DCMSummary::SetStartTime ( uint32_t  aStart)
inline

Definition at line 40 of file DCMSummary.h.

References sTime.

Referenced by calib::DCMTimingOffset::endRun(), and calib::TimingCalFilter::endSubRun().

40 {sTime = aStart; };
uint32_t sTime
start time offset is valid for
Definition: DCMSummary.h:50
uint32_t caldp::DCMSummary::StartTime ( ) const
inline

return start time offset is valid for

Definition at line 27 of file DCMSummary.h.

References sTime.

Referenced by calib::DCMTimingOffset::endSubRun().

27 {return sTime; };
uint32_t sTime
start time offset is valid for
Definition: DCMSummary.h:50

Member Data Documentation

std::vector<std::vector<int> > caldp::DCMSummary::dcmOffsetCount
protected

vector of number of uses for a dcm pair

Definition at line 59 of file DCMSummary.h.

Referenced by DCMOffsetCount(), DCMOffsetCountIndx(), SetDCMOffsetCount(), and SetDCMOffsetCountIndx().

std::vector<std::vector<float> > caldp::DCMSummary::dcmOffsetSum
protected

vector running sum of relative dcm offsets

Definition at line 61 of file DCMSummary.h.

Referenced by DCMOffsetSum(), DCMOffsetSumIndx(), SetDCMOffsetSum(), and SetDCMOffsetSumIndx().

std::vector<std::vector<float> > caldp::DCMSummary::dcmOffsetSumSquare
protected

vector running sum squared of dcm offsets

Definition at line 63 of file DCMSummary.h.

Referenced by DCMOffsetSumSquare(), DCMOffsetSumSquareIndx(), SetDCMOffsetSumSquare(), and SetDCMOffsetSumSquareIndx().

std::vector<int > caldp::DCMSummary::dcmUse
protected

vector of times a dcm is used

Definition at line 65 of file DCMSummary.h.

Referenced by DCMUse(), DCMUseIndx(), and SetDCMUse().

uint32_t caldp::DCMSummary::eTime
protected

end time offset is valid for

Definition at line 57 of file DCMSummary.h.

Referenced by EndTime(), and SetEndTime().

uint32_t caldp::DCMSummary::sTime
protected

start time offset is valid for

Definition at line 50 of file DCMSummary.h.

Referenced by SetStartTime(), and StartTime().


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