ATLAS Offline Software
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CaloSuperCellDetectorElement Class Reference

Element to represent a SuperCell. More...

#include <CaloDetectorElements.h>

Inheritance diagram for CaloSuperCellDetectorElement:
Collaboration diagram for CaloSuperCellDetectorElement:

Public Member Functions

 CaloSuperCellDetectorElement (const IdentifierHash subcaloHash, const CaloDetDescriptor *descriptor)
 Constructor, initializes base class constructor parameters with default values. More...
 
StatusCode update (const std::vector< const CaloDetDescrElement * > &fromelts)
 Update this element's geometry from the given list of offline elements. More...
 
float eta () const
 cell eta More...
 
float eta () const
 cell eta More...
 
float phi () const
 cell phi More...
 
float phi () const
 cell phi More...
 
float r () const
 cell r More...
 
float r () const
 cell r More...
 
float eta_raw () const
 cell eta_raw More...
 
float eta_raw () const
 cell eta_raw More...
 
float phi_raw () const
 cell phi_raw More...
 
float phi_raw () const
 cell phi_raw More...
 
float r_raw () const
 cell r_raw More...
 
float r_raw () const
 cell r_raw More...
 
float dphi () const
 cell dphi More...
 
float dphi () const
 cell dphi More...
 
float deta () const
 cell deta More...
 
float deta () const
 cell deta More...
 
float dr () const
 cell dr More...
 
float dr () const
 cell dr More...
 
float x () const
 cell x More...
 
float x () const
 cell x More...
 
float y () const
 cell y More...
 
float y () const
 cell y More...
 
float z () const
 cell z More...
 
float z () const
 cell z More...
 
float x_raw () const
 cell x_raw More...
 
float x_raw () const
 cell x_raw More...
 
float y_raw () const
 cell y_raw More...
 
float y_raw () const
 cell y_raw More...
 
float z_raw () const
 cell z_raw More...
 
float z_raw () const
 cell z_raw More...
 
float dx () const
 cell dx More...
 
float dx () const
 cell dx More...
 
float dy () const
 cell dy More...
 
float dy () const
 cell dy More...
 
float dz () const
 cell dz More...
 
float dz () const
 cell dz More...
 
float volume () const
 cell volume More...
 
float sinTh () const
 for algorithm working in transverse Energy More...
 
float cosTh () const
 for fast px py pz computation More...
 
float cotTh () const
 for fast px py pz computation More...
 
float sinPhi () const
 for fast px py pz computation More...
 
float cosPhi () const
 for fast px py pz computation More...
 
void set_volume (double volume)
 set cell volume More...
 
void set_online (const IdentifierHash onl1, const IdentifierHash onl2)
 set cell online identifiers (Tile) More...
 
Identifier identify () const override final
 cell identifier More...
 
Identifier identify () const
 cell identifier More...
 
IdentifierHash onl1 () const
 cell online identifier 1 More...
 
IdentifierHash onl2 () const
 cell online identifier 2 More...
 
IdentifierHash calo_hash () const
 cell calo hash More...
 
unsigned long long calo_hash () const
 
IdentifierHash subcalo_hash () const
 cell subcalo hash More...
 
IdentifierHash identifyHash () const override final
 cell subcalo hash same as subcalo_hash(), but kept for backward compatibility More...
 
const CaloDetDescriptordescriptor () const
 cell descriptor More...
 
virtual void print () const
 print element contents More...
 
CaloCell_ID::CaloSample getSampling () const
 cell sampling More...
 
int getSampling () const
 
CaloCell_ID::SUBCALO getSubCalo () const
 cell subcalo More...
 
bool is_lar_em () const
 cell belongs to EM calorimeter More...
 
bool is_lar_em_barrel () const
 cell belongs to EM barrel More...
 
bool is_lar_em_endcap () const
 cell belongs to EM end cap More...
 
bool is_lar_em_endcap_inner () const
 cell belongs to the inner wheel of EM end cap More...
 
bool is_lar_em_endcap_outer () const
 cell belongs to the outer wheel of EM end cap More...
 
bool is_lar_hec () const
 cell belongs to HEC More...
 
bool is_lar_fcal () const
 cell belongs to FCAL More...
 
bool is_tile () const
 cell belongs to Tile More...
 
virtual int getLayer () const
 cell layer More...
 
virtual const IdHelpergetHelper () const
 

Public Attributes

long long m_identify
 
long long m_hash_id
 
int m_calosample
 

Protected Member Functions

void propagateRaw ()
 In test beam configurations force XXX=XXX_RAW. More...
 
virtual Identifier customID () const
 

Protected Attributes

float m_eta
 cylindric coordinates : eta More...
 
float m_phi
 cylindric coordinates : phi More...
 
float m_sinTh
 this one is cached for algorithm working in transverse Energy More...
 
float m_cosTh
 this one is cached for algorithm working in transverse Energy More...
 
float m_deta
 cylindric coordinates : delta eta More...
 
float m_dphi
 cylindric coordinates : delta phi More...
 
float m_volume
 cell volume More...
 
float m_sinPhi
 cache to allow fast px py pz computation More...
 
float m_cosPhi
 cache to allow fast px py pz computation More...
 
float m_r
 cylindric coordinates : r More...
 
float m_eta_raw
 cylindric coordinates : eta_raw More...
 
float m_phi_raw
 cylindric coordinates : phi_raw More...
 
float m_r_raw
 cylindric coordinates : r_raw More...
 
