ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
GlobalSim::GlobalLArCell Class Reference

#include <GlobalLArCell.h>

Collaboration diagram for GlobalSim::GlobalLArCell:

Public Member Functions

 GlobalLArCell ()
 default constructor More...
 
 GlobalLArCell (uint32_t ID, std::string FEB2, int channel)
 Main constructor. More...
 
 GlobalLArCell (const GlobalLArCell &)=default
 copy constructor (explicitly defaulted) More...
 
GlobalLArCelloperator= (const GlobalLArCell &)=default
 copy assignment operator (explicitly defaulted) More...
 
 ~GlobalLArCell ()
 default destructor More...
 
void setEnergy (float energy)
 set transverse energy in MeV More...
 
void setEnergy (float energy, boost::dynamic_bitset<> &&energy_bitset)
 set transverse energy in MeV and write bitstring encoding it More...
 
void setPosition (float eta, float phi)
 set position of cell in eta-phi space More...
 
void setSigma (float sigma)
 set significancy of energy deposit More...
 
void setMUX (std::string muxname)
 set name of associated MUX More...
 
void setLASP (std::string laspname)
 set name of associated LASP More...
 
void setBoardConnector (std::string connector, std::string type, int number, int fiber)
 set properties of associated board connector More...
 
float getEnergy () const
 get transverse energy in MeV More...
 
const boost::dynamic_bitset & getEnergyBitstring () const
 get the energy bitstring More...
 
uint32_t getID () const
 get the short identifier of the cell More...
 
int getChannel () const
 get the channel of this cell on its associated FEB2 More...
 
float getSigma () const
 get the significance of the energy deposit of this cell More...
 
float eta () const
 get the eta position of the cell More...
 
float phi () const
 get the phi position of the cell More...
 
const std::string & getFEB2 () const
 get the name of the FEB2 this cell is associated with More...
 
const std::string & getMUX () const
 get the name of the MUX this cell is associated with More...
 
const std::string & getLASP () const
 get the name of the LASP this cell is associated with More...
 
const std::string & getConnector () const
 get the connector of the FEB2 this cell is associated with More...
 
const std::string & getConnectorType () const
 get the type of connector of the FEB2 this cell is associated with More...
 

Protected Attributes

uint32_t m_id = -1
 identifier of this cell More...
 
float m_eta = -99.9
 eta position of this cell More...
 
float m_phi = -99.9
 phi position of this cell More...
 
std::string m_feb2 = ""
 name of the FEB2 through which this cell is read out More...
 
int m_channel = -1
 channel number of this cell on its associated FEB2 More...
 
float m_energy = -1
 transverse energy (in MeV) More...
 
boost::dynamic_bitset m_energy_bitset
 string of the bitstream encding the transverse energy (in MeV) More...
 
float m_sigma = -99.9
 significance of energy deposit (transverse energy divided by total expected noise) More...
 
std::string m_mux = ""
 name of associated MUX More...
 
std::string m_lasp = ""
 name of associated LASP More...
 
std::string m_connector = ""
 connector of associated FEB2 More...
 
std::string m_connectorType = ""
 type of connector of associated FEB2 More...
 
int m_connectorNumber = -1
 connector number of associated FEB2 More...
 
int m_fiber = -1
 fiber number of associated FEB2 More...
 

Detailed Description

Definition at line 13 of file GlobalLArCell.h.

Constructor & Destructor Documentation

◆ GlobalLArCell() [1/3]

GlobalSim::GlobalLArCell::GlobalLArCell ( )
inline

default constructor

Definition at line 128 of file GlobalLArCell.h.

128  :
129  m_id(0),
130  m_feb2("NONE"),
131  m_channel(0),
132  m_energy(0),
133  m_sigma(0)
134  {}

◆ GlobalLArCell() [2/3]

GlobalSim::GlobalLArCell::GlobalLArCell ( uint32_t  ID,
std::string  FEB2,
int  channel 
)
inline

Main constructor.

Definition at line 136 of file GlobalLArCell.h.

138  :
139  m_id(ID),
140  m_feb2(FEB2),
142  m_energy(0),
143  m_sigma(0)
144  {}

◆ GlobalLArCell() [3/3]

GlobalSim::GlobalLArCell::GlobalLArCell ( const GlobalLArCell )
default

copy constructor (explicitly defaulted)

◆ ~GlobalLArCell()

GlobalSim::GlobalLArCell::~GlobalLArCell ( )
inline

default destructor

Definition at line 33 of file GlobalLArCell.h.

33 { };

Member Function Documentation

◆ eta()

float GlobalSim::GlobalLArCell::eta ( ) const
inline

get the eta position of the cell

Definition at line 172 of file GlobalLArCell.h.

172 { return m_eta; }

◆ getChannel()

int GlobalSim::GlobalLArCell::getChannel ( ) const
inline

get the channel of this cell on its associated FEB2

