26#include "CaloDetDescr/CaloDetDescrElement.h"
108 return std::make_unique<TileCell>(this->
caloDDE(),
188 std::cout << (std::string) (*
this) << std::endl;
191TileCell::operator std::string()
const
193 std::ostringstream text(std::ostringstream::out);
196 text <<
" Id = " << s_cabling->getTileID()->to_string(
subcalo_hash(),-2);
197 text <<
" ener = " <<
energy();
198 text <<
" gain = " <<
gain();
199 text <<
" time = " <<
time();
200 text <<
" qual = " <<
quality();
202 text <<
" E1 = " <<
ene1();
203 text <<
" G1 = " <<
gain1();
204 text <<
" T1 = " <<
time1();
205 text <<
" Q1 = " << (int)
qual1() <<
" " << (int)
qbit1();
206 text <<
" E2 = " <<
ene2();
207 text <<
" G2 = " <<
gain2();
208 text <<
" T2 = " <<
time2();
209 text <<
" Q2 = " << (int)
qual2() <<
" " << (int)
qbit2();
210 text <<
" eta = " <<
eta();
211 text <<
" phi = " <<
phi();
212 text <<
" r = " <<
caloDDE()->r();
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
float time() const
get time (data member)
virtual double e() const override final
get energy (data member) (synonym to method energy()
CaloCell()
default constructor (should not be used, only there for persistency reason)
float m_energy
energy (in MeV)
double energy() const
get energy (data member)
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
uint16_t provenance() const
get provenance (data member)
uint16_t quality() const
get quality (data member)
CaloGain::CaloGain gain() const
get gain (data member )
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
CaloGain::CaloGain m_gain
gain
This class groups all DetDescr information related to a CaloCell.
static const TileCablingService * getInstance()
get pointer to service instance
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)
void addEnergy(float e, int pmt, int gain)
set energy and gain for one PMT
float time1(void) const
get time of first PMT
TileCell()
default constructor
virtual std::unique_ptr< CaloCell > clone() const override final
clone
void print(void) const
print all cell data memebers to stdout
float eneDiff(void) const
all get methods
virtual ~TileCell()
destructor
virtual void setEnergy(float ene) override final
set total energy, reset eneDiff to zero (final override of CaloCell method)
int gain2(void) const
get gain of second PMT
IdentifierHash subcalo_hash(void) const
get subcalo hash for TileCal cells
uint8_t qbit2(void) const
get quality bits of second PMT (data member)
std::string whoami(void) const
get name of the object
int gain1(void) const
get gain of first PMT
uint8_t qual2(void) const
get quality of second PMT (data member)
float m_eneDiff
eneDiff = ene1 - ene2
float m_timeDiff
timeDiff = (time1 - time2)/2.
float ene1(void) const
get energy of first PMT
virtual void setTime(float t) override final
set cell time, reset timeDiff
float timeDiff(void) const
get time diff for two PMTs (data member)
float time2(void) const
get time of second PMT
uint8_t qbit1(void) const
get quality bits of first PMT (data member)
float ene2(void) const
get energy of second PMT