float m_dr
 cylindric coordinates : delta r More...
 
float m_x
 cartesian coordinates : X More...
 
float m_y
 cartesian coordinates : Y More...
 
float m_z
 cartesian coordinates : Z More...
 
float m_x_raw
 cartesian coordinates : X raw More...
 
float m_y_raw
 cartesian coordinates : Y raw More...
 
float m_z_raw
 cartesian coordinates : Z raw More...
 
float m_dx
 cartesian coordinates : delta X More...
 
float m_dy
 cartesian coordinates : delta Y More...
 
float m_dz
 cartesian coordinates : delta Z More...
 
CaloCell_ID::CaloSample m_sample =CaloCell_ID::Unknown
 @bried the sampling for this element More...
 
IdentifierHash m_onl1
 Tiles need 2 online hashed id. More...
 
IdentifierHash m_onl2
 Tiles need 2 online hashed id. More...
 

Private Member Functions

StatusCode updateNull ()
 Set this element's geometry to default values. More...
 
StatusCode updateSingle (const CaloDetDescrElement *fromelt)
 Copy this element's geometry from the given offline element. More...
 
StatusCode updateBE (const std::vector< const CaloDetDescrElement * > &fromelts)
 Update this element's geometry from a list of elements. More...
 
StatusCode updateFCAL (const std::vector< const CaloDetDescrElement * > &fromelts)
 Update this element's geometry from a list of elements. More...
 

Private Attributes

const CaloDetDescriptorm_descriptor
 
IdentifierHash m_caloHash
 

Detailed Description

Element to represent a SuperCell.

Initializes its geometry from the corresponding set of offline cells.

Definition at line 421 of file CaloDetectorElements.h.

Constructor & Destructor Documentation

◆ CaloSuperCellDetectorElement()

CaloSuperCellDetectorElement::CaloSuperCellDetectorElement ( const IdentifierHash  subcaloHash,
const CaloDetDescriptor descriptor 
)
inline

Constructor, initializes base class constructor parameters with default values.

Parameters
subcaloHashThe hash code of this element, within the subcalo.
descriptorDescriptor for this element.

Definition at line 431 of file CaloDetectorElements.h.

433  : CaloDetDescrElement (subcaloHash, 0, 0, descriptor) {}

Member Function Documentation

◆ calo_hash() [1/2]

unsigned long long CaloDetDescrElement::calo_hash ( ) const
inherited

◆ calo_hash() [2/2]

unsigned long long CaloDetDescrElement::calo_hash ( ) const
inlineinherited

cell calo hash

Definition at line 412 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

413 {
414  return m_caloHash;
415 }

◆ cosPhi()

float CaloDetDescrElement::cosPhi ( ) const
inlineinherited

for fast px py pz computation

Definition at line 391 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

392 { return m_cosPhi;}

◆ cosTh()

float CaloDetDescrElement::cosTh ( ) const
inlineinherited

for fast px py pz computation

Definition at line 385 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

386 { return m_cosTh;}

◆ cotTh()

float CaloDetDescrElement::cotTh ( ) const
inlineinherited

for fast px py pz computation

Definition at line 387 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

388 { return m_cosTh/m_sinTh;}

◆ customID()

Identifier CaloDetDescrElement::customID ( ) const
protectedvirtualinherited

Reimplemented in MbtsDetectorElement.

Definition at line 165 of file CaloDetDescrElement.cxx.

166 {
167  return {};
168 }

◆ descriptor()

const CaloDetDescriptor * CaloDetDescrElement::descriptor ( ) const
inlineinherited

cell descriptor

Definition at line 428 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

429 { return m_descriptor; }

◆ deta() [1/2]

float CaloDetDescrElement::deta ( ) const
inherited

cell deta

◆ deta() [2/2]

float CaloDetDescrElement::deta ( ) const
inlineinherited

cell deta

Definition at line 356 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

357 { return m_deta;}

◆ dphi() [1/2]

float CaloDetDescrElement::dphi ( ) const
inherited

cell dphi

◆ dphi() [2/2]

float CaloDetDescrElement::dphi ( ) const
inlineinherited

cell dphi

Definition at line 358 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

359 { return m_dphi;}

◆ dr() [1/2]

float CaloDetDescrElement::dr ( ) const
inherited

cell dr

◆ dr() [2/2]

float CaloDetDescrElement::dr ( ) const
inlineinherited

cell dr

Definition at line 360 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

361 { return m_dr;}

◆ dx() [1/2]

float CaloDetDescrElement::dx ( ) const
inherited

cell dx

◆ dx() [2/2]

float CaloDetDescrElement::dx ( ) const
inlineinherited

cell dx

Definition at line 375 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

376 { return m_dx;}

◆ dy() [1/2]

float CaloDetDescrElement::dy ( ) const
inherited

cell dy

◆ dy() [2/2]

float CaloDetDescrElement::dy ( ) const
inlineinherited

cell dy

Definition at line 377 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

378 { return m_dy;}

◆ dz() [1/2]

float CaloDetDescrElement::dz ( ) const
inherited

cell dz

◆ dz() [2/2]

float CaloDetDescrElement::dz ( ) const
inlineinherited

cell dz

Definition at line 379 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

380 { return m_dz;}

◆ eta() [1/2]

float CaloDetDescrElement::eta ( ) const
inherited

cell eta

◆ eta() [2/2]

float CaloDetDescrElement::eta ( ) const
inlineinherited

cell eta

Definition at line 344 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

345 { return m_eta;}

