Project
Loading...
Searching...
No Matches
o2::itsmft::ClusterReader Class Reference

#include <ClusterReaderSpec.h>

Inherits o2::framework::Task.

Inherited by o2::itsmft::ITSClusterReader, and o2::itsmft::MFTClusterReader.

Public Member Functions

 ClusterReader ()=delete
 
 ClusterReader (o2::detectors::DetID id, bool useMC, bool usePatterns=true, bool triggers=true)
 
 ~ClusterReader () 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::itsmft::ROFRecordmClusROFRec
 
std::vector< o2::itsmft::ROFRecord > * mClusROFRecPtr = &mClusROFRec
 
std::vector< o2::itsmft::CompClusterExtmClusterCompArray
 
std::vector< o2::itsmft::CompClusterExt > * mClusterCompArrayPtr = &mClusterCompArray
 
std::vector< unsigned charmPatternsArray
 
std::vector< unsigned char > * mPatternsArrayPtr = &mPatternsArray
 
o2::dataformats::MCTruthContainer< o2::MCCompLabelmClusterMCTruth
 
o2::dataformats::MCTruthContainer< o2::MCCompLabel > * mClusterMCTruthPtr = &mClusterMCTruth
 
std::vector< o2::itsmft::MC2ROFRecordmClusMC2ROFs
 
std::vector< o2::itsmft::MC2ROFRecord > * mClusMC2ROFsPtr = &mClusMC2ROFs
 
o2::header::DataOrigin mOrigin = o2::header::gDataOriginInvalid
 
std::unique_ptr< TFile > mFile
 
std::unique_ptr< TTree > mTree
 
bool mUseMC = true
 
bool mUsePatterns = true
 
bool mTriggerOut = true
 
std::string mDetName = ""
 
std::string mDetNameLC = ""
 
std::string mFileName = ""
 
std::string mClusTreeName = "o2sim"
 
std::string mClusROFBranchName = "ClustersROF"
 
std::string mClusterPattBranchName = "ClusterPatt"
 
std::string mClusterCompBranchName = "ClusterComp"
 
std::string mClustMCTruthBranchName = "ClusterMCTruth"
 
std::string mClustMC2ROFBranchName = "ClustersMC2ROF"
 

Detailed Description

Definition at line 36 of file ClusterReaderSpec.h.

Constructor & Destructor Documentation

◆ ClusterReader() [1/2]

o2::itsmft::ClusterReader::ClusterReader ( )
delete

◆ ClusterReader() [2/2]

o2::itsmft::ClusterReader::ClusterReader ( o2::detectors::DetID  id,
bool  useMC,
bool  usePatterns = true,
bool  triggers = true 
)

Definition at line 34 of file ClusterReaderSpec.cxx.

◆ ~ClusterReader()

o2::itsmft::ClusterReader::~ClusterReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

void o2::itsmft::ClusterReader::connectTree ( const std::string &  filename)
protected

Definition at line 80 of file ClusterReaderSpec.cxx.

◆ init()

void o2::itsmft::ClusterReader::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 44 of file ClusterReaderSpec.cxx.

◆ run()

void o2::itsmft::ClusterReader::run ( ProcessingContext context)
finalvirtual

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

Implements o2::framework::Task.

Definition at line 51 of file ClusterReaderSpec.cxx.

Member Data Documentation

◆ mClusMC2ROFs

std::vector<o2::itsmft::MC2ROFRecord> o2::itsmft::ClusterReader::mClusMC2ROFs
protected

Definition at line 52 of file ClusterReaderSpec.h.

◆ mClusMC2ROFsPtr

std::vector<o2::itsmft::MC2ROFRecord> * o2::itsmft::ClusterReader::mClusMC2ROFsPtr = &mClusMC2ROFs
protected

Definition at line 52 of file ClusterReaderSpec.h.

◆ mClusROFBranchName

std::string o2::itsmft::ClusterReader::mClusROFBranchName = "ClustersROF"
protected

Definition at line 67 of file ClusterReaderSpec.h.

◆ mClusROFRec

std::vector<o2::itsmft::ROFRecord> o2::itsmft::ClusterReader::mClusROFRec
protected

Definition at line 48 of file ClusterReaderSpec.h.

