|
ATLAS Offline Software
|
Go to the documentation of this file.
31 m_tower_id_online(0xffff),
41 jTower::jTower(
int ieta,
int iphi,
int towerid,
int posneg,
float centre_eta,
float centre_phi,
int fcal_layer):
45 m_tower_id_online(-9999999),
47 m_centre_eta(centre_eta),
48 m_centre_phi(centre_phi),
49 m_fcal_layer(fcal_layer)
91 std::stringstream errMsg;
92 errMsg <<
"addET: Attempt to set an invalid JTower layer with value: " <<
layer <<
". Must be 0 (EM) or 1 (HAD) ";
93 throw std::runtime_error(errMsg.str().c_str());
111 std::stringstream errMsg;
112 errMsg <<
"set_TileCal_Et: Attempt to set an invalid JTower layer with value: " <<
layer <<
". Must be 0 (EM) or 1 (HAD) ";
113 throw std::runtime_error(errMsg.str().c_str());
129 std::stringstream errMsg;
130 errMsg <<
"Attempt to set jTower SCID in invalid layer (" <<
layer <<
")";
131 throw std::runtime_error(errMsg.str().c_str());
136 if (cell < 0 || cell > 2) {
137 std::stringstream errMsg;
138 errMsg <<
"Attempt to set jTower SCID in invalid cell slot (" <<
cell <<
")";
139 throw std::runtime_error(errMsg.str().c_str());
148 else if(
layer == 1) {
204 for (
unsigned int i=0;
i<
m_et.size();
i++) {
229 std::vector<int>
cells;
245 std::vector<float>
cells;
263 else if (
layer == 1) {
277 else if (
layer == 1) {
290 else if (
layer == 1) {
294 return std::vector<Identifier>();
Extra patterns decribing particle interation process.
void setCentreEta(float ieta)
Add to eta/phi values of a specified tower.
int iEta() const
Get coordinates of tower.
std::vector< Identifier > ID
void setTTowerAreaInv(int area, int layer)
Add to Area inverted values of a specified tower.
void setPosNeg(int posneg)
void setNoiseForMet(int noiseVal, int layer)
Noise values for each layer and object.
int getET(unsigned int layer, int cell=0) const
Get ET of a specified cell in MeV.
std::vector< int > m_TTowerAreaInv
void set_LAr_Et(Identifier ID, int cell, float et, int layer)
Set LAr supercell position ID.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
const int s_cells[s_nLayers]
int getTTowerAreaInv(int layer) const
const int s_offsets[s_nLayers]
static int Expand(unsigned int code)
Uncompress data.
std::vector< float > getLayerETvec_float(unsigned int layer) const
Get vector of ET values for a given layer in MeV FLOAT VERSION.
int getNoiseForJet(int layer) const
void clearET()
Clear supercell ET values.
void setTTowerArea(int area, int layer)
Add to Area values of a specified tower.
static unsigned int Compress(float floatEt, bool empty=false)
Compress data.
float getET_float(unsigned int layer, int cell=0) const
Get ET of a specified cell in MeV FLOAT VERSION.
void addET(float et, int cell)
Add to ET of a specified cell in MeV.
void setCentrePhi(float iphi)
Helper class for offline supercell identifiers.
int getTotalET() const
Get ET sum of all cells in the jTower in MeV.
std::vector< int > m_TTowerArea
int iPhi() const
Return global phi index.
void set_TileCal_Et(int layer, int et)
void setOnlineID(int tower_id_online)
std::vector< Identifier > getLayerSCIDs(unsigned int layer) const
void Do_LAr_encoding()
Applies LAr digitization scheme.
std::vector< int > getLayerETvec(unsigned int layer) const
Get vector of ET values for a given layer in MeV.
std::vector< Identifier > m_HAD_scID
std::vector< float > m_et_float_raw
std::vector< Identifier > m_EM_scID
int getTTowerArea(int layer) const
void setNoiseForJet(int noiseVal, int layer)
float getTotalET_float() const
Get ET sum of all cells in the jTower in MeV FLOAT VERSION.
void set_Et(int layer, int et)
Set ET value in MeV.
void clear_HAD_scIDs()
Clear and resize HAD SC Identifier value vector.
void clear_EM_scIDs()
Clear and resize Identifier value vector.
float getLayerTotalET_float(unsigned int layer) const
Get total ET sum of all cells in a given layer in MeV FLOAT VERSION.
int getNoiseForMet(int layer) const
int getLayerTotalET(unsigned int layer) const
Get total ET sum of all cells in a given layer in MeV.