◆ eta_raw() [1/2]

float CaloDetDescrElement::eta_raw ( ) const
inherited

cell eta_raw

◆ eta_raw() [2/2]

float CaloDetDescrElement::eta_raw ( ) const
inlineinherited

cell eta_raw

Definition at line 350 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

351 { return m_eta_raw;}

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

Definition at line 18 of file Identifiable.cxx.

18  {
19  return (nullptr);
20 }

◆ getLayer()

int CaloDetDescrElement::getLayer ( ) const
virtualinherited

cell layer

Reimplemented in FCALDetectorElement, HECDetectorElement, EMECDetectorElement, and EMBDetectorElement.

Definition at line 85 of file CaloDetDescrElement.cxx.

86 {
87  return 0;
88 }

◆ getSampling() [1/2]

int CaloDetDescrElement::getSampling ( ) const
inherited

◆ getSampling() [2/2]

int CaloDetDescrElement::getSampling ( ) const
inlineinherited

cell sampling

Definition at line 395 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

396 {
397  return m_sample;
398 }

◆ getSubCalo()

CaloCell_ID::SUBCALO CaloDetDescrElement::getSubCalo ( ) const
inlineinherited

cell subcalo

Definition at line 433 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

434 {
435  if(m_descriptor)
436  return m_descriptor->getSubCalo();
437  else
438  return CaloCell_ID::NOT_VALID;
439 }

◆ identify() [1/2]

Identifier CaloDetDescrElement::identify ( ) const
virtualinherited

cell identifier

Implements Identifiable.

◆ identify() [2/2]

Identifier CaloDetDescrElement::identify ( ) const
inlinefinaloverridevirtualinherited

cell identifier

Implements Identifiable.

Definition at line 64 of file CaloDetDescrElement.cxx.

65 {
66  if(m_descriptor){
67  return (m_descriptor->get_calo_helper())->cell_id(calo_hash());
68  }
69  else{ // MBTS
70  return (customID());
71  }
72 }

◆ identifyHash()

IdentifierHash CaloDetDescrElement::identifyHash ( ) const
inlinefinaloverridevirtualinherited

cell subcalo hash same as subcalo_hash(), but kept for backward compatibility

Reimplemented from Identifiable.

Definition at line 424 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

425 { return subcalo_hash(); }

◆ is_lar_em()

bool CaloDetDescrElement::is_lar_em ( ) const
inherited

cell belongs to EM calorimeter

Definition at line 90 of file CaloDetDescrElement.cxx.

91 {
92  if(m_descriptor){
93  return m_descriptor->is_lar_em();
94  }
95  return false;
96 }

◆ is_lar_em_barrel()

bool CaloDetDescrElement::is_lar_em_barrel ( ) const
inherited

cell belongs to EM barrel

Definition at line 98 of file CaloDetDescrElement.cxx.

99 {
100  if(m_descriptor){
101  return m_descriptor->is_lar_em_barrel();
102  }
103  return false;
104 }

◆ is_lar_em_endcap()

bool CaloDetDescrElement::is_lar_em_endcap ( ) const
inherited

cell belongs to EM end cap

Definition at line 106 of file CaloDetDescrElement.cxx.

107 {
108  if(m_descriptor){
109  return m_descriptor->is_lar_em_endcap();
110  }
111  return false;
112 }

◆ is_lar_em_endcap_inner()

bool CaloDetDescrElement::is_lar_em_endcap_inner ( ) const
inherited

cell belongs to the inner wheel of EM end cap

Definition at line 114 of file CaloDetDescrElement.cxx.

115 {
116  if(m_descriptor){
118  }
119  return false;
120 }

◆ is_lar_em_endcap_outer()

bool CaloDetDescrElement::is_lar_em_endcap_outer ( ) const
inherited

cell belongs to the outer wheel of EM end cap

Definition at line 122 of file CaloDetDescrElement.cxx.

123 {
124  if(m_descriptor){
126  }
127  return false;
128 }

◆ is_lar_fcal()

bool CaloDetDescrElement::is_lar_fcal ( ) const
inherited

cell belongs to FCAL

Definition at line 138 of file CaloDetDescrElement.cxx.

139 {
140  if(m_descriptor){
141  return m_descriptor->is_lar_fcal();
142  }
143  return false;
144 }

◆ is_lar_hec()

bool CaloDetDescrElement::is_lar_hec ( ) const
inherited

cell belongs to HEC

Definition at line 130 of file CaloDetDescrElement.cxx.

131 {
132  if(m_descriptor){
133  return m_descriptor->is_lar_hec();
134  }
135  return false;
136 }

◆ is_tile()

bool CaloDetDescrElement::is_tile ( ) const
inlineinherited

cell belongs to Tile

Definition at line 442 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

443 {
444  if(m_descriptor)
445  return m_descriptor->is_tile();
446  else
447  return false;
448 }

◆ onl1()

IdentifierHash CaloDetDescrElement::onl1 ( ) const
inlineinherited

cell online identifier 1

Definition at line 404 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

405 { return m_onl1; }

◆ onl2()

IdentifierHash CaloDetDescrElement::onl2 ( ) const
inlineinherited

cell online identifier 2

Definition at line 408 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

409 { return m_onl2; }

◆ phi() [1/2]

float CaloDetDescrElement::phi ( ) const
inherited

cell phi

◆ phi() [2/2]

float CaloDetDescrElement::phi ( ) const
inlineinherited

cell phi

Definition at line 346 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

347 { return m_phi;}

