ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::GlobalLArCell Class Reference

#include <GlobalLArCell.h>

Collaboration diagram for GlobalSim::GlobalLArCell:

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 13 of file GlobalLArCell.h.

Constructor & Destructor Documentation

◆ GlobalLArCell() [1/2]

GlobalSim::GlobalLArCell::GlobalLArCell ( )
inline

default constructor

Definition at line 136 of file GlobalLArCell.h.

136 :
137 m_id(0),
138 m_feb2("NONE"),
139 m_channel(0),
140 m_energy(0),
141 m_sigma(0)
142 {}
std::string m_feb2
name of the FEB2 through which this cell is read out
uint32_t m_id
identifier of this cell
float m_sigma
significance of energy deposit (transverse energy divided by total expected noise)
float m_energy
transverse energy (in MeV)
int m_channel
channel number of this cell on its associated FEB2

◆ GlobalLArCell() [2/2]

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

Main constructor.

Definition at line 144 of file GlobalLArCell.h.

146 :
147 m_id(ID),
148 m_feb2(FEB2),
149 m_channel(channel),
150 m_energy(0),
151 m_sigma(0)
152 {}
std::vector< Identifier > ID

Member Function Documentation

◆ eta()

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

get the eta position of the cell

Definition at line 182 of file GlobalLArCell.h.

182{ return m_eta; }
float m_eta
eta position of this cell

◆ getChannel()

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

get the channel of this cell on its associated FEB2

Definition at line 180 of file GlobalLArCell.h.

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

189{ return m_connector; }
std::string m_connector
connector of associated FEB2

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

190{ return m_connectorType; }
std::string m_connectorType
type of connector of associated FEB2

◆ getEnergy()

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

get transverse energy in MeV

Definition at line 177 of file GlobalLArCell.h.

177{ return m_energy; }

◆ getEnergyBitstring()

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

get the energy bitstring

Definition at line 178 of file GlobalLArCell.h.

178{ return m_energy_bitset; }
boost::dynamic_bitset m_energy_bitset
string of the bitstream encding the transverse energy (in MeV)

◆ getFEB2()

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

get the name of the FEB2 this cell is associated with

Definition at line 186 of file GlobalLArCell.h.

186{ return m_feb2; }

◆ getID()

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

get the short identifier of the cell

Definition at line 179 of file GlobalLArCell.h.

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

188{ return m_lasp; }
std::string m_lasp
name of associated LASP

◆ getLayer()

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

get the layer of the cell

Definition at line 185 of file GlobalLArCell.h.

185{ return m_layer; }
int m_layer
layer of this cell

◆ getMUX()

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

get the name of the MUX this cell is associated with

Definition at line 187 of file GlobalLArCell.h.

187{ return m_mux; }
std::string m_mux
name of associated MUX

◆ getSampling()

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

get the sampling of the cell

Definition at line 184 of file GlobalLArCell.h.

184{ return m_sampling; }
int m_sampling
sampling of this cell

◆ getSigma()

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

get the significance of the energy deposit of this cell

Definition at line 181 of file GlobalLArCell.h.

181{ return m_sigma; }

◆ phi()

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

get the phi position of the cell

Definition at line 183 of file GlobalLArCell.h.

183{ return m_phi; }
float m_phi
phi position of this cell

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

169 {
170 m_connector = std::move(connector);
171 m_connectorType = std::move(type);
173 m_fiber = fiber;
174 };
int m_connectorNumber
connector number of associated FEB2
int m_fiber
fiber number of associated FEB2
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

◆ setEnergy() [1/2]

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

copy & move c'tor, assignment, and destructor are automatically generated

set transverse energy in MeV

Definition at line 155 of file GlobalLArCell.h.

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

156 {
158 m_energy_bitset = std::move(energy_bitset);
159 }

◆ setLASP()

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

set name of associated LASP

Definition at line 168 of file GlobalLArCell.h.

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

◆ setLayer()

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

set layer of cell

Definition at line 165 of file GlobalLArCell.h.

165{ m_layer = layer; }
@ layer
Definition HitInfo.h:79

◆ setMUX()

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

set name of associated MUX

Definition at line 167 of file GlobalLArCell.h.

167{ 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 160 of file GlobalLArCell.h.

160 {
161 m_eta = eta;
162 m_phi = phi;
163 }
float eta() const
get the eta position of the cell
float phi() const
get the phi position of the cell

◆ setSampling()

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

set sampling of cell

Definition at line 164 of file GlobalLArCell.h.

164{ m_sampling = sampling; }

◆ setSigma()

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

set significancy of energy deposit

Definition at line 166 of file GlobalLArCell.h.

Member Data Documentation

◆ m_channel

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

channel number of this cell on its associated FEB2

Definition at line 103 of file GlobalLArCell.h.

◆ m_connector

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

connector of associated FEB2

Definition at line 121 of file GlobalLArCell.h.

◆ m_connectorNumber

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

connector number of associated FEB2

Definition at line 127 of file GlobalLArCell.h.

◆ m_connectorType

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

type of connector of associated FEB2

Definition at line 124 of file GlobalLArCell.h.

◆ m_energy

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

transverse energy (in MeV)

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

◆ m_eta

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

eta position of this cell

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

◆ m_fiber

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

fiber number of associated FEB2

Definition at line 130 of file GlobalLArCell.h.

◆ m_id

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

identifier of this cell

Definition at line 85 of file GlobalLArCell.h.

◆ m_lasp

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

name of associated LASP

Definition at line 118 of file GlobalLArCell.h.

◆ m_layer

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

layer of this cell

Definition at line 97 of file GlobalLArCell.h.

◆ m_mux

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

name of associated MUX

Definition at line 115 of file GlobalLArCell.h.

◆ m_phi

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

phi position of this cell

Definition at line 91 of file GlobalLArCell.h.

◆ m_sampling

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

sampling of this cell

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


The documentation for this class was generated from the following file: