Skip to content
Snippets Groups Projects
Commit dc5667a4 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'nsw_dev_master' into 'master'

Sweep modifications to STGC RDO's and Digit->RDO converters from 21.3 to master

See merge request atlas/athena!14702
parents 4c7aa426 6775c20f
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,9 @@ StatusCode STGC_DigitToRDO::execute()
for (const sTgcDigit* digit : *digitColl ){
Identifier id = digit->identify();
uint16_t bcTag = digit->bcTag();
// keep the time as a float for now, but it should also become an int
float time = digit->time();
float charge = digit->charge();
uint16_t charge = (uint16_t) digit->charge_10bit();
bool isDead = digit->isDead();
STGC_RawData* rdo = new STGC_RawData(id, bcTag, time, charge, isDead);
coll->push_back(rdo);
......
......@@ -17,12 +17,13 @@ class STGC_RawData {
private:
// offline identifier
Identifier m_id;
const Identifier m_id;
// readout data ( not sure whether time and charge should be float )
uint16_t m_bcTag;
// readout data
// keeping time as a float for now, but it should also become an int
float m_time;
float m_charge;
uint16_t m_charge;
uint16_t m_bcTag;
bool m_isDead;
......@@ -31,15 +32,16 @@ class STGC_RawData {
STGC_RawData (const Identifier id);
STGC_RawData () {} //!< TODO remove this. Currently have problems with convertor if I do though.
STGC_RawData (const Identifier id, const uint16_t bcTag, const float time, const float charge,
STGC_RawData (const Identifier id, const uint16_t bcTag, const float time, const uint16_t charge,
const bool isDead );
virtual ~STGC_RawData() {}
const Identifier& identify() const { return m_id; }
const Identifier identify() const { return m_id; }
// access functions
float time() const {return m_time;}
float charge() const {return m_charge;}
uint16_t charge() const {return m_charge;}
uint16_t bcTag() const {return m_bcTag;}
bool isDead() const {return m_isDead;}
......
......@@ -10,13 +10,13 @@
// P1 ------------------------
// Constructor for Hit
Muon::STGC_RawData::STGC_RawData(const Identifier id)
:m_id(id), m_bcTag(0), m_time(0.0), m_charge(0.0), m_isDead(false)
:m_id(id), m_time(0.0), m_charge(0), m_bcTag(0), m_isDead(false)
{
}
Muon::STGC_RawData::STGC_RawData(const Identifier id, const uint16_t bcTag, const float time,
const float charge, const bool isDead)
:m_id(id), m_bcTag(bcTag), m_time(time), m_charge(charge), m_isDead(isDead)
const uint16_t charge, const bool isDead)
:m_id(id), m_time(time), m_charge(charge), m_bcTag(bcTag), m_isDead(isDead)
{
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment