ATLAS Offline Software
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
L1CaloRampData Class Referencefinal

Transient class to store the RampData calculated from calibration runs. More...

#include <L1CaloRampData.h>

Collaboration diagram for L1CaloRampData:

Public Types

typedef std::pair< L1CaloRampStep, L1CaloRampStepL1CaloRampDataPoint
 

Public Member Functions

 L1CaloRampData ()
 
 ~L1CaloRampData ()=default
 
void addData (unsigned int step, const std::pair< double, double > &energy)
 
void addData (unsigned int step, double calorimeter, double level1)
 
void addData (unsigned int step, const L1CaloRampDataPoint &data)
 
void addData (const std::pair< double, double > &l1calo)
 
void addData (double calorimeter, double level1)
 
void setStep (unsigned int step)
 
void nextStep ()
 
unsigned int getNSteps () const
 
const L1CaloRampDataPointgetStep (unsigned int step) const
 
const L1CaloRampStepgetCalo (unsigned int step) const
 
const L1CaloRampStepgetLevel1 (unsigned int step) const
 

Private Types

typedef std::vector< L1CaloRampDataPointL1CaloRampDataVector
 

Private Attributes

L1CaloRampDataVector m_rampDataVector
 
unsigned int m_iStep
 

Detailed Description

Transient class to store the RampData calculated from calibration runs.

Steps start to count from 0.

Author
Veit Scharf veit..nosp@m.scha.nosp@m.rf@ki.nosp@m.p.un.nosp@m.i-hei.nosp@m.delb.nosp@m.erg.d.nosp@m.e

Definition at line 41 of file L1CaloRampData.h.

Member Typedef Documentation

◆ L1CaloRampDataPoint

Definition at line 45 of file L1CaloRampData.h.

◆ L1CaloRampDataVector

Definition at line 78 of file L1CaloRampData.h.

Constructor & Destructor Documentation

◆ L1CaloRampData()

L1CaloRampData::L1CaloRampData ( )
inline

Definition at line 47 of file L1CaloRampData.h.

47 : m_rampDataVector(1), m_iStep(0) {}

◆ ~L1CaloRampData()

L1CaloRampData::~L1CaloRampData ( )
default

Member Function Documentation

◆ addData() [1/5]

void L1CaloRampData::addData ( const std::pair< double, double > &  l1calo)

Definition at line 51 of file L1CaloRampData.cxx.

51  {
52  this->addData(energies.first, energies.second);
53 }

◆ addData() [2/5]

void L1CaloRampData::addData ( double  calorimeter,
double  level1 
)

Definition at line 55 of file L1CaloRampData.cxx.

55  {
56  m_rampDataVector[m_iStep].first.addEvent(calorimeter);
57  m_rampDataVector[m_iStep].second.addEvent(level1);
58 }

◆ addData() [3/5]

void L1CaloRampData::addData ( unsigned int  step,
const L1CaloRampDataPoint data 
)

Definition at line 43 of file L1CaloRampData.cxx.

44 {
45  if(m_rampDataVector.size() <= step) {
46  m_rampDataVector.resize(step + 1);
47  }
49 }

◆ addData() [4/5]

void L1CaloRampData::addData ( unsigned int  step,
const std::pair< double, double > &  energy 
)

Definition at line 28 of file L1CaloRampData.cxx.

29 {
30  this->addData(step, energies.first, energies.second);
31 }

◆ addData() [5/5]

void L1CaloRampData::addData ( unsigned int  step,
double  calorimeter,
double  level1 
)

Definition at line 33 of file L1CaloRampData.cxx.

34 {
35  if(m_rampDataVector.size() <= step) {
36  m_rampDataVector.resize(step + 1);
37  }
38 
39  m_rampDataVector[step].first.addEvent(calorimeter);
40  m_rampDataVector[step].second.addEvent(level1);
41 }

◆ getCalo()

const L1CaloRampStep * L1CaloRampData::getCalo ( unsigned int  step) const

Definition at line 84 of file L1CaloRampData.cxx.

84  {
85  if(m_rampDataVector.size() <= step) return 0;
86  return &(m_rampDataVector[step].first);
87 }

◆ getLevel1()

const L1CaloRampStep * L1CaloRampData::getLevel1 ( unsigned int  step) const

Definition at line 89 of file L1CaloRampData.cxx.

89  {
90  if(m_rampDataVector.size() <= step) return 0;
91  return &(m_rampDataVector[step].second);
92 }

◆ getNSteps()

unsigned int L1CaloRampData::getNSteps ( ) const

Definition at line 75 of file L1CaloRampData.cxx.

75  {
76  return m_rampDataVector.size();
77 }

◆ getStep()

const L1CaloRampData::L1CaloRampDataPoint * L1CaloRampData::getStep ( unsigned int  step) const

Definition at line 79 of file L1CaloRampData.cxx.

79  {
80  if(m_rampDataVector.size() <= step) return 0;
81  return &(m_rampDataVector[step]);
82 }

◆ nextStep()

void L1CaloRampData::nextStep ( )

Definition at line 68 of file L1CaloRampData.cxx.

68  {
69  ++m_iStep;
70  if(m_rampDataVector.size() <= m_iStep) {
71  m_rampDataVector.resize(m_iStep + 1);
72  }
73 }

◆ setStep()

void L1CaloRampData::setStep ( unsigned int  step)

Definition at line 60 of file L1CaloRampData.cxx.

60  {
61  m_iStep = step;
62 
63  if(m_rampDataVector.size() <= step) {
64  m_rampDataVector.resize(step + 1);
65  }
66 }

Member Data Documentation

◆ m_iStep

unsigned int L1CaloRampData::m_iStep
private

Definition at line 81 of file L1CaloRampData.h.

◆ m_rampDataVector

L1CaloRampDataVector L1CaloRampData::m_rampDataVector
private

Definition at line 80 of file L1CaloRampData.h.


The documentation for this class was generated from the following files:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
L1CaloRampData::m_iStep
unsigned int m_iStep
Definition: L1CaloRampData.h:81
L1CaloRampData::addData
void addData(unsigned int step, const std::pair< double, double > &energy)
Definition: L1CaloRampData.cxx:28
L1CaloRampData::m_rampDataVector
L1CaloRampDataVector m_rampDataVector
Definition: L1CaloRampData.h:80
LArCellBinning.step
step
Definition: LArCellBinning.py:158