Project
Loading...
Searching...
No Matches
o2::itsmft::ClusterReader< N > Class Template Reference

#include <ClusterReaderSpec.h>

Inherits o2::framework::Task.

Public Member Functions

 ClusterReader ()=delete
 
 ClusterReader (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.
 

Static Public Attributes

static constexpr o2::detectors::DetID ID {N == o2::detectors::DetID::ITS ? o2::detectors::DetID::ITS : o2::detectors::DetID::MFT}
 
static constexpr o2::header::DataOrigin Origin {(N == o2::detectors::DetID::ITS) ? o2::header::gDataOriginITS : o2::header::gDataOriginMFT}
 
static constexpr int NLayers {o2::itsmft::DPLAlpideParam<N>::supportsStaggering() ? o2::itsmft::DPLAlpideParam<N>::getNLayers() : 1}
 

Protected Member Functions

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

Protected Attributes

std::array< std::vector< o2::itsmft::ROFRecord > *, NLayersmClusROFRec
 
std::array< std::vector< o2::itsmft::CompClusterExt > *, NLayersmClusterCompArray
 
std::array< std::vector< unsigned char > *, NLayersmPatternsArray
 
std::array< o2::dataformats::MCTruthContainer< o2::MCCompLabel > *, NLayersmClusterMCTruth
 
std::array< std::vector< o2::itsmft::MC2ROFRecord > *, NLayersmClusMC2ROFs
 
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

template<int N>
class o2::itsmft::ClusterReader< N >

Definition at line 36 of file ClusterReaderSpec.h.

Constructor & Destructor Documentation

◆ ClusterReader() [1/2]

template<int N>
o2::itsmft::ClusterReader< N >::ClusterReader ( )
delete

◆ ClusterReader() [2/2]

template<int N>
o2::itsmft::ClusterReader< N >::ClusterReader ( bool  useMC,
bool  usePatterns = true,
bool  triggers = true 
)

Definition at line 36 of file ClusterReaderSpec.cxx.

◆ ~ClusterReader()

template<int N>
o2::itsmft::ClusterReader< N >::~ClusterReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

template<int N>
void o2::itsmft::ClusterReader< N >::connectTree ( const std::string &  filename)
protected

Definition at line 85 of file ClusterReaderSpec.cxx.

◆ getBranchName()

template<int N>
std::string o2::itsmft::ClusterReader< N >::getBranchName ( const std::string &  base,
int  index 
) const
protected

Definition at line 114 of file ClusterReaderSpec.cxx.

◆ init()

template<int N>
void o2::itsmft::ClusterReader< N >::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 48 of file ClusterReaderSpec.cxx.

◆ run()

template<int N>
void o2::itsmft::ClusterReader< N >::run ( ProcessingContext context)
finalvirtual

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

Implements o2::framework::Task.

Definition at line 56 of file ClusterReaderSpec.cxx.

◆ setBranchAddress()

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

Definition at line 124 of file ClusterReaderSpec.cxx.

Member Data Documentation

◆ ID

◆ mClusMC2ROFs

template<int N>
std::array<std::vector<o2::itsmft::MC2ROFRecord>*, NLayers> o2::itsmft::ClusterReader< N >::mClusMC2ROFs
protected

Definition at line 59 of file ClusterReaderSpec.h.

◆ mClusROFBranchName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClusROFBranchName = "ClustersROF"
protected

Definition at line 72 of file ClusterReaderSpec.h.

◆ mClusROFRec

template<int N>
std::array<std::vector<o2::itsmft::ROFRecord>*, NLayers> o2::itsmft::ClusterReader< N >::mClusROFRec
protected

Definition at line 55 of file ClusterReaderSpec.h.

◆ mClusterCompArray

template<int N>
std::array<std::vector<o2::itsmft::CompClusterExt>*, NLayers> o2::itsmft::ClusterReader< N >::mClusterCompArray
protected

Definition at line 56 of file ClusterReaderSpec.h.

◆ mClusterCompBranchName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClusterCompBranchName = "ClusterComp"
protected

Definition at line 74 of file ClusterReaderSpec.h.

◆ mClusterMCTruth

template<int N>
std::array<o2::dataformats::MCTruthContainer<o2::MCCompLabel>*, NLayers> o2::itsmft::ClusterReader< N >::mClusterMCTruth
protected

Definition at line 58 of file ClusterReaderSpec.h.

◆ mClusterPattBranchName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClusterPattBranchName = "ClusterPatt"
protected

Definition at line 73 of file ClusterReaderSpec.h.

◆ mClustMC2ROFBranchName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClustMC2ROFBranchName = "ClustersMC2ROF"
protected

Definition at line 76 of file ClusterReaderSpec.h.

◆ mClustMCTruthBranchName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClustMCTruthBranchName = "ClusterMCTruth"
protected

Definition at line 75 of file ClusterReaderSpec.h.

◆ mClusTreeName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mClusTreeName = "o2sim"
protected

Definition at line 71 of file ClusterReaderSpec.h.

◆ mDetName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mDetName
protected

Definition at line 68 of file ClusterReaderSpec.h.

◆ mDetNameLC

template<int N>
std::string o2::itsmft::ClusterReader< N >::mDetNameLC
protected

Definition at line 69 of file ClusterReaderSpec.h.

◆ mFile

template<int N>
std::unique_ptr<TFile> o2::itsmft::ClusterReader< N >::mFile
protected

Definition at line 61 of file ClusterReaderSpec.h.

◆ mFileName

template<int N>
std::string o2::itsmft::ClusterReader< N >::mFileName
protected

Definition at line 70 of file ClusterReaderSpec.h.

◆ mPatternsArray

template<int N>
std::array<std::vector<unsigned char>*, NLayers> o2::itsmft::ClusterReader< N >::mPatternsArray
protected

Definition at line 57 of file ClusterReaderSpec.h.

◆ mTree

template<int N>
std::unique_ptr<TTree> o2::itsmft::ClusterReader< N >::mTree
protected

Definition at line 62 of file ClusterReaderSpec.h.

◆ mTriggerOut

template<int N>
bool o2::itsmft::ClusterReader< N >::mTriggerOut = true
protected

Definition at line 66 of file ClusterReaderSpec.h.

◆ mUseMC

template<int N>
bool o2::itsmft::ClusterReader< N >::mUseMC = true
protected

Definition at line 64 of file ClusterReaderSpec.h.

◆ mUsePatterns

template<int N>
bool o2::itsmft::ClusterReader< N >::mUsePatterns = true
protected

Definition at line 65 of file ClusterReaderSpec.h.

◆ NLayers

template<int N>
constexpr int o2::itsmft::ClusterReader< N >::NLayers {o2::itsmft::DPLAlpideParam<N>::supportsStaggering() ? o2::itsmft::DPLAlpideParam<N>::getNLayers() : 1}
staticconstexpr

Definition at line 41 of file ClusterReaderSpec.h.

◆ Origin

Definition at line 40 of file ClusterReaderSpec.h.


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