◆ phi_raw() [1/2]

float CaloDetDescrElement::phi_raw ( ) const
inherited

cell phi_raw

◆ phi_raw() [2/2]

float CaloDetDescrElement::phi_raw ( ) const
inlineinherited

cell phi_raw

Definition at line 352 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

353 { return m_phi_raw;}

◆ print()

void CaloDetDescrElement::print ( ) const
virtualinherited

print element contents

Definition at line 75 of file CaloDetDescrElement.cxx.

76 {
77  std::cout << std::endl << " CaloDetDescrElement print: "
78  << std::endl << std::endl;
79 
80  std::cout << "Eta = " << m_eta << std::endl;
81  std::cout << "Phi = " << m_phi << std::endl;
82  std::cout << "r = " << m_r << std::endl;
83 }

◆ propagateRaw()

void CaloDetDescrElement::propagateRaw ( )
protectedinherited

In test beam configurations force XXX=XXX_RAW.

Definition at line 154 of file CaloDetDescrElement.cxx.

155 {
156  m_x = m_x_raw;
157  m_y = m_y_raw;
158  m_z = m_z_raw;
159 
160  m_eta = m_eta_raw;
161  m_phi = m_phi_raw;
162  m_r = m_r_raw;
163 }

◆ r() [1/2]

float CaloDetDescrElement::r ( ) const
inherited

cell r

◆ r() [2/2]

float CaloDetDescrElement::r ( ) const
inlineinherited

cell r

Definition at line 348 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

349 { return m_r;}

◆ r_raw() [1/2]

float CaloDetDescrElement::r_raw ( ) const
inherited

cell r_raw

◆ r_raw() [2/2]

float CaloDetDescrElement::r_raw ( ) const
inlineinherited

cell r_raw

Definition at line 354 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

355 { return m_r_raw;}

◆ set_online()

void CaloDetDescrElement::set_online ( const IdentifierHash  onl1,
const IdentifierHash  onl2 
)
inherited

set cell online identifiers (Tile)

Definition at line 147 of file CaloDetDescrElement.cxx.

149 {
150  m_onl1 = onl1;
151  m_onl2 = onl2;
152 }

◆ set_volume()

void CaloDetDescrElement::set_volume ( double  volume)
inlineinherited

set cell volume

Definition at line 400 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

401 { m_volume = static_cast<float> (volume);}

◆ sinPhi()

float CaloDetDescrElement::sinPhi ( ) const
inlineinherited

for fast px py pz computation

Definition at line 389 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

390 { return m_sinPhi;}

◆ sinTh()

float CaloDetDescrElement::sinTh ( ) const
inlineinherited

for algorithm working in transverse Energy

Definition at line 383 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

384 { return m_sinTh;}

◆ subcalo_hash()

IdentifierHash CaloDetDescrElement::subcalo_hash ( ) const
inlineinherited

cell subcalo hash

Definition at line 418 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ update()

StatusCode CaloSuperCellDetectorElement::update ( const std::vector< const CaloDetDescrElement * > &  fromelts)

Update this element's geometry from the given list of offline elements.

Parameters
fromeltsList of offline elements.

Definition at line 612 of file CaloDetectorElements.cxx.

614 {
615  if (fromelts.empty())
616  return updateNull();
617  else if (fromelts.size() == 1)
618  return updateSingle (fromelts[0]);
619  else if (fromelts[0]->getSubCalo() == CaloCell_Base_ID::LARFCAL)
620  return updateFCAL(fromelts);
621  else
622  return updateBE (fromelts);
623 }

◆ updateBE()

StatusCode CaloSuperCellDetectorElement::updateBE ( const std::vector< const CaloDetDescrElement * > &  fromelts)
private

Update this element's geometry from a list of elements.

For elements in the barrel / endcap.

Parameters
fromeltsList of offline elements.

For elements in the barrel / endcap.

Parameters
fromeltsList 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.

704 {
705  bool is_barrel = (fromelts[0]->dr() > 0);
706 
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;
713  double volume = 0;
714 
715  double etasum = 0;
716  double detasum = 0;
717  double phisum = 0;
718  double dphisum = 0;
719  double rzsum = 0;
720  double drzsum = 0;
721 
722  for (const CaloDetDescrElement* fromelt : fromelts) {
723  double rz, rz_raw, drz;
724  if (is_barrel) {
725  rz = fromelt->r();
726  rz_raw = fromelt->r_raw();
727  drz = fromelt->dr();
728  }
729  else {
730  rz = fromelt->z();
731  rz_raw = fromelt->z_raw();
732  drz = fromelt->dz();
733  }
734 
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);
739 
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);
744 
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);
747 
748  etasum += fromelt->deta() * fromelt->eta();
749  detasum += fromelt->deta();
750 
751  phisum += fromelt->dphi() * fromelt->phi();
752  dphisum += fromelt->dphi();
753 
754  rzsum += drz * rz;
755  drzsum += drz;
756 
757  volume += fromelt->volume();
758  }
759 
760  m_volume = volume;
761 
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;
765 
766  m_deta = eta_raw_max - eta_raw_min;
767  m_eta_raw = eta_raw;
768 
769  m_dphi = phi_raw_max - phi_raw_min;
770  m_phi_raw = phi_raw;
771 
772  m_dx = 0;
773  m_dy = 0;
774 
775  m_volume = volume;
776 
777  double eta = etasum / detasum;
778  double phi = phisum / dphisum;
779 
780  m_eta = eta;
781  m_phi = phi;
782 
783  m_cosPhi = std::cos(phi);
784  m_sinPhi = std::sin(phi);
785  m_sinTh = 1/std::cosh(eta);
786  m_cosTh = std::tanh(eta);
787 
788  double r = 0;
789  double r_raw = 0;
790  if (is_barrel) {
791  r_raw = rz_raw;
792  r = rzsum / drzsum;
793 
794  m_dr = rz_raw_max - rz_raw_min;
795  m_dz = 0;
796 
797  m_z_raw = rz_raw * std::sinh(eta_raw);
798  m_z = r * sinh(eta);
799  }
800  else {
801  r_raw = rz_raw / std::sinh(eta_raw);
802  double z = rzsum / drzsum;
803  r = z / std::sinh(eta);
804 
805  m_dz = rz_raw_max - rz_raw_min;
806  m_dr = 0;
807 
808  m_z_raw = rz_raw;
809  m_z = z;
810  }
811 
814  m_r_raw = r_raw;
815 
816  m_x = r * std::cos(phi);
817  m_y = r * std::sin(phi);
818  m_r = r;
819 
820  return StatusCode::SUCCESS;
821 }

