ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
LArSamples::DataFuncSet Struct Reference

#include <Data.h>

Collaboration diagram for LArSamples::DataFuncSet:

Public Member Functions

 DataFuncSet ()
 
 DataFuncSet (DataFunc< int >::Type intF)
 
 DataFuncSet (DataFunc< double >::Type doubleF)
 
double doubleVal (const Data &data, const DataFuncArgs &args) const
 
double intVal (const Data &data, const DataFuncArgs &args) const
 
double val (const Data &data, const DataFuncArgs &args) const
 
bool isNull ()
 
bool isInt ()
 

Public Attributes

DataFunc< int >::Type intFunc
 
DataFunc< double >::Type doubleFunc
 

Detailed Description

Definition at line 59 of file Data.h.

Constructor & Destructor Documentation

◆ DataFuncSet() [1/3]

LArSamples::DataFuncSet::DataFuncSet ( )
inline

Definition at line 60 of file Data.h.

60 : intFunc (0), doubleFunc(0) { }

◆ DataFuncSet() [2/3]

LArSamples::DataFuncSet::DataFuncSet ( DataFunc< int >::Type  intF)
inline

Definition at line 61 of file Data.h.

61 : intFunc(intF), doubleFunc(0) { }

◆ DataFuncSet() [3/3]

LArSamples::DataFuncSet::DataFuncSet ( DataFunc< double >::Type  doubleF)
inline

Definition at line 62 of file Data.h.

62 : intFunc (0), doubleFunc(doubleF) { }

Member Function Documentation

◆ doubleVal()

double LArSamples::DataFuncSet::doubleVal ( const Data data,
const DataFuncArgs args 
) const
inline

Definition at line 64 of file Data.h.

64 { return doubleFunc ? (data.*doubleFunc)(args) : -999; }

◆ intVal()

double LArSamples::DataFuncSet::intVal ( const Data data,
const DataFuncArgs args 
) const
inline

Definition at line 65 of file Data.h.

65 { return intFunc ? (data.*intFunc)(args) : -999; }

◆ isInt()

bool LArSamples::DataFuncSet::isInt ( )
inline

Definition at line 69 of file Data.h.

69 { return (intFunc && !doubleFunc); }

◆ isNull()

bool LArSamples::DataFuncSet::isNull ( )
inline

Definition at line 68 of file Data.h.

68 { return (!intFunc && !doubleFunc); }

◆ val()

double LArSamples::DataFuncSet::val ( const Data data,
const DataFuncArgs args 
) const
inline

Definition at line 66 of file Data.h.

66 { return doubleFunc ? (data.*doubleFunc)(args) : (intFunc ? (data.*intFunc)(args) : -999); }

Member Data Documentation

◆ doubleFunc

DataFunc<double>::Type LArSamples::DataFuncSet::doubleFunc

Definition at line 72 of file Data.h.

◆ intFunc

DataFunc<int>::Type LArSamples::DataFuncSet::intFunc

Definition at line 71 of file Data.h.


The documentation for this struct was generated from the following file:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
LArSamples::DataFuncSet::doubleFunc
DataFunc< double >::Type doubleFunc
Definition: Data.h:72
LArSamples::DataFuncSet::intFunc
DataFunc< int >::Type intFunc
Definition: Data.h:71
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80