Definition at line 170 of file GlobalLArCell.h.

170 { return m_channel; }

◆ getConnector()

const std::string & GlobalSim::GlobalLArCell::getConnector ( ) const
inline

get the connector of the FEB2 this cell is associated with

Definition at line 177 of file GlobalLArCell.h.

177 { return m_connector; }

◆ getConnectorType()

const std::string & GlobalSim::GlobalLArCell::getConnectorType ( ) const
inline

get the type of connector of the FEB2 this cell is associated with

Definition at line 178 of file GlobalLArCell.h.

178 { return m_connectorType; }

◆ getEnergy()

float GlobalSim::GlobalLArCell::getEnergy ( ) const
inline

get transverse energy in MeV

Definition at line 167 of file GlobalLArCell.h.

167 { return m_energy; }

◆ getEnergyBitstring()

const boost::dynamic_bitset & GlobalSim::GlobalLArCell::getEnergyBitstring ( ) const
inline

get the energy bitstring

Definition at line 168 of file GlobalLArCell.h.

168 { return m_energy_bitset; }

◆ getFEB2()

const std::string & GlobalSim::GlobalLArCell::getFEB2 ( ) const
inline

get the name of the FEB2 this cell is associated with

Definition at line 174 of file GlobalLArCell.h.

174 { return m_feb2; }

◆ getID()

uint32_t GlobalSim::GlobalLArCell::getID ( ) const
inline

get the short identifier of the cell

Definition at line 169 of file GlobalLArCell.h.

169 { return m_id; }

◆ getLASP()

const std::string & GlobalSim::GlobalLArCell::getLASP ( ) const
inline

get the name of the LASP this cell is associated with

Definition at line 176 of file GlobalLArCell.h.

176 { return m_lasp; }

◆ getMUX()

const std::string & GlobalSim::GlobalLArCell::getMUX ( ) const
inline

get the name of the MUX this cell is associated with

Definition at line 175 of file GlobalLArCell.h.

175 { return m_mux; }

◆ getSigma()

float GlobalSim::GlobalLArCell::getSigma ( ) const
inline

get the significance of the energy deposit of this cell

Definition at line 171 of file GlobalLArCell.h.

171 { return m_sigma; }

◆ operator=()

GlobalLArCell& GlobalSim::GlobalLArCell::operator= ( const GlobalLArCell )
default

copy assignment operator (explicitly defaulted)

◆ phi()

float GlobalSim::GlobalLArCell::phi ( ) const
inline

get the phi position of the cell

Definition at line 173 of file GlobalLArCell.h.

173 { return m_phi; }

◆ setBoardConnector()

void GlobalSim::GlobalLArCell::setBoardConnector ( std::string  connector,
std::string  type,
int  number,
int  fiber 
)
inline

set properties of associated board connector

Definition at line 159 of file GlobalLArCell.h.

159  {
160  m_connector = std::move(connector);
161  m_connectorType = std::move(type);
163  m_fiber = fiber;
164  };

◆ setEnergy() [1/2]

void GlobalSim::GlobalLArCell::setEnergy ( float  energy)
inline

set transverse energy in MeV

Definition at line 147 of file GlobalLArCell.h.

147 { m_energy = energy; }

◆ setEnergy() [2/2]

void GlobalSim::GlobalLArCell::setEnergy ( float  energy,
boost::dynamic_bitset<> &&  energy_bitset 
)
inline

set transverse energy in MeV and write bitstring encoding it

Definition at line 148 of file GlobalLArCell.h.

148  {
149  m_energy = energy;
150  m_energy_bitset = std::move(energy_bitset);
151  }

◆ setLASP()

void GlobalSim::GlobalLArCell::setLASP ( std::string  laspname)
inline

set name of associated LASP

Definition at line 158 of file GlobalLArCell.h.

158 { m_lasp = std::move(laspname); };

◆ setMUX()

void GlobalSim::GlobalLArCell::setMUX ( std::string  muxname)
inline

set name of associated MUX

Definition at line 157 of file GlobalLArCell.h.

157 { m_mux = std::move(muxname); };

◆ setPosition()

void GlobalSim::GlobalLArCell::setPosition ( float  eta,
float  phi 
)
inline

set position of cell in eta-phi space

Definition at line 152 of file GlobalLArCell.h.

152  {
153  m_eta = eta;
154  m_phi = phi;
155  }

◆ setSigma()

void GlobalSim::GlobalLArCell::setSigma ( float  sigma)
inline

set significancy of energy deposit

Definition at line 156 of file GlobalLArCell.h.

156 { m_sigma = sigma; }

Member Data Documentation

◆ m_channel

int GlobalSim::GlobalLArCell::m_channel = -1
protected

channel number of this cell on its associated FEB2

Definition at line 95 of file GlobalLArCell.h.

◆ m_connector

std::string GlobalSim::GlobalLArCell::m_connector = ""
protected

connector of associated FEB2

