![]() |
Project
|
Coverter task for Raw data to CTP digits. More...
#include <RawDecoderSpec.h>
Inherits o2::framework::Task, and o2::framework::Task.
Public Member Functions | |
| RawDecoderSpec (bool digits, bool lumi) | |
| Constructor. | |
| ~RawDecoderSpec () override=default | |
| Destructor. | |
| void | init (framework::InitContext &ctx) final |
| Initializing the RawDecoderSpec. | |
| void | endOfStream (o2::framework::EndOfStreamContext &ec) final |
| This is invoked whenever we have an EndOfStream event. | |
| void | run (framework::ProcessingContext &ctx) final |
| Run conversion of raw data to cells. | |
| void | updateTimeDependentParams (framework::ProcessingContext &pc) |
| RawDecoderSpec (bool digits, bool lumi) | |
| Constructor. | |
| ~RawDecoderSpec () override=default | |
| Destructor. | |
| void | init (framework::InitContext &ctx) final |
| Initializing the RawDecoderSpec. | |
| void | endOfStream (o2::framework::EndOfStreamContext &ec) final |
| This is invoked whenever we have an EndOfStream event. | |
| void | run (framework::ProcessingContext &ctx) final |
| Run conversion of raw data to cells. | |
| void | updateTimeDependentParams (framework::ProcessingContext &pc) |
| void | computeLumiPerBC (const o2::pmr::vector< CTPDigit > &ctpdigits, uint32_t firstOrbit, uint32_t orbitsPerTF) |
| Compute per BC luminosity from the interaction counts from CTP digits. | |
| void | integrateLumi (const std::array< double, o2::constants::lhc::LHCMaxBunches > &tfCounts1, const std::array< double, o2::constants::lhc::LHCMaxBunches > &tfCounts2, int64_t unixTime, uint32_t nOrbitsThisTF) |
| Integrate luminosity per BC over multiple time frames. | |
| void | writeMassiLinePerBC (int bc, int64_t unixTime, double lumi, double lumiErr, double correctedRate, double correctedLumi, double mu) |
| void | writeMassiLineLumi (int64_t unixTime, double lumi, double lumiErr) |
| int64_t | unixTimeForOrbitStart (uint32_t orbit) const |
| int | yearFromUnixTime (int64_t unixTime) const |
| void | fetchRunInfo (int runNumber) |
Public Member Functions inherited from o2::framework::Task | |
| virtual | ~Task () |
| virtual void | finaliseCCDB (ConcreteDataMatcher &matcher, void *obj) |
| virtual void | stop () |
| This is invoked on stop. | |
Coverter task for Raw data to CTP digits.
Definition at line 35 of file RawDecoderSpec.h.
|
inline |
Constructor.
| propagateMC | If true the MCTruthContainer is propagated to the output |
Definition at line 40 of file RawDecoderSpec.h.
|
overridedefault |
Destructor.
|
inline |
Constructor.
| propagateMC | If true the MCTruthContainer is propagated to the output |
Definition at line 41 of file RawDecoderSpec.h.
|
overridedefault |
Destructor.
| void RawDecoderSpec::computeLumiPerBC | ( | const o2::pmr::vector< CTPDigit > & | ctpdigits, |
| uint32_t | firstOrbit, | ||
| uint32_t | orbitsPerTF | ||
| ) |
Compute per BC luminosity from the interaction counts from CTP digits.
| ctpdigits | Vector of CTP digits to be processed |
Definition at line 308 of file RawDecoderSpec.cxx.
|
finalvirtual |
This is invoked whenever we have an EndOfStream event.
Reimplemented from o2::framework::Task.
Definition at line 51 of file RawDecoderSpec.cxx.
|
finalvirtual |
This is invoked whenever we have an EndOfStream event.
Reimplemented from o2::framework::Task.
Definition at line 466 of file RawDecoderSpec.cxx.
|
finalvirtual |
Initializing the RawDecoderSpec.
| ctx | Init context |
Reimplemented from o2::framework::Task.
Definition at line 27 of file RawDecoderSpec.cxx.
|
finalvirtual |
| void RawDecoderSpec::integrateLumi | ( | const std::array< double, o2::constants::lhc::LHCMaxBunches > & | tfCounts1, |
| const std::array< double, o2::constants::lhc::LHCMaxBunches > & | tfCounts2, | ||
| int64_t | unixTime, | ||
| uint32_t | nOrbitsThisTF | ||
| ) |
Integrate luminosity per BC over multiple time frames.
| perInterval | Array of luminosity values for each BC for a given time interval |
Definition at line 351 of file RawDecoderSpec.cxx.
|
finalvirtual |
Run conversion of raw data to cells.
| ctx | Processing context |
The following branches are linked: Input RawData: {"ROUT", "RAWDATA", 0, Lifetime::Timeframe} Output HW errors: {"CTP", "RAWHWERRORS", 0, Lifetime::Timeframe} -later
Implements o2::framework::Task.
Definition at line 105 of file RawDecoderSpec.cxx.
|
finalvirtual |
Run conversion of raw data to cells.
| ctx | Processing context |
The following branches are linked: Input RawData: {"ROUT", "RAWDATA", 0, Lifetime::Timeframe} Output HW errors: {"CTP", "RAWHWERRORS", 0, Lifetime::Timeframe} -later
Implements o2::framework::Task.
| int64_t RawDecoderSpec::unixTimeForOrbitStart | ( | uint32_t | orbit | ) | const |
Definition at line 455 of file RawDecoderSpec.cxx.
| void RawDecoderSpec::updateTimeDependentParams | ( | framework::ProcessingContext & | pc | ) |
Definition at line 263 of file RawDecoderSpec.cxx.
| void o2::ctp::reco_workflow::RawDecoderSpec::updateTimeDependentParams | ( | framework::ProcessingContext & | pc | ) |
| void RawDecoderSpec::writeMassiLineLumi | ( | int64_t | unixTime, |
| double | lumi, | ||
| double | lumiErr | ||
| ) |
Definition at line 439 of file RawDecoderSpec.cxx.
| void RawDecoderSpec::writeMassiLinePerBC | ( | int | bc, |
| int64_t | unixTime, | ||
| double | lumi, | ||
| double | lumiErr, | ||
| double | correctedRate, | ||
| double | correctedLumi, | ||
| double | mu | ||
| ) |
Definition at line 414 of file RawDecoderSpec.cxx.
| int RawDecoderSpec::yearFromUnixTime | ( | int64_t | unixTime | ) | const |
Definition at line 460 of file RawDecoderSpec.cxx.