◆ updateFCAL()

StatusCode CaloSuperCellDetectorElement::updateFCAL ( const std::vector< const CaloDetDescrElement * > &  fromelts)
private

Update this element's geometry from a list of elements.

For elements in the FCAL.

Parameters
fromeltsList of offline elements.

For elements in the FCAL.

Parameters
fromeltsList of offline elements.

Primary variables are x/y/z.

Definition at line 832 of file CaloDetectorElements.cxx.

834 {
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;
841  double volume = 0;
842 
843 #if 0
844  double xsum = 0;
845  double dxsum = 0;
846  double ysum = 0;
847  double dysum = 0;
848  double zsum = 0;
849  double dzsum = 0;
850 #endif
851 
852  // Set the supercell center to be the geometric center of the
853  // offline cells. Warning: the fcal supercells are asymmetric;
854  // this isn't the same as the COG!
855 
856  for (const CaloDetDescrElement* fromelt : fromelts) {
857  x_raw_min = std::min (x_raw_min,
858  (double)fromelt->x_raw() - fromelt->dx()/2);
859  x_raw_max = std::max (x_raw_max,
860  (double)fromelt->x_raw() + fromelt->dx()/2);
861 
862  y_raw_min = std::min (y_raw_min,
863  (double)fromelt->y_raw() - fromelt->dy()/2);
864  y_raw_max = std::max (y_raw_max,
865  (double)fromelt->y_raw() + fromelt->dy()/2);
866 
867  z_raw_min = std::min (z_raw_min,
868  (double)fromelt->z_raw() - fromelt->dz()/2);
869  z_raw_max = std::max (z_raw_max,
870  (double)fromelt->z_raw() + fromelt->dz()/2);
871 
872 #if 0
873  xsum += fromelt->dx() * fromelt->x();
874  dxsum += fromelt->dx();
875 
876  ysum += fromelt->dy() * fromelt->y();
877  dysum += fromelt->dy();
878 
879  zsum += fromelt->dz() * fromelt->z();
880  dzsum += fromelt->dz();
881 #endif
882 
883  volume += fromelt->volume();
884  }
885 
886  m_volume = volume;
887 
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;
891 
892  m_x_raw = x_raw;
893  m_y_raw = y_raw;
894  m_z_raw = z_raw;
895 
896  m_deta = 0;
897  m_dphi = 0;
898  m_dr = 0;
899 
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;
903 
904 #if 0
905  double x = xsum / dxsum;
906  double y = ysum / dysum;
907  double z = zsum / dzsum;
908 #endif
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();
912 
913  m_x = x;
914  m_y = y;
915  m_z = z;
916 
917  m_phi_raw = std::atan2 (y_raw, x_raw);
918  m_phi = std::atan2 (y, x);
919 
920  const double r_raw = hypot (x_raw, y_raw);
921  const double r = hypot (x, y);
922  const double inv_r = 1. / r;
923 
924  m_r_raw = r_raw;
925  m_r = r;
926 
927  const double big_r = std::sqrt (x*x + y*y + z*z);
928  const double big_r_raw = std::sqrt (x_raw*x_raw + y_raw*y_raw + z_raw*z_raw);
929  const double inv_big_r = 1. / big_r;
930 
931  m_eta = -std::log ((big_r - z) * inv_r);
932  m_eta_raw = -std::log ((big_r_raw - z_raw) / r_raw);
933  m_sinTh = r * inv_big_r;
934  m_cosTh = z * inv_big_r;
935  m_cosPhi = x * inv_r;
936  m_sinPhi = y * inv_r;
937 
938  if (m_r>0.) {
939  // estimate deta,dphi of Fcal cells
940  fcal_deta_dphi (*this, m_deta, m_dphi);
941  }
942 
943  return StatusCode::SUCCESS;
944 }

◆ updateNull()

StatusCode CaloSuperCellDetectorElement::updateNull ( )
private

Set this element's geometry to default values.

Definition at line 630 of file CaloDetectorElements.cxx.

