 |
ATLAS Offline Software
|
Go to the documentation of this file.
26 #include "CaloDetDescr/CaloDetDescrElement.h"
67 float ene1,
float ene2,
float time1,
float time2,
68 int qual1,
int qual2,
int qbit1,
int qbit2,
70 :
CaloCell(caloDDE,ene1+ene2,(time1+time2)/2.0, 0, 0,
72 , m_eneDiff(ene1-ene2)
73 , m_timeDiff((time1-time2)/2.)
86 , m_eneDiff(
cell->eneDiff())
87 , m_timeDiff(
cell->timeDiff())
95 float eneDiff,
float timeDiff)
98 , m_timeDiff(timeDiff)
108 return std::make_unique<TileCell>(this->
caloDDE(),
188 std::cout << (std::string) (*
this) << std::endl;
191 TileCell::operator std::string()
const
196 text <<
" Id = " << s_cabling->getTileID()->to_string(subcalo_hash(),-2);
201 text <<
" prov = " << provenance();
202 text <<
" E1 = " << ene1();
204 text <<
" T1 = " << time1();
205 text <<
" Q1 = " << (
int)qual1() <<
" " << (
int)qbit1();
206 text <<
" E2 = " << ene2();
208 text <<
" T2 = " << time2();
209 text <<
" Q2 = " << (
int)qual2() <<
" " << (
int)qbit2();
212 text <<
" r = " << caloDDE()->r();
virtual void setTime(float t) override final
set cell time, reset timeDiff
virtual std::unique_ptr< CaloCell > clone() const override final
clone
Scalar phi() const
phi method
TileCell()
default constructor
std::vector< Identifier > ID
static const TileCablingService * getInstance()
get pointer to service instance
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
Scalar eta() const
pseudorapidity method
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
virtual double e() const override final
get energy (data member) (synonym to method energy()
uint16_t provenance() const
get provenance (data member)
float time() const
get time (data member)
virtual ~TileCell()
destructor
double energy() const
get energy (data member)
float timeDiff(void) const
get time diff for two PMTs (data member)
uint8_t qual2(void) const
get quality of second PMT (data member)
void print(void) const
print all cell data memebers to stdout
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
void addEnergy(float e, int pmt, int gain)
set energy and gain for one PMT
CaloGain::CaloGain m_gain
gain
float m_energy
energy (in MeV)
uint8_t qbit1(void) const
get quality bits of first PMT (data member)
int gain1(void) const
get gain of first PMT
float eneDiff(void) const
all get methods
uint16_t quality() const
get quality (data member)
float m_timeDiff
timeDiff = (time1 - time2)/2.
CaloGain::CaloGain gain() const
get gain (data member )
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
virtual void setEnergy(float ene) override final
set total energy, reset eneDiff to zero (final override of CaloCell method)
uint8_t qbit2(void) const
get quality bits of second PMT (data member)
int gain2(void) const
get gain of second PMT
Data object for each calorimeter readout cell.
def time(flags, cells_name, *args, **kw)
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
uint8_t qual1(void) const
get quality of first PMT (data member)
virtual void scaleEnergy(float scale) override final
scale energy and eneDiff (final override of CaloCell method)
float m_eneDiff
eneDiff = ene1 - ene2