5#ifndef LARRECEVENT_LARCELL_H
6#define LARRECEVENT_LARCELL_H
113 void print (
void)
const;
116 virtual std::unique_ptr<CaloCell>
clone()
const override final;
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)
void assign(const CaloDetDescrElement *caloDDE, const Identifier &ID, float energy, float time, uint16_t quality, uint16_t provenance, CaloGain::CaloGain gain)
For initializing a cell we get from a DataPool.
uint16_t quality() const
get quality (data member)
CaloGain::CaloGain gain() const
get gain (data member )
This class groups all DetDescr information related to a CaloCell.
void assign(const CaloDetDescrElement *caloDDE, const Identifier &id, double energy, double time, uint16_t quality, uint16_t provenance, CaloGain::CaloGain gain)
For initializing a cell we get from a DataPool.
virtual bool badcell() const override final
Check from provenance bit is cell is dead.
LArCell & operator=(const LArCell &)=default
virtual std::unique_ptr< CaloCell > clone() const override final
clone this cell into another one
void add_energy(double energy)
Add energy to this cell.
double deltaR(const LArCell *other) const
get deltaR (using 4mom helper) with respect to another cell
void print(void) const
print all relevant info about this cell
void setEnergyFast(float e)
set Energy to this cell with inline method.
void setQualityFast(float q)
set Quality to this cell with inline method.
virtual ~LArCell()
default destructor
LArCell()
default constructor (should not be used, only there for persistency reason)
void setTimeFast(float t)
set Time to this cell with inline method.