|
ATLAS Offline Software
|
Go to the documentation of this file.
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 addEnergy(
float e)
override final;
152 virtual void setTime(
float t)
override final;
223 int gain1 (
void)
const;
225 int gain2 (
void)
const;
231 std::string
whoami (
void)
const {
return "TileCell"; }
233 void print (
void)
const;
236 operator std::string()
const;
297 #endif // TILEEVENT_TILECELL_H
virtual bool badcell(void) const override final
check if whole cell is bad (i.e.
void setQbit2(unsigned char qbit)
set quality bits of second PMT
void setTime_nonvirt(float t)
float time1(void) const
get time of first PMT
virtual void setTime(float t) override final
set cell time, reset timeDiff
void setQual2(unsigned char qual, unsigned char qbit)
set quality and quality bits of second PMT
virtual std::unique_ptr< CaloCell > clone() const override final
clone
void setEqual_nonvirt(int gain)
set the same gain for two PMTs and set energy diff to zero
TileCell()
default constructor
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
float time2(void) const
get time of second PMT
void setQual2(unsigned char qual)
set quality of second PMT
float ene1(void) const
get energy of first PMT
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
bool badch1(void) const
check if first PMT is in bad channel list and masked
virtual double e() const override final
get energy (data member) (synonym to method energy()
uint16_t provenance() const
get provenance (data member)
bool const RAWDATA *ch2 const
float time() const
get time (data member)
std::string whoami(void) const
get name of the object
virtual ~TileCell()
destructor
double energy() const
get energy (data member)
float timeDiff(void) const
get time diff for two PMTs (data member)
void setQbit1(unsigned char qbit)
set quality bits of first PMT
uint8_t qual2(void) const
get quality of second PMT (data member)
void print(void) const
print all cell data memebers to stdout
QUALITY_BITS
definition of various bits in quality
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
bool badch2(void) const
check if second PMT is in bad channel list and masked
void setEnergy_nonvirt(float e1, float e2, int gain1, int gain2)
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_nonvirt(unsigned char qual, unsigned char qbit, int pmt)
void setQuality(unsigned char qual, unsigned char qbit, int pmt)
set quality value and quality bits for one PMT
IdentifierHash subcalo_hash(void) const
get subcalo hash for TileCal cells
float m_timeDiff
timeDiff = (time1 - time2)/2.
CaloGain::CaloGain gain() const
get gain (data member )
void setQual1(unsigned char qual, unsigned char qbit)
set quality and quality bits of first PMT
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
float ene2(void) const
get energy of second PMT
Data object for each calorimeter readout cell.
void setDDE(CaloDetDescrElement *const &caloDDE)
all set methods
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
void updateQuality()
merge quality of 2 PMTs in single cell quality
uint8_t qual1(void) const
get quality of first PMT (data member)
void setQual1(unsigned char qual)
set quality of first PMT
const CaloDetDescrElement * m_caloDDE
pointer to static CaloDetDescrElement to access information that does not change from event to event
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual void scaleEnergy(float scale) override final
scale energy and eneDiff
float m_eneDiff
eneDiff = ene1 - ene2
IdentifierHash subcalo_hash() const
cell subcalo hash