Definition at line 113 of file GlobalLArCell.h.

◆ m_connectorNumber

int GlobalSim::GlobalLArCell::m_connectorNumber = -1
protected

connector number of associated FEB2

Definition at line 119 of file GlobalLArCell.h.

◆ m_connectorType

std::string GlobalSim::GlobalLArCell::m_connectorType = ""
protected

type of connector of associated FEB2

Definition at line 116 of file GlobalLArCell.h.

◆ m_energy

float GlobalSim::GlobalLArCell::m_energy = -1
protected

transverse energy (in MeV)

Definition at line 98 of file GlobalLArCell.h.

◆ m_energy_bitset

boost::dynamic_bitset GlobalSim::GlobalLArCell::m_energy_bitset
protected

string of the bitstream encding the transverse energy (in MeV)

Definition at line 101 of file GlobalLArCell.h.

◆ m_eta

float GlobalSim::GlobalLArCell::m_eta = -99.9
protected

eta position of this cell

Definition at line 86 of file GlobalLArCell.h.

◆ m_feb2

std::string GlobalSim::GlobalLArCell::m_feb2 = ""
protected

name of the FEB2 through which this cell is read out

Definition at line 92 of file GlobalLArCell.h.

◆ m_fiber

int GlobalSim::GlobalLArCell::m_fiber = -1
protected

fiber number of associated FEB2

Definition at line 122 of file GlobalLArCell.h.

◆ m_id

uint32_t GlobalSim::GlobalLArCell::m_id = -1
protected

identifier of this cell

Definition at line 83 of file GlobalLArCell.h.

◆ m_lasp

std::string GlobalSim::GlobalLArCell::m_lasp = ""
protected

name of associated LASP

Definition at line 110 of file GlobalLArCell.h.

◆ m_mux

std::string GlobalSim::GlobalLArCell::m_mux = ""
protected

name of associated MUX

Definition at line 107 of file GlobalLArCell.h.

◆ m_phi

float GlobalSim::GlobalLArCell::m_phi = -99.9
protected

phi position of this cell

Definition at line 89 of file GlobalLArCell.h.

◆ m_sigma

float GlobalSim::GlobalLArCell::m_sigma = -99.9
protected

significance of energy deposit (transverse energy divided by total expected noise)

Definition at line 104 of file GlobalLArCell.h.


The documentation for this class was generated from the following file:
pdg_comparison.sigma
sigma
Definition: pdg_comparison.py:324
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
GlobalSim::GlobalLArCell::m_mux
std::string m_mux
name of associated MUX
Definition: GlobalLArCell.h:107
GlobalSim::GlobalLArCell::m_energy
float m_energy
transverse energy (in MeV)
Definition: GlobalLArCell.h:98
GlobalSim::GlobalLArCell::m_eta
float m_eta
eta position of this cell
Definition: GlobalLArCell.h:86
GlobalSim::GlobalLArCell::m_connectorType
std::string m_connectorType
type of connector of associated FEB2
Definition: GlobalLArCell.h:116
GlobalSim::GlobalLArCell::m_sigma
float m_sigma
significance of energy deposit (transverse energy divided by total expected noise)
Definition: GlobalLArCell.h:104
GlobalSim::GlobalLArCell::m_connector
std::string m_connector
connector of associated FEB2
Definition: GlobalLArCell.h:113
GlobalSim::GlobalLArCell::m_connectorNumber
int m_connectorNumber
connector number of associated FEB2
Definition: GlobalLArCell.h:119
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
GlobalSim::GlobalLArCell::phi
float phi() const
get the phi position of the cell
Definition: GlobalLArCell.h:173
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
GlobalSim::GlobalLArCell::m_id
uint32_t m_id
identifier of this cell
Definition: GlobalLArCell.h:83
GlobalSim::GlobalLArCell::m_energy_bitset
boost::dynamic_bitset m_energy_bitset
string of the bitstream encding the transverse energy (in MeV)
Definition: GlobalLArCell.h:101
GlobalSim::GlobalLArCell::m_phi
float m_phi
phi position of this cell
Definition: GlobalLArCell.h:89
GlobalSim::GlobalLArCell::m_feb2
std::string m_feb2
name of the FEB2 through which this cell is read out
Definition: GlobalLArCell.h:92
GlobalSim::GlobalLArCell::m_lasp
std::string m_lasp
name of associated LASP
Definition: GlobalLArCell.h:110
python.selection.number
number
Definition: selection.py:20
GlobalSim::GlobalLArCell::eta
float eta() const
get the eta position of the cell
Definition: GlobalLArCell.h:172
GlobalSim::GlobalLArCell::m_fiber
int m_fiber
fiber number of associated FEB2
Definition: GlobalLArCell.h:122
GlobalSim::GlobalLArCell::m_channel
int m_channel
channel number of this cell on its associated FEB2
Definition: GlobalLArCell.h:95