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 54 of file Data.h.

Constructor & Destructor Documentation

◆ DataFuncSet() [1/3]

LArSamples::DataFuncSet::DataFuncSet ( )
inline

Definition at line 55 of file Data.h.

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

◆ DataFuncSet() [2/3]

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

Definition at line 56 of file Data.h.

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

◆ DataFuncSet() [3/3]

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

Definition at line 57 of file Data.h.

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

Member Function Documentation

◆ doubleVal()

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

Definition at line 59 of file Data.h.

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

◆ intVal()

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

Definition at line 60 of file Data.h.

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

◆ isInt()

bool LArSamples::DataFuncSet::isInt ( )
inline

Definition at line 64 of file Data.h.

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

◆ isNull()

bool LArSamples::DataFuncSet::isNull ( )
inline

Definition at line 63 of file Data.h.

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

◆ val()

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

Definition at line 61 of file Data.h.

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

Member Data Documentation

◆ doubleFunc

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

Definition at line 67 of file Data.h.

◆ intFunc

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

Definition at line 66 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:67
LArSamples::DataFuncSet::intFunc
DataFunc< int >::Type intFunc
Definition: Data.h:66
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80