ATLAS Offline Software
Loading...
Searching...
No Matches
HICaloCellHelper Namespace Reference

Functions

float getEtDensity (const CaloCell *theCell, float geoWeight)
float getAreaEtaPhi (const CaloCell *theCell)
void updateShape (xAOD::HIEventShapeContainer *shape, const CaloCell *theCell, float geoWeight, float eta0, float phi0, bool isNeg=false)
std::string dumpCell (const CaloCell *theCell)

Function Documentation

◆ dumpCell()

std::string HICaloCellHelper::dumpCell ( const CaloCell * theCell)

Definition at line 31 of file HICaloCellHelper.cxx.

32{
33 std::stringstream ss;
34 ss << "CELLINFO:"
35 << std::setw(10) << (CaloSampling::CaloSample) theCell->caloDDE()->getSampling()
36 << std::setw(20) << theCell->ID().get_compact()
37 << std::setw(10) << theCell->et()
38 << std::setw(10) << theCell->caloDDE()->eta()
39 << std::setw(10) << theCell->caloDDE()->phi()
40 << std::setw(15) << theCell->caloDDE()->deta()
41 << std::setw(15) << theCell->caloDDE()->dphi()
42 << std::setw(15) << HICaloCellHelper::getAreaEtaPhi(theCell);
43 return ss.str();
44}
static Double_t ss
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition CaloCell.h:321
virtual double et() const override final
get et
Definition CaloCell.h:423
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition CaloCell.h:295
CaloCell_ID::CaloSample getSampling() const
cell sampling
value_type get_compact() const
Get the compact id.
float getAreaEtaPhi(const CaloCell *theCell)

◆ getAreaEtaPhi()

float HICaloCellHelper::getAreaEtaPhi ( const CaloCell * theCell)

Definition at line 15 of file HICaloCellHelper.cxx.

16{
17 float deta=theCell->caloDDE()->deta();
18 float dphi=theCell->caloDDE()->dphi();
19 return std::abs(deta*dphi);
20}

◆ getEtDensity()

float HICaloCellHelper::getEtDensity ( const CaloCell * theCell,
float geoWeight )

Definition at line 22 of file HICaloCellHelper.cxx.

23{
24 float density=theCell->et();
26 if(area<1e-9) area=0.2*TMath::Pi()/geoWeight;
27 density/=area;
28 return density;
29}
double area(double R)

◆ updateShape()

void HICaloCellHelper::updateShape ( xAOD::HIEventShapeContainer * shape,
const CaloCell * theCell,
float geoWeight,
float eta0,
float phi0,
bool isNeg = false )