|
ATLAS Offline Software
|
Element to represent a SuperCell.
More...
#include <CaloDetectorElements.h>
Element to represent a SuperCell.
Initializes its geometry from the corresponding set of offline cells.
Definition at line 421 of file CaloDetectorElements.h.
◆ CaloSuperCellDetectorElement()
Constructor, initializes base class constructor parameters with default values.
- Parameters
-
subcaloHash | The hash code of this element, within the subcalo. |
descriptor | Descriptor for this element. |
Definition at line 431 of file CaloDetectorElements.h.
◆ calo_hash() [1/2]
unsigned long long CaloDetDescrElement::calo_hash |
( |
| ) |
const |
|
inherited |
◆ calo_hash() [2/2]
unsigned long long CaloDetDescrElement::calo_hash |
( |
| ) |
const |
|
inlineinherited |
◆ cosPhi()
float CaloDetDescrElement::cosPhi |
( |
| ) |
const |
|
inlineinherited |
◆ cosTh()
float CaloDetDescrElement::cosTh |
( |
| ) |
const |
|
inlineinherited |
◆ cotTh()
float CaloDetDescrElement::cotTh |
( |
| ) |
const |
|
inlineinherited |
◆ customID()
Identifier CaloDetDescrElement::customID |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ descriptor()
◆ deta() [1/2]
float CaloDetDescrElement::deta |
( |
| ) |
const |
|
inherited |
◆ deta() [2/2]
float CaloDetDescrElement::deta |
( |
| ) |
const |
|
inlineinherited |
◆ dphi() [1/2]
float CaloDetDescrElement::dphi |
( |
| ) |
const |
|
inherited |
◆ dphi() [2/2]
float CaloDetDescrElement::dphi |
( |
| ) |
const |
|
inlineinherited |
◆ dr() [1/2]
float CaloDetDescrElement::dr |
( |
| ) |
const |
|
inherited |
◆ dr() [2/2]
float CaloDetDescrElement::dr |
( |
| ) |
const |
|
inlineinherited |
◆ dx() [1/2]
float CaloDetDescrElement::dx |
( |
| ) |
const |
|
inherited |
◆ dx() [2/2]
float CaloDetDescrElement::dx |
( |
| ) |
const |
|
inlineinherited |
◆ dy() [1/2]
float CaloDetDescrElement::dy |
( |
| ) |
const |
|
inherited |
◆ dy() [2/2]
float CaloDetDescrElement::dy |
( |
| ) |
const |
|
inlineinherited |
◆ dz() [1/2]
float CaloDetDescrElement::dz |
( |
| ) |
const |
|
inherited |
◆ dz() [2/2]
float CaloDetDescrElement::dz |
( |
| ) |
const |
|
inlineinherited |
◆ eta() [1/2]
float CaloDetDescrElement::eta |
( |
| ) |
const |
|
inherited |
◆ eta() [2/2]
float CaloDetDescrElement::eta |
( |
| ) |
const |
|
inlineinherited |
◆ eta_raw() [1/2]
float CaloDetDescrElement::eta_raw |
( |
| ) |
const |
|
inherited |
◆ eta_raw() [2/2]
float CaloDetDescrElement::eta_raw |
( |
| ) |
const |
|
inlineinherited |
◆ getHelper()
◆ getLayer()
int CaloDetDescrElement::getLayer |
( |
| ) |
const |
|
virtualinherited |
◆ getSampling() [1/2]
int CaloDetDescrElement::getSampling |
( |
| ) |
const |
|
inherited |
◆ getSampling() [2/2]
int CaloDetDescrElement::getSampling |
( |
| ) |
const |
|
inlineinherited |
◆ getSubCalo()
◆ identify() [1/2]
Identifier CaloDetDescrElement::identify |
( |
| ) |
const |
|
virtualinherited |
◆ identify() [2/2]
Identifier CaloDetDescrElement::identify |
( |
| ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ identifyHash()
|
inlinefinaloverridevirtualinherited |
◆ is_lar_em()
bool CaloDetDescrElement::is_lar_em |
( |
| ) |
const |
|
inherited |
◆ is_lar_em_barrel()
bool CaloDetDescrElement::is_lar_em_barrel |
( |
| ) |
const |
|
inherited |
◆ is_lar_em_endcap()
bool CaloDetDescrElement::is_lar_em_endcap |
( |
| ) |
const |
|
inherited |
◆ is_lar_em_endcap_inner()
bool CaloDetDescrElement::is_lar_em_endcap_inner |
( |
| ) |
const |
|
inherited |
◆ is_lar_em_endcap_outer()
bool CaloDetDescrElement::is_lar_em_endcap_outer |
( |
| ) |
const |
|
inherited |
◆ is_lar_fcal()
bool CaloDetDescrElement::is_lar_fcal |
( |
| ) |
const |
|
inherited |
◆ is_lar_hec()
bool CaloDetDescrElement::is_lar_hec |
( |
| ) |
const |
|
inherited |
◆ is_tile()
bool CaloDetDescrElement::is_tile |
( |
| ) |
const |
|
inlineinherited |
◆ onl1()
◆ onl2()
◆ phi() [1/2]
float CaloDetDescrElement::phi |
( |
| ) |
const |
|
inherited |
◆ phi() [2/2]
float CaloDetDescrElement::phi |
( |
| ) |
const |
|
inlineinherited |
◆ phi_raw() [1/2]
float CaloDetDescrElement::phi_raw |
( |
| ) |
const |
|
inherited |
◆ phi_raw() [2/2]
float CaloDetDescrElement::phi_raw |
( |
| ) |
const |
|
inlineinherited |
◆ print()
void CaloDetDescrElement::print |
( |
| ) |
const |
|
virtualinherited |
print element contents
Definition at line 75 of file CaloDetDescrElement.cxx.
77 std::cout << std::endl <<
" CaloDetDescrElement print: "
78 << std::endl << std::endl;
80 std::cout <<
"Eta = " <<
m_eta << std::endl;
81 std::cout <<
"Phi = " <<
m_phi << std::endl;
82 std::cout <<
"r = " <<
m_r << std::endl;
◆ propagateRaw()
void CaloDetDescrElement::propagateRaw |
( |
| ) |
|
|
protectedinherited |
◆ r() [1/2]
float CaloDetDescrElement::r |
( |
| ) |
const |
|
inherited |
◆ r() [2/2]
float CaloDetDescrElement::r |
( |
| ) |
const |
|
inlineinherited |
◆ r_raw() [1/2]
float CaloDetDescrElement::r_raw |
( |
| ) |
const |
|
inherited |
◆ r_raw() [2/2]
float CaloDetDescrElement::r_raw |
( |
| ) |
const |
|
inlineinherited |
◆ set_online()
◆ set_volume()
void CaloDetDescrElement::set_volume |
( |
double |
volume | ) |
|
|
inlineinherited |
◆ sinPhi()
float CaloDetDescrElement::sinPhi |
( |
| ) |
const |
|
inlineinherited |
◆ sinTh()
float CaloDetDescrElement::sinTh |
( |
| ) |
const |
|
inlineinherited |
◆ subcalo_hash()
◆ update()
Update this element's geometry from the given list of offline elements.
- Parameters
-
fromelts | List of offline elements. |
Definition at line 612 of file CaloDetectorElements.cxx.
615 if (fromelts.empty())
617 else if (fromelts.size() == 1)
◆ updateBE()
Update this element's geometry from a list of elements.
For elements in the barrel / endcap.
- Parameters
-
fromelts | List of offline elements. |
For elements in the barrel / endcap.
- Parameters
-
fromelts | List of offline elements. |
Primary variables are eta/phi plus r in the barrel and z in the endcap.
Definition at line 702 of file CaloDetectorElements.cxx.
705 bool is_barrel = (fromelts[0]->dr() > 0);
707 double eta_raw_min = 99999;
708 double eta_raw_max = -99999;
709 double phi_raw_min = 99999;
710 double phi_raw_max = -99999;
711 double rz_raw_min = 99999;
712 double rz_raw_max = -99999;
723 double rz, rz_raw, drz;
726 rz_raw = fromelt->r_raw();
731 rz_raw = fromelt->z_raw();
735 eta_raw_min =
std::min (eta_raw_min,
736 (
double)fromelt->eta_raw() - fromelt->deta()/2);
737 eta_raw_max =
std::max (eta_raw_max,
738 (
double)fromelt->eta_raw() + fromelt->deta()/2);
740 phi_raw_min =
std::min (phi_raw_min,
741 (
double)fromelt->phi_raw() - fromelt->dphi()/2);
742 phi_raw_max =
std::max (phi_raw_max,
743 (
double)fromelt->phi_raw() + fromelt->dphi()/2);
745 rz_raw_min =
std::min (rz_raw_min, rz_raw - drz / 2);
746 rz_raw_max =
std::max (rz_raw_min, rz_raw + drz / 2);
748 etasum += fromelt->deta() * fromelt->eta();
749 detasum += fromelt->deta();
751 phisum += fromelt->dphi() * fromelt->phi();
752 dphisum += fromelt->dphi();
757 volume += fromelt->volume();
762 double eta_raw = (eta_raw_min + eta_raw_max) / 2;
763 double phi_raw = (phi_raw_min + phi_raw_max) / 2;
764 double rz_raw = (rz_raw_min + rz_raw_max) / 2;
766 m_deta = eta_raw_max - eta_raw_min;
769 m_dphi = phi_raw_max - phi_raw_min;
777 double eta = etasum / detasum;
778 double phi = phisum / dphisum;
794 m_dr = rz_raw_max - rz_raw_min;
802 double z = rzsum / drzsum;
803 r =
z / std::sinh(
eta);
805 m_dz = rz_raw_max - rz_raw_min;
820 return StatusCode::SUCCESS;
◆ updateFCAL()
Update this element's geometry from a list of elements.
For elements in the FCAL.
- Parameters
-
fromelts | List of offline elements. |
For elements in the FCAL.
- Parameters
-
fromelts | List of offline elements. |
Primary variables are x/y/z.
Definition at line 832 of file CaloDetectorElements.cxx.
835 double x_raw_min = 99999;
836 double x_raw_max = -99999;
837 double y_raw_min = 99999;
838 double y_raw_max = -99999;
839 double z_raw_min = 99999;
840 double z_raw_max = -99999;
858 (
double)fromelt->x_raw() - fromelt->dx()/2);
860 (
double)fromelt->x_raw() + fromelt->dx()/2);
863 (
double)fromelt->y_raw() - fromelt->dy()/2);
865 (
double)fromelt->y_raw() + fromelt->dy()/2);
868 (
double)fromelt->z_raw() - fromelt->dz()/2);
870 (
double)fromelt->z_raw() + fromelt->dz()/2);
873 xsum += fromelt->dx() * fromelt->x();
874 dxsum += fromelt->dx();
876 ysum += fromelt->dy() * fromelt->y();
877 dysum += fromelt->dy();
879 zsum += fromelt->dz() * fromelt->z();
880 dzsum += fromelt->dz();
883 volume += fromelt->volume();
888 double x_raw = (x_raw_min + x_raw_max) / 2;
889 double y_raw = (y_raw_min + y_raw_max) / 2;
890 double z_raw = (z_raw_min + z_raw_max) / 2;
900 m_dx = x_raw_max - x_raw_min;
901 m_dy = y_raw_max - y_raw_min;
902 m_dz = z_raw_max - z_raw_min;
905 double x = xsum / dxsum;
906 double y = ysum / dysum;
907 double z = zsum / dzsum;
909 double x =
m_x_raw + fromelts[0]->x() - fromelts[0]->x_raw();
910 double y =
m_y_raw + fromelts[0]->y() - fromelts[0]->y_raw();
911 double z =
m_z_raw + fromelts[0]->z() - fromelts[0]->z_raw();
921 const double r = hypot (
x,
y);
922 const double inv_r = 1. /
r;
927 const double big_r = std::sqrt (
x*
x +
y*
y +
z*
z);
929 const double inv_big_r = 1. / big_r;
943 return StatusCode::SUCCESS;
◆ updateNull()
StatusCode CaloSuperCellDetectorElement::updateNull |
( |
| ) |
|
|
private |
Set this element's geometry to default values.
Definition at line 630 of file CaloDetectorElements.cxx.
656 return StatusCode::SUCCESS;
◆ updateSingle()
Copy this element's geometry from the given offline element.
Definition at line 664 of file CaloDetectorElements.cxx.
690 return StatusCode::SUCCESS;
◆ volume()
float CaloDetDescrElement::volume |
( |
| ) |
const |
|
inlineinherited |
◆ x() [1/2]
float CaloDetDescrElement::x |
( |
| ) |
const |
|
inherited |
◆ x() [2/2]
float CaloDetDescrElement::x |
( |
| ) |
const |
|
inlineinherited |
◆ x_raw() [1/2]
float CaloDetDescrElement::x_raw |
( |
| ) |
const |
|
inherited |
◆ x_raw() [2/2]
float CaloDetDescrElement::x_raw |
( |
| ) |
const |
|
inlineinherited |
◆ y() [1/2]
float CaloDetDescrElement::y |
( |
| ) |
const |
|
inherited |
◆ y() [2/2]
float CaloDetDescrElement::y |
( |
| ) |
const |
|
inlineinherited |
◆ y_raw() [1/2]
float CaloDetDescrElement::y_raw |
( |
| ) |
const |
|
inherited |
◆ y_raw() [2/2]
float CaloDetDescrElement::y_raw |
( |
| ) |
const |
|
inlineinherited |
◆ z() [1/2]
float CaloDetDescrElement::z |
( |
| ) |
const |
|
inherited |
◆ z() [2/2]
float CaloDetDescrElement::z |
( |
| ) |
const |
|
inlineinherited |
◆ z_raw() [1/2]
float CaloDetDescrElement::z_raw |
( |
| ) |
const |
|
inherited |
◆ z_raw() [2/2]
float CaloDetDescrElement::z_raw |
( |
| ) |
const |
|
inlineinherited |
◆ m_caloHash
◆ m_calosample
int CaloDetDescrElement::m_calosample |
|
inherited |
◆ m_cosPhi
float CaloDetDescrElement::m_cosPhi |
|
protectedinherited |
◆ m_cosTh
float CaloDetDescrElement::m_cosTh |
|
protectedinherited |
◆ m_descriptor
◆ m_deta
float CaloDetDescrElement::m_deta |
|
protectedinherited |
◆ m_dphi
float CaloDetDescrElement::m_dphi |
|
protectedinherited |
◆ m_dr
float CaloDetDescrElement::m_dr |
|
protectedinherited |
◆ m_dx
float CaloDetDescrElement::m_dx |
|
protectedinherited |
◆ m_dy
float CaloDetDescrElement::m_dy |
|
protectedinherited |
◆ m_dz
float CaloDetDescrElement::m_dz |
|
protectedinherited |
◆ m_eta
float CaloDetDescrElement::m_eta |
|
protectedinherited |
◆ m_eta_raw
float CaloDetDescrElement::m_eta_raw |
|
protectedinherited |
◆ m_hash_id
long long CaloDetDescrElement::m_hash_id |
|
inherited |
◆ m_identify
long long CaloDetDescrElement::m_identify |
|
inherited |
◆ m_onl1
◆ m_onl2
◆ m_phi
float CaloDetDescrElement::m_phi |
|
protectedinherited |
◆ m_phi_raw
float CaloDetDescrElement::m_phi_raw |
|
protectedinherited |
◆ m_r
float CaloDetDescrElement::m_r |
|
protectedinherited |
◆ m_r_raw
float CaloDetDescrElement::m_r_raw |
|
protectedinherited |
◆ m_sample
◆ m_sinPhi
float CaloDetDescrElement::m_sinPhi |
|
protectedinherited |
◆ m_sinTh
float CaloDetDescrElement::m_sinTh |
|
protectedinherited |
◆ m_volume
float CaloDetDescrElement::m_volume |
|
protectedinherited |
◆ m_x
float CaloDetDescrElement::m_x |
|
protectedinherited |
◆ m_x_raw
float CaloDetDescrElement::m_x_raw |
|
protectedinherited |
◆ m_y
float CaloDetDescrElement::m_y |
|
protectedinherited |
◆ m_y_raw
float CaloDetDescrElement::m_y_raw |
|
protectedinherited |
◆ m_z
float CaloDetDescrElement::m_z |
|
protectedinherited |
◆ m_z_raw
float CaloDetDescrElement::m_z_raw |
|
protectedinherited |
The documentation for this class was generated from the following files:
float deta() const
cell deta
float cosPhi() const
for fast px py pz computation
IdentifierHash onl2() const
cell online identifier 2
float m_cosTh
this one is cached for algorithm working in transverse Energy
CaloCell_ID::SUBCALO getSubCalo() const
get subcalo
float m_dphi
cylindric coordinates : delta phi
bool is_lar_fcal() const
descriptor belongs to FCAL
float m_z_raw
cartesian coordinates : Z raw
StatusCode updateNull()
Set this element's geometry to default values.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
float m_eta_raw
cylindric coordinates : eta_raw
StatusCode updateBE(const std::vector< const CaloDetDescrElement * > &fromelts)
Update this element's geometry from a list of elements.
StatusCode updateSingle(const CaloDetDescrElement *fromelt)
Copy this element's geometry from the given offline element.
float m_volume
cell volume
float m_sinPhi
cache to allow fast px py pz computation
bool is_lar_hec() const
descriptor belongs to HEC
float m_phi_raw
cylindric coordinates : phi_raw
float m_phi
cylindric coordinates : phi
float m_dr
cylindric coordinates : delta r
float m_dz
cartesian coordinates : delta Z
bool is_lar_em_endcap_inner() const
descriptor belongs to the inner wheel of EM end cap
float eta_raw() const
cell eta_raw
float m_z
cartesian coordinates : Z
CaloCell_ID::SUBCALO getSubCalo() const
cell subcalo
IdentifierHash onl1() const
cell online identifier 1
IdentifierHash caloCellMin() const
minimal hash identifier for calo cells in the region
float m_dy
cartesian coordinates : delta Y
const CaloCell_Base_ID * get_calo_helper() const
get Calo Cell ID helper
CaloCell_ID::CaloSample m_sample
@bried the sampling for this element
IdentifierHash calo_hash() const
cell calo hash
bool is_lar_em_endcap_outer() const
descriptor belongs to the outer wheel of EM end cap
StatusCode updateFCAL(const std::vector< const CaloDetDescrElement * > &fromelts)
Update this element's geometry from a list of elements.
float m_y_raw
cartesian coordinates : Y raw
float m_x_raw
cartesian coordinates : X raw
const CaloDetDescriptor * m_descriptor
IdentifierHash m_onl1
Tiles need 2 online hashed id.
float m_r_raw
cylindric coordinates : r_raw
float m_dx
cartesian coordinates : delta X
float m_r
cylindric coordinates : r
IdentifierHash m_onl2
Tiles need 2 online hashed id.
bool is_lar_em() const
descriptor belongs to EM calorimeter
bool is_lar_em_barrel() const
descriptor belongs to EM barrel
float m_cosPhi
cache to allow fast px py pz computation
float volume() const
cell volume
bool is_lar_em_endcap() const
descriptor belongs to EM end cap
float x_raw() const
cell x_raw
float z_raw() const
cell z_raw
float r_raw() const
cell r_raw
float m_x
cartesian coordinates : X
float dphi() const
cell dphi
virtual Identifier customID() const
float cosTh() const
for fast px py pz computation
const CaloDetDescriptor * descriptor() const
cell descriptor
IdentifierHash m_caloHash
float m_y
cartesian coordinates : Y
float eta() const
cell eta
float phi() const
cell phi
float sinTh() const
for algorithm working in transverse Energy
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
float y_raw() const
cell y_raw
float sinPhi() const
for fast px py pz computation
float m_deta
cylindric coordinates : delta eta
float m_eta
cylindric coordinates : eta
bool is_tile() const
descriptor belongs to Tile
IdentifierHash subcalo_hash() const
cell subcalo hash
CaloDetDescrElement()=delete
Constructor, hidden.
float m_sinTh
this one is cached for algorithm working in transverse Energy
float phi_raw() const
cell phi_raw