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 setSampling (int sampling)
 set sampling of cell More...
 
void setLayer (int layer)
 set layer of cell 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...
 
int getSampling () const
 get the sampling of the cell More...
 
int getLayer () const
 get the layer 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...
 
int m_sampling = -1
 sampling of this cell More...
 
int m_layer = -1
 layer 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 142 of file GlobalLArCell.h.

142  :
143  m_id(0),
144  m_feb2("NONE"),
145  m_channel(0),
146  m_energy(0),
147  m_sigma(0)
148  {}

◆ GlobalLArCell() [2/3]

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

Main constructor.

Definition at line 150 of file GlobalLArCell.h.

152  :
153  m_id(ID),
154  m_feb2(FEB2),
156  m_energy(0),
157  m_sigma(0)
158  {}

◆ 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 188 of file GlobalLArCell.h.

188 { return m_eta; }

◆ getChannel()

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

get the channel of this cell on its associated FEB2

Definition at line 186 of file GlobalLArCell.h.

186 { 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 195 of file GlobalLArCell.h.

195 { 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 196 of file GlobalLArCell.h.

196 { return m_connectorType; }

◆ getEnergy()

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

get transverse energy in MeV

Definition at line 183 of file GlobalLArCell.h.

183 { return m_energy; }

◆ getEnergyBitstring()

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

get the energy bitstring

Definition at line 184 of file GlobalLArCell.h.

184 { 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 192 of file GlobalLArCell.h.

192 { return m_feb2; }

◆ getID()

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

get the short identifier of the cell

Definition at line 185 of file GlobalLArCell.h.

185 { 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 194 of file GlobalLArCell.h.

194 { return m_lasp; }

◆ getLayer()

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

get the layer of the cell

Definition at line 191 of file GlobalLArCell.h.

191 { return m_layer; }

◆ getMUX()

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

get the name of the MUX this cell is associated with

Definition at line 193 of file GlobalLArCell.h.

193 { return m_mux; }

◆ getSampling()

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

get the sampling of the cell

Definition at line 190 of file GlobalLArCell.h.

190 { return m_sampling; }

◆ getSigma()

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

get the significance of the energy deposit of this cell

Definition at line 187 of file GlobalLArCell.h.

187 { 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 189 of file GlobalLArCell.h.

189 { 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 175 of file GlobalLArCell.h.

175  {
176  m_connector = std::move(connector);
177  m_connectorType = std::move(type);
179  m_fiber = fiber;
180  };

◆ setEnergy() [1/2]

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

set transverse energy in MeV

Definition at line 161 of file GlobalLArCell.h.

161 { 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 162 of file GlobalLArCell.h.

162  {
163  m_energy = energy;
164  m_energy_bitset = std::move(energy_bitset);
165  }

◆ setLASP()

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

set name of associated LASP

Definition at line 174 of file GlobalLArCell.h.

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

◆ setLayer()

void GlobalSim::GlobalLArCell::setLayer ( int  layer)
inline

set layer of cell

Definition at line 171 of file GlobalLArCell.h.

171 { m_layer = layer; }

◆ setMUX()

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

set name of associated MUX

Definition at line 173 of file GlobalLArCell.h.

173 { 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 166 of file GlobalLArCell.h.

166  {
167  m_eta = eta;
168  m_phi = phi;
169  }

◆ setSampling()

void GlobalSim::GlobalLArCell::setSampling ( int  sampling)
inline

set sampling of cell

Definition at line 170 of file GlobalLArCell.h.

170 { m_sampling = sampling; }

◆ setSigma()

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

set significancy of energy deposit

Definition at line 172 of file GlobalLArCell.h.

172 { 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 109 of file GlobalLArCell.h.

◆ m_connector

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

connector of associated FEB2

Definition at line 127 of file GlobalLArCell.h.

◆ m_connectorNumber

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

connector number of associated FEB2

Definition at line 133 of file GlobalLArCell.h.

◆ m_connectorType

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

type of connector of associated FEB2

Definition at line 130 of file GlobalLArCell.h.

◆ m_energy

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

transverse energy (in MeV)

Definition at line 112 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 115 of file GlobalLArCell.h.

◆ m_eta

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

eta position of this cell

Definition at line 94 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 106 of file GlobalLArCell.h.

◆ m_fiber

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

fiber number of associated FEB2

Definition at line 136 of file GlobalLArCell.h.

◆ m_id

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

identifier of this cell

Definition at line 91 of file GlobalLArCell.h.

◆ m_lasp

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

name of associated LASP

Definition at line 124 of file GlobalLArCell.h.

◆ m_layer

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

layer of this cell

Definition at line 103 of file GlobalLArCell.h.

◆ m_mux

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

name of associated MUX

Definition at line 121 of file GlobalLArCell.h.

◆ m_phi

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

phi position of this cell

Definition at line 97 of file GlobalLArCell.h.

◆ m_sampling

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

sampling of this cell

Definition at line 100 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 118 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:121
GlobalSim::GlobalLArCell::m_energy
float m_energy
transverse energy (in MeV)
Definition: GlobalLArCell.h:112
GlobalSim::GlobalLArCell::m_eta
float m_eta
eta position of this cell
Definition: GlobalLArCell.h:94
GlobalSim::GlobalLArCell::m_connectorType
std::string m_connectorType
type of connector of associated FEB2
Definition: GlobalLArCell.h:130
GlobalSim::GlobalLArCell::m_sigma
float m_sigma
significance of energy deposit (transverse energy divided by total expected noise)
Definition: GlobalLArCell.h:118
GlobalSim::GlobalLArCell::m_connector
std::string m_connector
connector of associated FEB2
Definition: GlobalLArCell.h:127
GlobalSim::GlobalLArCell::m_connectorNumber
int m_connectorNumber
connector number of associated FEB2
Definition: GlobalLArCell.h:133
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
GlobalSim::GlobalLArCell::phi
float phi() const
get the phi position of the cell
Definition: GlobalLArCell.h:189
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
GlobalSim::GlobalLArCell::m_layer
int m_layer
layer of this cell
Definition: GlobalLArCell.h:103
GlobalSim::GlobalLArCell::m_id
uint32_t m_id
identifier of this cell
Definition: GlobalLArCell.h:91
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
GlobalSim::GlobalLArCell::m_energy_bitset
boost::dynamic_bitset m_energy_bitset
string of the bitstream encding the transverse energy (in MeV)
Definition: GlobalLArCell.h:115
GlobalSim::GlobalLArCell::m_phi
float m_phi
phi position of this cell
Definition: GlobalLArCell.h:97
GlobalSim::GlobalLArCell::m_feb2
std::string m_feb2
name of the FEB2 through which this cell is read out
Definition: GlobalLArCell.h:106
GlobalSim::GlobalLArCell::m_lasp
std::string m_lasp
name of associated LASP
Definition: GlobalLArCell.h:124
python.selection.number
number
Definition: selection.py:20
GlobalSim::GlobalLArCell::eta
float eta() const
get the eta position of the cell
Definition: GlobalLArCell.h:188
GlobalSim::GlobalLArCell::m_fiber
int m_fiber
fiber number of associated FEB2
Definition: GlobalLArCell.h:136
GlobalSim::GlobalLArCell::m_sampling
int m_sampling
sampling of this cell
Definition: GlobalLArCell.h:100
GlobalSim::GlobalLArCell::m_channel
int m_channel
channel number of this cell on its associated FEB2
Definition: GlobalLArCell.h:109