Project
Loading...
Searching...
No Matches
o2::ctp::reco_workflow::RawDecoderSpec Class Reference

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.
 

Detailed Description

Coverter task for Raw data to CTP digits.

Author
Roman Lietava from CPV example

Definition at line 35 of file RawDecoderSpec.h.

Constructor & Destructor Documentation

◆ RawDecoderSpec() [1/2]

o2::ctp::reco_workflow::RawDecoderSpec::RawDecoderSpec ( bool  digits,
bool  lumi 
)
inline

Constructor.

Parameters
propagateMCIf true the MCTruthContainer is propagated to the output

Definition at line 40 of file RawDecoderSpec.h.

◆ ~RawDecoderSpec() [1/2]

o2::ctp::reco_workflow::RawDecoderSpec::~RawDecoderSpec ( )
overridedefault

Destructor.

◆ RawDecoderSpec() [2/2]

o2::ctp::reco_workflow::RawDecoderSpec::RawDecoderSpec ( bool  digits,
bool  lumi 
)
inline

Constructor.

Parameters
propagateMCIf true the MCTruthContainer is propagated to the output

Definition at line 41 of file RawDecoderSpec.h.

◆ ~RawDecoderSpec() [2/2]

o2::ctp::reco_workflow::RawDecoderSpec::~RawDecoderSpec ( )
overridedefault

Destructor.

Member Function Documentation

◆ computeLumiPerBC()

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.

Parameters
ctpdigitsVector of CTP digits to be processed
Returns
Array of luminosity values for each BC

Definition at line 308 of file RawDecoderSpec.cxx.

◆ endOfStream() [1/2]

void RawDecoderSpec::endOfStream ( o2::framework::EndOfStreamContext context)
finalvirtual

This is invoked whenever we have an EndOfStream event.

Reimplemented from o2::framework::Task.

Definition at line 51 of file RawDecoderSpec.cxx.

◆ endOfStream() [2/2]

void o2::ctp::reco_workflow::RawDecoderSpec::endOfStream ( o2::framework::EndOfStreamContext context)
finalvirtual

This is invoked whenever we have an EndOfStream event.

Reimplemented from o2::framework::Task.

◆ fetchRunInfo()

void RawDecoderSpec::fetchRunInfo ( int  runNumber)

Definition at line 466 of file RawDecoderSpec.cxx.

◆ init() [1/2]

void RawDecoderSpec::init ( framework::InitContext ctx)
finalvirtual

Initializing the RawDecoderSpec.

Parameters
ctxInit context

Reimplemented from o2::framework::Task.

Definition at line 27 of file RawDecoderSpec.cxx.

◆ init() [2/2]

void o2::ctp::reco_workflow::RawDecoderSpec::init ( framework::InitContext ctx)
finalvirtual

Initializing the RawDecoderSpec.

Parameters
ctxInit context

Reimplemented from o2::framework::Task.

◆ integrateLumi()

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.

Parameters
perIntervalArray of luminosity values for each BC for a given time interval

Definition at line 351 of file RawDecoderSpec.cxx.

◆ run() [1/2]

void RawDecoderSpec::run ( framework::ProcessingContext ctx)
finalvirtual

Run conversion of raw data to cells.

Parameters
ctxProcessing 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.

◆ run() [2/2]

void o2::ctp::reco_workflow::RawDecoderSpec::run ( framework::ProcessingContext ctx)
finalvirtual

Run conversion of raw data to cells.

Parameters
ctxProcessing 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.

◆ unixTimeForOrbitStart()

int64_t RawDecoderSpec::unixTimeForOrbitStart ( uint32_t  orbit) const

Definition at line 455 of file RawDecoderSpec.cxx.

◆ updateTimeDependentParams() [1/2]

void RawDecoderSpec::updateTimeDependentParams ( framework::ProcessingContext pc)

Definition at line 263 of file RawDecoderSpec.cxx.

◆ updateTimeDependentParams() [2/2]

void o2::ctp::reco_workflow::RawDecoderSpec::updateTimeDependentParams ( framework::ProcessingContext pc)

◆ writeMassiLineLumi()

void RawDecoderSpec::writeMassiLineLumi ( int64_t  unixTime,
double  lumi,
double  lumiErr 
)

Definition at line 439 of file RawDecoderSpec.cxx.

◆ writeMassiLinePerBC()

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.

◆ yearFromUnixTime()

int RawDecoderSpec::yearFromUnixTime ( int64_t  unixTime) const

Definition at line 460 of file RawDecoderSpec.cxx.


The documentation for this class was generated from the following files: