ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::eFEXOutputCollection Class Reference

#include <eFEXOutputCollection.h>

Collaboration diagram for LVL1::eFEXOutputCollection:

Public Member Functions

 eFEXOutputCollection ()
 constructor More...
 
 ~eFEXOutputCollection ()
 Destructor. More...
 
void clear ()
 Removes all values from the vectors for the next event. More...
 
void addValue_eg (const std::string &key, float value)
 add a value related to the e-gamma algorithm for a TOB More...
 
void fill_eg ()
 Save all e-gamma values. Use only after finishing defining all e-gamma values for one TOB. More...
 
void addValue_tau (const std::string &key, float value)
 define a value related to the tau algorithm for a TOB More...
 
void fill_tau ()
 Save all tau values. Use only after finishing defining all tau values for one TOB. More...
 
int tau_size () const
 get total number of tau TOBs saved More...
 
int size () const
 get total number of eg TOBs saved More...
 
std::map< std::string, float > * get_eg (int) const
 get all e-gamma related values the ith TOB More...
 
std::map< std::string, float > * get_tau (int) const
 get all tau related values the ith TOB More...
 
void addeFexNumber (int)
 add the eEFX number of a TOB More...
 
std::vector< int > geteFexNumber () const
 get the eFEX numbers of all TOBs More...
 
void addEMtob (uint32_t)
 add a 32-bit e-gamma TOB word More...
 
std::vector< uint32_t > getEMtob () const
 get all e-gamma TOB words of an event More...
 
void setdooutput (bool)
 setting to true if ntuple output is needed More...
 
bool getdooutput () const
 return to true if ntuple output is needed More...
 

Private Attributes

bool m_dooutput
 if write Ntuple More...
 
std::vector< int > m_eFexNumber
 vector of eFEX numbers More...
 
std::vector< uint32_t > m_emtob
 vector of TOB words More...
 
std::map< std::string, float > m_values_tem_eg
 e-gamma related values of a TOB More...
 
std::vector< std::map< std::string, float > * > m_allvalues_eg
 e-gamma related values of all TOBs in an event More...
 
std::map< std::string, float > m_values_tem_tau
 tau related values of a TOB More...
 
std::vector< std::map< std::string, float > * > m_allvalues_tau
 tau related values of all TOBs in an event More...
 

Detailed Description

Definition at line 22 of file eFEXOutputCollection.h.

Constructor & Destructor Documentation

◆ eFEXOutputCollection()

eFEXOutputCollection::eFEXOutputCollection ( )

constructor

Definition at line 7 of file eFEXOutputCollection.cxx.

7  {
8  m_dooutput = false;
9 }

◆ ~eFEXOutputCollection()

eFEXOutputCollection::~eFEXOutputCollection ( )

Destructor.

Definition at line 11 of file eFEXOutputCollection.cxx.

12 {
13  for (auto iValues : m_allvalues_eg) {
14  delete iValues;
15  }
16  for (auto iValues : m_allvalues_tau) {
17  delete iValues;
18  }
19 }

Member Function Documentation

◆ addeFexNumber()

void eFEXOutputCollection::addeFexNumber ( int  efexnumber)

add the eEFX number of a TOB

Definition at line 77 of file eFEXOutputCollection.cxx.

78 {
79  m_eFexNumber.push_back(efexnumber);
80 }

◆ addEMtob()

void eFEXOutputCollection::addEMtob ( uint32_t  emtob)

add a 32-bit e-gamma TOB word

Definition at line 87 of file eFEXOutputCollection.cxx.

88 {
89  m_emtob.push_back(emtob);
90 }

◆ addValue_eg()

void eFEXOutputCollection::addValue_eg ( const std::string &  key,
float  value 
)

add a value related to the e-gamma algorithm for a TOB

Parameters
keyname of the value
valuethe value

Definition at line 33 of file eFEXOutputCollection.cxx.

34 {
35  m_values_tem_eg.insert(std::make_pair(key, value));
36 }

◆ addValue_tau()

void eFEXOutputCollection::addValue_tau ( const std::string &  key,
float  value 
)

define a value related to the tau algorithm for a TOB

Parameters
keyname of the value
valuevalue

Definition at line 38 of file eFEXOutputCollection.cxx.

39 {
40  m_values_tem_tau.insert(std::make_pair(key, value));
41 }

◆ clear()

void eFEXOutputCollection::clear ( )

Removes all values from the vectors for the next event.

Definition at line 21 of file eFEXOutputCollection.cxx.

22 {
23  for (auto iValues : m_allvalues_eg) {
24  iValues->clear();
25  }
26  for (auto iValues : m_allvalues_tau) {
27  iValues->clear();
28  }
29  m_eFexNumber.clear();
30  m_emtob.clear();
31 }

◆ fill_eg()

void eFEXOutputCollection::fill_eg ( )

Save all e-gamma values. Use only after finishing defining all e-gamma values for one TOB.

Definition at line 43 of file eFEXOutputCollection.cxx.

44 {
45  std::map<std::string, float>* values_local = new std::map<std::string, float>(m_values_tem_eg);
46  m_allvalues_eg.push_back(values_local);
47  m_values_tem_eg.clear();
48 }

◆ fill_tau()

void eFEXOutputCollection::fill_tau ( )

