Project
Loading...
Searching...
No Matches
o2::ctp::DigitReader Class Reference

Inherits o2::framework::Task.

Public Member Functions

 DigitReader ()=delete
 
 DigitReader (bool useMC)
 
 ~DigitReader () override=default
 
void init (InitContext &ic) final
 
void run (ProcessingContext &pc) final
 
- Public Member Functions inherited from o2::framework::Task
virtual ~Task ()
 
virtual void endOfStream (EndOfStreamContext &context)
 This is invoked whenever we have an EndOfStream event.
 
virtual void finaliseCCDB (ConcreteDataMatcher &matcher, void *obj)
 
virtual void stop ()
 This is invoked on stop.
 

Protected Member Functions

void connectTree (const std::string &filename)
 

Protected Attributes

std::vector< o2::ctp::CTPDigitmDigits
 
std::vector< o2::ctp::CTPDigit > * mDigitsPtr = &mDigits
 
o2::ctp::LumiInfo mLumi
 
o2::ctp::LumiInfomLumiPtr = &mLumi
 
std::unique_ptr< TFile > mFile
 
std::unique_ptr< TTree > mTree
 
bool mUseMC = false
 
bool mUseIRFrames = false
 
std::string mDigTreeName = "o2sim"
 
std::string mDigitBranchName = "CTPDigits"
 
std::string mLumiBranchName = "CTPLumi"
 

Detailed Description

Definition at line 38 of file DigitReaderSpec.cxx.

Constructor & Destructor Documentation

◆ DigitReader() [1/2]

o2::ctp::DigitReader::DigitReader ( )
delete

◆ DigitReader() [2/2]

o2::ctp::DigitReader::DigitReader ( bool  useMC)

Definition at line 62 of file DigitReaderSpec.cxx.

◆ ~DigitReader()

o2::ctp::DigitReader::~DigitReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

void o2::ctp::DigitReader::connectTree ( const std::string &  filename)
protected

Definition at line 140 of file DigitReaderSpec.cxx.

◆ init()

void o2::ctp::DigitReader::init ( InitContext context)
finalvirtual

The method which is called once to initialise the task. Derived classes can use this to save extra state.

Reimplemented from o2::framework::Task.

Definition at line 69 of file DigitReaderSpec.cxx.

◆ run()

void o2::ctp::DigitReader::run ( ProcessingContext context)
finalvirtual

This is invoked whenever a new InputRecord is demeed to be complete.

Implements o2::framework::Task.

Definition at line 79 of file DigitReaderSpec.cxx.

Member Data Documentation

◆ mDigitBranchName

std::string o2::ctp::DigitReader::mDigitBranchName = "CTPDigits"
protected

Definition at line 58 of file DigitReaderSpec.cxx.

◆ mDigits

std::vector<o2::ctp::CTPDigit> o2::ctp::DigitReader::mDigits
protected

Definition at line 50 of file DigitReaderSpec.cxx.

◆ mDigitsPtr

std::vector<o2::ctp::CTPDigit> * o2::ctp::DigitReader::mDigitsPtr = &mDigits
protected

Definition at line 50 of file DigitReaderSpec.cxx.

◆ mDigTreeName

std::string o2::ctp::DigitReader::mDigTreeName = "o2sim"
protected

Definition at line 57 of file DigitReaderSpec.cxx.

◆ mFile

std::unique_ptr<TFile> o2::ctp::DigitReader::mFile
protected

Definition at line 52 of file DigitReaderSpec.cxx.

◆ mLumi

o2::ctp::LumiInfo o2::ctp::DigitReader::mLumi
protected

Definition at line 51 of file DigitReaderSpec.cxx.

◆ mLumiBranchName

std::string o2::ctp::DigitReader::mLumiBranchName = "CTPLumi"
protected

Definition at line 59 of file DigitReaderSpec.cxx.

◆ mLumiPtr

o2::ctp::LumiInfo * o2::ctp::DigitReader::mLumiPtr = &mLumi
protected

Definition at line 51 of file DigitReaderSpec.cxx.

◆ mTree

std::unique_ptr<TTree> o2::ctp::DigitReader::mTree
protected

Definition at line 53 of file DigitReaderSpec.cxx.

◆ mUseIRFrames

bool o2::ctp::DigitReader::mUseIRFrames = false
protected

Definition at line 56 of file DigitReaderSpec.cxx.

◆ mUseMC

bool o2::ctp::DigitReader::mUseMC = false
protected

Definition at line 55 of file DigitReaderSpec.cxx.


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