49#ifndef TILEEVENT_TILECELL_H
50#define TILEEVENT_TILECELL_H
128 virtual std::unique_ptr<CaloCell>
clone()
const override final;
136 virtual void setEnergy(
float ene)
override final;
143 virtual void scaleEnergy(
float scale)
override final;
152 virtual void setTime(
float t)
override final;
155 void setTime(
float t,
int pmt);
158 void setQuality(
unsigned char qual,
unsigned char qbit,
int pmt);
217 int gain1 (
void)
const;
219 int gain2 (
void)
const;
225 std::string
whoami (
void)
const {
return "TileCell"; }
227 void print (
void)
const;
230 operator std::string()
const;
void addEnergy(float energy)
add energy
float time() const
get time (data member)
const CaloDetDescrElement * m_caloDDE
pointer to static CaloDetDescrElement to access information that does not change from event to event
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 )
CaloGain::CaloGain m_gain
gain
This class groups all DetDescr information related to a CaloCell.
This is a "hash" representation of an Identifier.
uint8_t qual1(void) const
get quality of first PMT (data member)
void setQuality_nonvirt(unsigned char qual, unsigned char qbit, int pmt)
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
void setEnergy_nonvirt(float e1, float e2, int gain1, int gain2)
TileCell()
default constructor
virtual std::unique_ptr< CaloCell > clone() const override final
clone
void setQual2(unsigned char qual)
set quality of second PMT
virtual bool badcell(void) const override final
check if whole cell is bad (i.e.
void setTime_nonvirt(float t)
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
bool badch1(void) const
check if first PMT is in bad channel list and masked
IdentifierHash subcalo_hash(void) const
get subcalo hash for TileCal cells
void setQual1(unsigned char qual, unsigned char qbit)
set quality and quality bits of first PMT
uint8_t qbit2(void) const
get quality bits of second PMT (data member)
void setEqual_nonvirt(int gain)
set the same gain for two PMTs and set energy diff to zero
std::string whoami(void) const
get name of the object
void setDDE(CaloDetDescrElement *const &caloDDE)
all set methods
int gain1(void) const
get gain of first PMT
uint8_t qual2(void) const
get quality of second PMT (data member)
void setQbit1(unsigned char qbit)
set quality bits of first PMT
float m_eneDiff
eneDiff = ene1 - ene2
void setQbit2(unsigned char qbit)
set quality bits of second PMT
void setQuality(unsigned char qual, unsigned char qbit, int pmt)
set quality value and quality bits for one PMT (TileCell specific overloads)
float m_timeDiff
timeDiff = (time1 - time2)/2.
void updateQuality()
merge quality of 2 PMTs in single cell quality
void setQual1(unsigned char qual)
set quality of first PMT
void setQual2(unsigned char qual, unsigned char qbit)
set quality and quality bits of second PMT
float ene1(void) const
get energy of first PMT
virtual void setTime(float t) override final
set cell time, reset timeDiff
bool badch2(void) const
check if second PMT is in bad channel list and masked
float timeDiff(void) const
get time diff for two PMTs (data member)
float time2(void) const
get time of second PMT
QUALITY_BITS
definition of various bits in quality
uint8_t qbit1(void) const
get quality bits of first PMT (data member)
float ene2(void) const
get energy of second PMT