|
ATLAS Offline Software
|
Go to the documentation of this file.
19 return std::string(
buffer);
38 double celleta(dde->
eta());
39 double cellphi(dde->
phi());
51 if ( onlyKine )
return true;
61 if ( isam < 0 || isam >= fsam ) {
return false; }
93 case CaloSampling::MINIFCAL0:
94 case CaloSampling::MINIFCAL1:
95 case CaloSampling::MINIFCAL2:
96 case CaloSampling::MINIFCAL3:
106 unsigned int pmask = dde->
is_tile() ? 0x8080 : 0x2000;
121 if ( pClus ==
nullptr ) {
return false; }
125 if ( clk ==
nullptr || clk->
size() == 0 ) {
return false; }
131 auto citer(clk->
begin());
132 while ( citer != clk->
end() && retflg ) {
133 if ( *citer !=
nullptr ) { retflg =
cellAccumulator(**citer,accum,citer.weight(),onlyKine); } ++citer; }
134 if ( !retflg ) {
return false; }
151 if ( onlyKine ) {
return true; }
double cellWeight
Signal weight.
valarray_t posNormInSample
Positive (absolute) normalization energy.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Cache for data accumulator.
void clearSamplingData()
Clear the sampling data.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
boolarray_t presenceInSample
Flag for presens of sampling in cluster.
double proxim(double b, double a)
double accumPhi
Accumulated energy-weighted phi.
const_iterator begin() const
const begin method
virtual double e() const override final
get energy (data member) (synonym to method energy()
std::string fmtMsg(const char *fmt,...)
void setSamplingPattern(const unsigned sp, const bool clearSamplingVars=false)
Set sampling pattern (one bit per sampling.
valarray_t etaInSample
Eta.
bool setEnergy(const CaloSample sampling, const float e)
Set energy for a given sampling. Returns false if the sample isn't part of the cluster.
uint16_t provenance() const
get provenance (data member)
float time() const
get time (data member)
void setTime(flt_t)
Set cluster time.
bool setEmax(const CaloSample sampling, const float eMax)
Set the Energy of the cell with the highest energy in a particular sampling.
valarray_t energyInSample
Energy.
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
bool setPhimax(const CaloSample sampling, const float phiMax)
Set the phi of the cell with the highest energy in a particular sampling.
bool cellAccumulator(const CaloCell &rcell, CaloClusterSignalAccumulator &accum, double weight, bool onlyKine=false)
Description of a calorimeter cluster.
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
int nBarrel
Number of cells in barrel.
CaloPhiRange class declaration.
static double fix(double phi)
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
bool is_tile() const
cell belongs to Tile
bool calculateKine(xAOD::CaloCluster *pClus, bool onlyKine=false)
Kinematic updates.
size_t size() const
size method
valarray_t phiMaxEnergyInSample
Phi of maximum energy.
const_iterator end() const
const end method
double accumAbsE
Absolute signal.
bool firstCell
Flags first cell.
Data object for each calorimeter readout cell.
CaloCell_ID::CaloSample getSampling() const
cell sampling
double cellAbsE
Absolute signal.
double cellAbsWeight
Absolute Signal weight.
bool setPhi(const CaloSample sampling, const float phi)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
bool setEtamax(const CaloSample sampling, const float etaMax)
Set the eta of the cell with the highest energy in a particular sampling.
float eta() const
cell eta
float phi() const
cell phi
int nEndcap
Number of cells in endcap.
valarray_t phiInSample
Phi.
valarray_t maxEnergyInSample
Maxmimum energy.
double accumEta
Accumulated energy-weighted eta.
valarray_t etaMaxEnergyInSample
Eta of maximum energy.
bool setEta(const CaloSample sampling, const float eta)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
double accumTimeNorm
Time normalization.
unsigned samplingPattern() const
Access to sampling pattern (one bit per sampling) (Method may be removed later)
void setM(flt_t)
Set Mass for the current signal state.