631 {
632  m_eta = 0;
633  m_phi = 0;
634  m_sinTh = 0;
635  m_cosTh = 0;
636  m_deta = 0;
637  m_dphi = 0;
638  m_volume = 0;
639  m_sinPhi = 0;
640  m_cosPhi = 0;
641  m_r = 0;
642  m_eta_raw = 0;
643  m_phi_raw = 0;
644  m_r_raw = 0;
645  m_dr = 0;
646  m_x = 0;
647  m_y = 0;
648  m_z = 0;
649  m_x_raw = 0;
650  m_y_raw = 0;
651  m_z_raw = 0;
652  m_dx = 0;
653  m_dy = 0;
654  m_dz = 0;
655 
656  return StatusCode::SUCCESS;
657 }

◆ updateSingle()

StatusCode CaloSuperCellDetectorElement::updateSingle ( const CaloDetDescrElement fromelt)
private

Copy this element's geometry from the given offline element.

Definition at line 664 of file CaloDetectorElements.cxx.

665 {
666  m_eta = fromelt->eta();
667  m_phi = fromelt->phi();
668  m_sinTh = fromelt->sinTh();
669  m_cosTh = fromelt->cosTh();
670  m_deta = fromelt->deta();
671  m_dphi = fromelt->dphi();
672  m_volume = fromelt->volume();
673  m_sinPhi = fromelt->cosPhi();
674  m_cosPhi = fromelt->sinPhi();
675  m_r = fromelt->r();
676  m_eta_raw = fromelt->eta_raw();
677  m_phi_raw = fromelt->phi_raw();
678  m_r_raw = fromelt->r_raw();
679  m_dr = fromelt->dr();
680  m_x = fromelt->x();
681  m_y = fromelt->y();
682  m_z = fromelt->z();
683  m_x_raw = fromelt->x_raw();
684  m_y_raw = fromelt->y_raw();
685  m_z_raw = fromelt->z_raw();
686  m_dx = fromelt->dx();
687  m_dy = fromelt->dy();
688  m_dz = fromelt->dz();
689 
690  return StatusCode::SUCCESS;
691 }

◆ volume()

float CaloDetDescrElement::volume ( ) const
inlineinherited

cell volume

Definition at line 381 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

382 { return m_volume;}

◆ x() [1/2]

float CaloDetDescrElement::x ( ) const
inherited

cell x

◆ x() [2/2]

float CaloDetDescrElement::x ( ) const
inlineinherited

cell x

Definition at line 363 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

364 { return m_x;}

◆ x_raw() [1/2]

float CaloDetDescrElement::x_raw ( ) const
inherited

cell x_raw

◆ x_raw() [2/2]

float CaloDetDescrElement::x_raw ( ) const
inlineinherited

cell x_raw

Definition at line 369 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

370 { return m_x_raw;}

◆ y() [1/2]

float CaloDetDescrElement::y ( ) const
inherited

cell y

◆ y() [2/2]

float CaloDetDescrElement::y ( ) const
inlineinherited

cell y

Definition at line 365 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

366 { return m_y;}

◆ y_raw() [1/2]

float CaloDetDescrElement::y_raw ( ) const
inherited

cell y_raw

◆ y_raw() [2/2]

float CaloDetDescrElement::y_raw ( ) const
inlineinherited

cell y_raw

Definition at line 371 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

372 { return m_y_raw;}

◆ z() [1/2]

float CaloDetDescrElement::z ( ) const
inherited

cell z

◆ z() [2/2]

float CaloDetDescrElement::z ( ) const
inlineinherited

cell z

Definition at line 367 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

368 { return m_z;}

◆ z_raw() [1/2]

float CaloDetDescrElement::z_raw ( ) const
inherited

cell z_raw

◆ z_raw() [2/2]

float CaloDetDescrElement::z_raw ( ) const
inlineinherited

cell z_raw

Definition at line 373 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

374 { return m_z_raw;}

Member Data Documentation

◆ m_caloHash

IdentifierHash CaloDetDescrElement::m_caloHash
privateinherited

◆ m_calosample

int CaloDetDescrElement::m_calosample
inherited

◆ m_cosPhi

float CaloDetDescrElement::m_cosPhi
protectedinherited

cache to allow fast px py pz computation

Definition at line 279 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_cosTh

float CaloDetDescrElement::m_cosTh
protectedinherited

this one is cached for algorithm working in transverse Energy

Definition at line 260 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_descriptor

const CaloDetDescriptor* CaloDetDescrElement::m_descriptor
privateinherited

◆ m_deta

float CaloDetDescrElement::m_deta
protectedinherited

cylindric coordinates : delta eta

Definition at line 264 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_dphi

float CaloDetDescrElement::m_dphi
protectedinherited

cylindric coordinates : delta phi

Definition at line 267 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_dr

float CaloDetDescrElement::m_dr
protectedinherited

cylindric coordinates : delta r

Definition at line 295 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_dx

float CaloDetDescrElement::m_dx
protectedinherited

cartesian coordinates : delta X

Definition at line 317 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_dy

float CaloDetDescrElement::m_dy
protectedinherited

cartesian coordinates : delta Y

Definition at line 320 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_dz

float CaloDetDescrElement::m_dz
protectedinherited

cartesian coordinates : delta Z

Definition at line 323 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_eta

float CaloDetDescrElement::m_eta
protectedinherited

cylindric coordinates : eta

Definition at line 249 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_eta_raw

float CaloDetDescrElement::m_eta_raw
protectedinherited

cylindric coordinates : eta_raw

Definition at line 286 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_hash_id

long long CaloDetDescrElement::m_hash_id
inherited

◆ m_identify

long long CaloDetDescrElement::m_identify
inherited

◆ m_onl1

IdentifierHash CaloDetDescrElement::m_onl1
protectedinherited

