Project
Loading...
Searching...
No Matches
o2::its3::ITS3DigitReader Class Referencefinal

#include <DigitReaderSpec.h>

Inherits o2::framework::Task.

Public Member Functions

 ITS3DigitReader (bool useMC, bool doStag, bool useCalib)
 
 ~ITS3DigitReader () 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.
 

Static Public Attributes

static constexpr int NLayers = 7
 

Protected Member Functions

void connectTree (const std::string &filename)
 
std::string getBranchName (const std::string &base, int index) const
 
template<typename Ptr >
void setBranchAddress (const std::string &base, Ptr &addr, int layer)
 

Protected Attributes

std::array< std::vector< o2::itsmft::Digit > *, NLayersmDigits {}
 
std::array< std::vector< o2::itsmft::ROFRecord > *, NLayersmDigROFRec {}
 
std::array< std::vector< o2::itsmft::MC2ROFRecord > *, NLayersmDigMC2ROFs {}
 
std::vector< o2::dataformats::ConstMCTruthContainer< o2::MCCompLabel > > mConstLabels
 
std::array< o2::dataformats::IOMCTruthContainerView *, NLayersmPLabels {}
 
const o2::header::DataOrigin mOrigin = o2::header::gDataOriginIT3
 
std::unique_ptr< TFile > mFile
 
std::unique_ptr< TTree > mTree
 
bool mUseMC = true
 
bool mUseCalib = true
 
bool mDoStaggering = false
 
std::string mDetName
 
std::string mDetNameLC
 
std::string mFileName
 
std::string mDigTreeName = "o2sim"
 
std::string mDigBranchName = "Digit"
 
std::string mDigROFBranchName = "DigitROF"
 
std::string mDigMCTruthBranchName = "DigitMCTruth"
 

Detailed Description

Definition at line 36 of file DigitReaderSpec.h.

Constructor & Destructor Documentation

◆ ITS3DigitReader()

o2::its3::ITS3DigitReader::ITS3DigitReader ( bool  useMC,
bool  doStag,
bool  useCalib 
)

Definition at line 32 of file DigitReaderSpec.cxx.

◆ ~ITS3DigitReader()

o2::its3::ITS3DigitReader::~ITS3DigitReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

void o2::its3::ITS3DigitReader::connectTree ( const std::string &  filename)
protected

Definition at line 86 of file DigitReaderSpec.cxx.

◆ getBranchName()

std::string o2::its3::ITS3DigitReader::getBranchName ( const std::string &  base,
int  index 
) const
inlineprotected

Definition at line 57 of file DigitReaderSpec.h.

◆ init()

void o2::its3::ITS3DigitReader::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 41 of file DigitReaderSpec.cxx.

◆ run()

void o2::its3::ITS3DigitReader::run ( ProcessingContext context)
finalvirtual

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

Implements o2::framework::Task.

Definition at line 47 of file DigitReaderSpec.cxx.

◆ setBranchAddress()

template<typename Ptr >
void o2::its3::ITS3DigitReader::setBranchAddress ( const std::string &  base,
Ptr &  addr,
int  layer 
)
protected

Definition at line 78 of file DigitReaderSpec.cxx.

Member Data Documentation

◆ mConstLabels

std::vector<o2::dataformats::ConstMCTruthContainer<o2::MCCompLabel> > o2::its3::ITS3DigitReader::mConstLabels
protected

Definition at line 52 of file DigitReaderSpec.h.

◆ mDetName

std::string o2::its3::ITS3DigitReader::mDetName
protected

Definition at line 75 of file DigitReaderSpec.h.

◆ mDetNameLC

std::string o2::its3::ITS3DigitReader::mDetNameLC
protected

Definition at line 76 of file DigitReaderSpec.h.

◆ mDigBranchName

std::string o2::its3::ITS3DigitReader::mDigBranchName = "Digit"
protected

Definition at line 79 of file DigitReaderSpec.h.

◆ mDigits

std::array<std::vector<o2::itsmft::Digit>*, NLayers> o2::its3::ITS3DigitReader::mDigits {}
protected

Definition at line 49 of file DigitReaderSpec.h.

◆ mDigMC2ROFs

std::array<std::vector<o2::itsmft::MC2ROFRecord>*, NLayers> o2::its3::ITS3DigitReader::mDigMC2ROFs {}
protected

Definition at line 51 of file DigitReaderSpec.h.

◆ mDigMCTruthBranchName

std::string o2::its3::ITS3DigitReader::mDigMCTruthBranchName = "DigitMCTruth"
protected

Definition at line 81 of file DigitReaderSpec.h.

◆ mDigROFBranchName

std::string o2::its3::ITS3DigitReader::mDigROFBranchName = "DigitROF"
protected

Definition at line 80 of file DigitReaderSpec.h.

◆ mDigROFRec

std::array<std::vector<o2::itsmft::ROFRecord>*, NLayers> o2::its3::ITS3DigitReader::mDigROFRec {}
protected

Definition at line 50 of file DigitReaderSpec.h.

◆ mDigTreeName

std::string o2::its3::ITS3DigitReader::mDigTreeName = "o2sim"
protected

Definition at line 78 of file DigitReaderSpec.h.

◆ mDoStaggering

bool o2::its3::ITS3DigitReader::mDoStaggering = false
protected

Definition at line 73 of file DigitReaderSpec.h.

◆ mFile

std::unique_ptr<TFile> o2::its3::ITS3DigitReader::mFile
protected

Definition at line 68 of file DigitReaderSpec.h.

◆ mFileName

std::string o2::its3::ITS3DigitReader::mFileName
protected

Definition at line 77 of file DigitReaderSpec.h.

◆ mOrigin

const o2::header::DataOrigin o2::its3::ITS3DigitReader::mOrigin = o2::header::gDataOriginIT3
protected

Definition at line 55 of file DigitReaderSpec.h.

◆ mPLabels

std::array<o2::dataformats::IOMCTruthContainerView*, NLayers> o2::its3::ITS3DigitReader::mPLabels {}
protected

Definition at line 53 of file DigitReaderSpec.h.

◆ mTree

std::unique_ptr<TTree> o2::its3::ITS3DigitReader::mTree
protected

Definition at line 69 of file DigitReaderSpec.h.

◆ mUseCalib

bool o2::its3::ITS3DigitReader::mUseCalib = true
protected

Definition at line 72 of file DigitReaderSpec.h.

◆ mUseMC

bool o2::its3::ITS3DigitReader::mUseMC = true
protected

Definition at line 71 of file DigitReaderSpec.h.

◆ NLayers

constexpr int o2::its3::ITS3DigitReader::NLayers = 7
staticconstexpr

Definition at line 39 of file DigitReaderSpec.h.


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