Save all tau values. Use only after finishing defining all tau values for one TOB.

Definition at line 50 of file eFEXOutputCollection.cxx.

51 {
52  std::map<std::string, float>* values_local = new std::map<std::string, float>(m_values_tem_tau);
53  m_allvalues_tau.push_back(values_local);
54  m_values_tem_tau.clear();
55 }

◆ get_eg()

std::map< std::string, float > * eFEXOutputCollection::get_eg ( int  location) const

get all e-gamma related values the ith TOB

Definition at line 67 of file eFEXOutputCollection.cxx.

68 {
69  return m_allvalues_eg.at(location);
70 }

◆ get_tau()

std::map< std::string, float > * eFEXOutputCollection::get_tau ( int  location) const

get all tau related values the ith TOB

Definition at line 72 of file eFEXOutputCollection.cxx.

73 {
74  return m_allvalues_tau.at(location);
75 }

◆ getdooutput()

bool eFEXOutputCollection::getdooutput ( ) const

return to true if ntuple output is needed

Definition at line 102 of file eFEXOutputCollection.cxx.

102  {
103  return m_dooutput;
104 }

◆ geteFexNumber()

std::vector< int > eFEXOutputCollection::geteFexNumber ( ) const

get the eFEX numbers of all TOBs

Definition at line 82 of file eFEXOutputCollection.cxx.

83 {
84  return m_eFexNumber;
85 }

◆ getEMtob()

std::vector< uint32_t > eFEXOutputCollection::getEMtob ( ) const

get all e-gamma TOB words of an event

Definition at line 92 of file eFEXOutputCollection.cxx.

93 {
94  return m_emtob;
95 }

◆ setdooutput()

void eFEXOutputCollection::setdooutput ( bool  input)

setting to true if ntuple output is needed

Definition at line 98 of file eFEXOutputCollection.cxx.

98  {
99  m_dooutput = input;
100 }

◆ size()

int eFEXOutputCollection::size ( ) const

get total number of eg TOBs saved

Definition at line 62 of file eFEXOutputCollection.cxx.

63 {
64  return m_allvalues_eg.size();
65 }

◆ tau_size()

int eFEXOutputCollection::tau_size ( ) const

get total number of tau TOBs saved

Definition at line 57 of file eFEXOutputCollection.cxx.

58 {
59  return m_allvalues_tau.size();
60 }

Member Data Documentation

◆ m_allvalues_eg

std::vector<std::map<std::string, float>*> LVL1::eFEXOutputCollection::m_allvalues_eg
private

e-gamma related values of all TOBs in an event

Definition at line 99 of file eFEXOutputCollection.h.

◆ m_allvalues_tau

std::vector<std::map<std::string, float>*> LVL1::eFEXOutputCollection::m_allvalues_tau
private

tau related values of all TOBs in an event

Definition at line 103 of file eFEXOutputCollection.h.

◆ m_dooutput

bool LVL1::eFEXOutputCollection::m_dooutput
private

if write Ntuple

Definition at line 93 of file eFEXOutputCollection.h.

◆ m_eFexNumber

std::vector<int> LVL1::eFEXOutputCollection::m_eFexNumber
private

vector of eFEX numbers

Definition at line 94 of file eFEXOutputCollection.h.

◆ m_emtob

std::vector<uint32_t> LVL1::eFEXOutputCollection::m_emtob
private

vector of TOB words

Definition at line 95 of file eFEXOutputCollection.h.

◆ m_values_tem_eg

std::map<std::string, float> LVL1::eFEXOutputCollection::m_values_tem_eg
private

e-gamma related values of a TOB

Definition at line 97 of file eFEXOutputCollection.h.

◆ m_values_tem_tau

std::map<std::string, float> LVL1::eFEXOutputCollection::m_values_tem_tau
private

tau related values of a TOB

Definition at line 101 of file eFEXOutputCollection.h.


The documentation for this class was generated from the following files:
LVL1::eFEXOutputCollection::m_emtob
std::vector< uint32_t > m_emtob
vector of TOB words
Definition: eFEXOutputCollection.h:95
LVL1::eFEXOutputCollection::m_values_tem_eg
std::map< std::string, float > m_values_tem_eg
e-gamma related values of a TOB
Definition: eFEXOutputCollection.h:97
LVL1::eFEXOutputCollection::m_allvalues_eg
std::vector< std::map< std::string, float > * > m_allvalues_eg
e-gamma related values of all TOBs in an event
Definition: eFEXOutputCollection.h:99
athena.value
value
Definition: athena.py:122
LVL1::eFEXOutputCollection::m_dooutput
bool m_dooutput
if write Ntuple
Definition: eFEXOutputCollection.h:93
LVL1::eFEXOutputCollection::m_values_tem_tau
std::map< std::string, float > m_values_tem_tau
tau related values of a TOB
Definition: eFEXOutputCollection.h:101
python.sizes.location
string location
Definition: sizes.py:11
LVL1::eFEXOutputCollection::m_eFexNumber
std::vector< int > m_eFexNumber
vector of eFEX numbers
Definition: eFEXOutputCollection.h:94
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LVL1::eFEXOutputCollection::m_allvalues_tau
std::vector< std::map< std::string, float > * > m_allvalues_tau
tau related values of all TOBs in an event
Definition: eFEXOutputCollection.h:103
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37