◆ mClusROFRecPtr

std::vector<o2::itsmft::ROFRecord> * o2::itsmft::ClusterReader::mClusROFRecPtr = &mClusROFRec
protected

Definition at line 48 of file ClusterReaderSpec.h.

◆ mClusterCompArray

std::vector<o2::itsmft::CompClusterExt> o2::itsmft::ClusterReader::mClusterCompArray
protected

Definition at line 49 of file ClusterReaderSpec.h.

◆ mClusterCompArrayPtr

std::vector<o2::itsmft::CompClusterExt> * o2::itsmft::ClusterReader::mClusterCompArrayPtr = &mClusterCompArray
protected

Definition at line 49 of file ClusterReaderSpec.h.

◆ mClusterCompBranchName

std::string o2::itsmft::ClusterReader::mClusterCompBranchName = "ClusterComp"
protected

Definition at line 69 of file ClusterReaderSpec.h.

◆ mClusterMCTruth

o2::dataformats::MCTruthContainer<o2::MCCompLabel> o2::itsmft::ClusterReader::mClusterMCTruth
protected

Definition at line 51 of file ClusterReaderSpec.h.

◆ mClusterMCTruthPtr

o2::dataformats::MCTruthContainer<o2::MCCompLabel> * o2::itsmft::ClusterReader::mClusterMCTruthPtr = &mClusterMCTruth
protected

Definition at line 51 of file ClusterReaderSpec.h.

◆ mClusterPattBranchName

std::string o2::itsmft::ClusterReader::mClusterPattBranchName = "ClusterPatt"
protected

Definition at line 68 of file ClusterReaderSpec.h.

◆ mClustMC2ROFBranchName

std::string o2::itsmft::ClusterReader::mClustMC2ROFBranchName = "ClustersMC2ROF"
protected

Definition at line 71 of file ClusterReaderSpec.h.

◆ mClustMCTruthBranchName

std::string o2::itsmft::ClusterReader::mClustMCTruthBranchName = "ClusterMCTruth"
protected

Definition at line 70 of file ClusterReaderSpec.h.

◆ mClusTreeName

std::string o2::itsmft::ClusterReader::mClusTreeName = "o2sim"
protected

Definition at line 66 of file ClusterReaderSpec.h.

◆ mDetName

std::string o2::itsmft::ClusterReader::mDetName = ""
protected

Definition at line 63 of file ClusterReaderSpec.h.

◆ mDetNameLC

std::string o2::itsmft::ClusterReader::mDetNameLC = ""
protected

Definition at line 64 of file ClusterReaderSpec.h.

◆ mFile

std::unique_ptr<TFile> o2::itsmft::ClusterReader::mFile
protected

Definition at line 56 of file ClusterReaderSpec.h.

◆ mFileName

std::string o2::itsmft::ClusterReader::mFileName = ""
protected

Definition at line 65 of file ClusterReaderSpec.h.

◆ mOrigin

o2::header::DataOrigin o2::itsmft::ClusterReader::mOrigin = o2::header::gDataOriginInvalid
protected

Definition at line 54 of file ClusterReaderSpec.h.

◆ mPatternsArray

std::vector<unsigned char> o2::itsmft::ClusterReader::mPatternsArray
protected

Definition at line 50 of file ClusterReaderSpec.h.

◆ mPatternsArrayPtr

std::vector<unsigned char> * o2::itsmft::ClusterReader::mPatternsArrayPtr = &mPatternsArray
protected

Definition at line 50 of file ClusterReaderSpec.h.

◆ mTree

std::unique_ptr<TTree> o2::itsmft::ClusterReader::mTree
protected

Definition at line 57 of file ClusterReaderSpec.h.

◆ mTriggerOut

bool o2::itsmft::ClusterReader::mTriggerOut = true
protected

Definition at line 61 of file ClusterReaderSpec.h.

◆ mUseMC

bool o2::itsmft::ClusterReader::mUseMC = true
protected

Definition at line 59 of file ClusterReaderSpec.h.

◆ mUsePatterns

bool o2::itsmft::ClusterReader::mUsePatterns = true
protected

Definition at line 60 of file ClusterReaderSpec.h.


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