|
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(),
202 std::cout << (std::string) (*
this) << std::endl;
205 TileCell::operator std::string()
const
210 text <<
" Id = " << s_cabling->getTileID()->to_string(subcalo_hash(),-2);
214 text <<
" qual = " << quality();
215 text <<
" prov = " << provenance();
216 text <<
" E1 = " << ene1();
218 text <<
" T1 = " << time1();
219 text <<
" Q1 = " << (
int)qual1() <<
" " << (
int)qbit1();
220 text <<
" E2 = " << ene2();
222 text <<
" T2 = " << time2();
223 text <<
" Q2 = " << (
int)qual2() <<
" " << (
int)qbit2();
226 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
virtual void setQuality(uint16_t quality)
set quality
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
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)
void setQuality(unsigned char qual, unsigned char qbit, int pmt)
set quality value and quality bits for one PMT
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 addEnergy(float e) override final
add energy, keep eneDiff
virtual void setEnergy(float ene) override final
set total energy, reset eneDiff to zero
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
float m_eneDiff
eneDiff = ene1 - ene2