Skip to content
Snippets Groups Projects
Commit e5f0a293 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Add current TS index to the CbmTsEvenHeader

parent 4eac9a69
No related branches found
No related tags found
1 merge request!454Add current TS index to the CbmTsEvenHeader
Pipeline #12587 passed
......@@ -21,6 +21,8 @@ public:
/** Default destructor */
virtual ~CbmTsEventHeader() {};
/** Get the Start time of the this Timeslice linked to this event header*/
uint64_t GetTsIndex() { return fTsIndex; }
/** Get the Start time of the this Timeslice linked to this event header*/
uint64_t GetTsStartTime() { return fTsStartTime; }
......@@ -50,10 +52,14 @@ public:
/** @brief Set the number of digis in this Ts */
void SetNDigisTrd2D(ULong64_t value) { fNDigisTrd2D = value; }
/** @brief Set the Ts Start Time @param value Start time of the TS */
void SetTsIndex(uint32_t value) { fTsIndex = value; }
/** @brief Set the Ts Start Time @param value Start time of the TS */
void SetTsStartTime(uint64_t value) { fTsStartTime = value; }
protected:
/** Timeslice index */
uint64_t fTsIndex = 0;
/** Timeslice start time */
uint64_t fTsStartTime = 0;
......@@ -70,6 +76,6 @@ protected:
/** @brief nDigis in "this" timeslice measured by the TOF */
ULong64_t fNDigisTof = 0;
ClassDef(CbmTsEventHeader, 3)
ClassDef(CbmTsEventHeader, 4)
};
#endif
......@@ -238,6 +238,7 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
// Prepare timeslice
const fles::Timeslice& timeslice = *ts;
fCbmTsEventHeader->SetTsIndex(ts->index());
fCbmTsEventHeader->SetTsStartTime(ts->start_time());
uint64_t nComponents = ts->num_components();
......
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