Tiles need 2 online hashed id.

Definition at line 331 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_onl2

IdentifierHash CaloDetDescrElement::m_onl2
protectedinherited

Tiles need 2 online hashed id.

Definition at line 334 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_phi

float CaloDetDescrElement::m_phi
protectedinherited

cylindric coordinates : phi

Definition at line 252 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_phi_raw

float CaloDetDescrElement::m_phi_raw
protectedinherited

cylindric coordinates : phi_raw

Definition at line 289 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_r

float CaloDetDescrElement::m_r
protectedinherited

cylindric coordinates : r

Definition at line 283 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_r_raw

float CaloDetDescrElement::m_r_raw
protectedinherited

cylindric coordinates : r_raw

Definition at line 292 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_sample

CaloCell_ID::CaloSample CaloDetDescrElement::m_sample =CaloCell_ID::Unknown
protectedinherited

@bried the sampling for this element

Definition at line 327 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_sinPhi

float CaloDetDescrElement::m_sinPhi
protectedinherited

cache to allow fast px py pz computation

Definition at line 275 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_sinTh

float CaloDetDescrElement::m_sinTh
protectedinherited

this one is cached for algorithm working in transverse Energy

Definition at line 256 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_volume

float CaloDetDescrElement::m_volume
protectedinherited

cell volume

cylindric coordinates : r

Definition at line 271 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_x

float CaloDetDescrElement::m_x
protectedinherited

cartesian coordinates : X

Definition at line 299 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_x_raw

float CaloDetDescrElement::m_x_raw
protectedinherited

cartesian coordinates : X raw

Definition at line 308 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_y

float CaloDetDescrElement::m_y
protectedinherited

cartesian coordinates : Y

Definition at line 302 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_y_raw

float CaloDetDescrElement::m_y_raw
protectedinherited

cartesian coordinates : Y raw

Definition at line 311 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_z

float CaloDetDescrElement::m_z
protectedinherited

cartesian coordinates : Z

Definition at line 305 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.

◆ m_z_raw

float CaloDetDescrElement::m_z_raw
protectedinherited

cartesian coordinates : Z raw

Definition at line 314 of file Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h.


The documentation for this class was generated from the following files:
CaloDetDescrElement::deta
float deta() const
cell deta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:356
CaloDetDescrElement::cosPhi
float cosPhi() const
for fast px py pz computation
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:391
CaloDetDescrElement::onl2
IdentifierHash onl2() const
cell online identifier 2
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:408
CaloCell_Base_ID::LARFCAL
@ LARFCAL
Definition: CaloCell_Base_ID.h:46
CaloDetDescrElement::m_cosTh
float m_cosTh
this one is cached for algorithm working in transverse Energy
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:260
CaloDetDescriptor::getSubCalo
CaloCell_ID::SUBCALO getSubCalo() const
get subcalo
Definition: CaloDetDescriptor.h:533
CaloDetDescrElement::m_dphi
float m_dphi
cylindric coordinates : delta phi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:267
max
#define max(a, b)
Definition: cfImp.cxx:41
CaloDetDescriptor::is_lar_fcal
bool is_lar_fcal() const
descriptor belongs to FCAL
Definition: CaloDetDescriptor.h:491
CaloDetDescrElement::m_z_raw
float m_z_raw
cartesian coordinates : Z raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:314
CaloSuperCellDetectorElement::updateNull
StatusCode updateNull()
Set this element's geometry to default values.
Definition: CaloDetectorElements.cxx:630
CaloDetDescrElement::y
float y() const
cell y
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:365
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloDetDescrElement::m_eta_raw
float m_eta_raw
cylindric coordinates : eta_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:286
CaloSuperCellDetectorElement::updateBE
StatusCode updateBE(const std::vector< const CaloDetDescrElement * > &fromelts)
Update this element's geometry from a list of elements.
Definition: CaloDetectorElements.cxx:703
CaloSuperCellDetectorElement::updateSingle
StatusCode updateSingle(const CaloDetDescrElement *fromelt)
Copy this element's geometry from the given offline element.
Definition: CaloDetectorElements.cxx:664
CaloDetDescrElement::m_volume
float m_volume
cell volume
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:271
CaloDetDescrElement::dr
float dr() const
cell dr
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:360
CaloDetDescrElement::m_sinPhi
float m_sinPhi
cache to allow fast px py pz computation
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:275
CaloDetDescriptor::is_lar_hec
bool is_lar_hec() const
descriptor belongs to HEC
Definition: CaloDetDescriptor.h:486
CaloDetDescrElement::m_phi_raw
float m_phi_raw
cylindric coordinates : phi_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:289
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
CaloDetDescrElement::m_phi
float m_phi
cylindric coordinates : phi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:252
CaloDetDescrElement::m_dr
float m_dr
cylindric coordinates : delta r
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:295
CaloDetDescrElement::m_dz
float m_dz
cartesian coordinates : delta Z
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:323
CaloDetDescriptor::is_lar_em_endcap_inner
bool is_lar_em_endcap_inner() const
descriptor belongs to the inner wheel of EM end cap
Definition: CaloDetDescriptor.h:476
CaloDetDescrElement::eta_raw
float eta_raw() const
cell eta_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:350
CaloDetDescrElement::m_z
float m_z
cartesian coordinates : Z
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:305
CaloDetDescrElement::getSubCalo
CaloCell_ID::SUBCALO getSubCalo() const
cell subcalo
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:433
CaloDetDescrElement::dz
float dz() const
cell dz
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:379
CaloDetDescrElement::onl1
IdentifierHash onl1() const
cell online identifier 1
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:404
CaloDetDescriptor::caloCellMin
IdentifierHash caloCellMin() const
minimal hash identifier for calo cells in the region
Definition: CaloDetDescriptor.h:538
CaloDetDescrElement::m_dy
float m_dy
cartesian coordinates : delta Y
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:320
CaloDetDescriptor::get_calo_helper
const CaloCell_Base_ID * get_calo_helper() const
get Calo Cell ID helper
Definition: CaloDetDescriptor.h:523
CaloDetDescrElement::m_sample
CaloCell_ID::CaloSample m_sample
@bried the sampling for this element
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:327
CaloDetDescrElement::calo_hash
IdentifierHash calo_hash() const
cell calo hash
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:412
CaloDetDescriptor::is_lar_em_endcap_outer
bool is_lar_em_endcap_outer() const
descriptor belongs to the outer wheel of EM end cap
Definition: CaloDetDescriptor.h:481
CaloSuperCellDetectorElement::updateFCAL
StatusCode updateFCAL(const std::vector< const CaloDetDescrElement * > &fromelts)
Update this element's geometry from a list of elements.
Definition: CaloDetectorElements.cxx:833
CaloDetDescrElement::m_y_raw
float m_y_raw
cartesian coordinates : Y raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:311
CaloDetDescrElement::m_x_raw
float m_x_raw
cartesian coordinates : X raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:308
CaloDetDescrElement::m_descriptor
const CaloDetDescriptor * m_descriptor
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:243
CaloDetDescrElement::m_onl1
IdentifierHash m_onl1
Tiles need 2 online hashed id.
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:331
CaloDetDescrElement::m_r_raw
float m_r_raw
cylindric coordinates : r_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:292
CaloDetDescrElement::m_dx
float m_dx
cartesian coordinates : delta X
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:317
CaloDetDescrElement::m_r
float m_r
cylindric coordinates : r
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:283
CaloDetDescrElement::m_onl2
IdentifierHash m_onl2
Tiles need 2 online hashed id.
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:334
CaloDetDescriptor::is_lar_em
bool is_lar_em() const
descriptor belongs to EM calorimeter
Definition: CaloDetDescriptor.h:461
CaloDetDescriptor::is_lar_em_barrel
bool is_lar_em_barrel() const
descriptor belongs to EM barrel
Definition: CaloDetDescriptor.h:466
min
#define min(a, b)
Definition: cfImp.cxx:40
CaloDetDescrElement::m_cosPhi
float m_cosPhi
cache to allow fast px py pz computation
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:279
CaloDetDescrElement::volume
float volume() const
cell volume
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:381
CaloDetDescriptor::is_lar_em_endcap
bool is_lar_em_endcap() const
descriptor belongs to EM end cap
Definition: CaloDetDescriptor.h:471
CaloDetDescrElement::x_raw
float x_raw() const
cell x_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:369
CaloDetDescrElement::z_raw
float z_raw() const
cell z_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:373
CaloDetDescrElement::x
float x() const
cell x
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:363
CaloDetDescrElement::r_raw
float r_raw() const
cell r_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:354
CaloDetDescrElement::m_x
float m_x
cartesian coordinates : X
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:299
CaloDetDescrElement::dphi
float dphi() const
cell dphi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:358
CaloDetDescrElement::customID
virtual Identifier customID() const
Definition: CaloDetDescrElement.cxx:165
CaloDetDescrElement::dx
float dx() const
cell dx
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:375
CaloDetDescrElement::z
float z() const
cell z
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:367
CaloDetDescrElement::cosTh
float cosTh() const
for fast px py pz computation
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:385
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloDetDescrElement::descriptor
const CaloDetDescriptor * descriptor() const
cell descriptor
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:428
CaloDetDescrElement::m_caloHash
IdentifierHash m_caloHash
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:244
CaloDetDescrElement::m_y
float m_y
cartesian coordinates : Y
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:302
CaloDetDescrElement::eta
float eta() const
cell eta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:344
CaloDetDescrElement::phi
float phi() const
cell phi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:346
CaloDetDescrElement::sinTh
float sinTh() const
for algorithm working in transverse Energy
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:383
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
CaloDetDescrElement::r
float r() const
cell r
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:348
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CaloDetDescrElement::y_raw
float y_raw() const
cell y_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:371
CaloDetDescrElement::sinPhi
float sinPhi() const
for fast px py pz computation
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:389
CaloCell_Base_ID::NOT_VALID
@ NOT_VALID
Definition: CaloCell_Base_ID.h:46
CaloDetDescrElement::m_deta
float m_deta
cylindric coordinates : delta eta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:264
CaloDetDescrElement::dy
float dy() const
cell dy
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:377
CaloDetDescrElement::m_eta
float m_eta
cylindric coordinates : eta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:249
CaloDetDescriptor::is_tile
bool is_tile() const
descriptor belongs to Tile
Definition: CaloDetDescriptor.h:496
CaloDetDescrElement::subcalo_hash
IdentifierHash subcalo_hash() const
cell subcalo hash
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:418
CaloDetDescrElement::CaloDetDescrElement
CaloDetDescrElement()=delete
Constructor, hidden.
CaloDetDescrElement::m_sinTh
float m_sinTh
this one is cached for algorithm working in transverse Energy
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:256
CaloDetDescrElement::phi_raw
float phi_raw() const
cell phi_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:352