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

#include <ClusterReaderSpec.h>

Inherits o2::framework::Task.

Public Member Functions

 ClusterReader (bool useMC=true)
 
 ~ClusterReader () override=default
 
void init (o2::framework::InitContext &ic) final
 
void run (o2::framework::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::cpv::ClustermClusters
 
std::vector< o2::cpv::Cluster > * mClustersInp = &mClusters
 
std::vector< o2::cpv::TriggerRecordmTRs
 
std::vector< o2::cpv::TriggerRecord > * mTRsInp = &mTRs
 
o2::dataformats::MCTruthContainer< o2::MCCompLabelmMCTruth
 
o2::dataformats::MCTruthContainer< o2::MCCompLabel > * mMCTruthInp = &mMCTruth
 
o2::header::DataOrigin mOrigin = o2::header::gDataOriginCPV
 
bool mUseMC = true
 
std::unique_ptr< TFile > mFile
 
std::unique_ptr< TTree > mTree
 
std::string mInputFileName = ""
 
std::string mClusterTreeName = "o2sim"
 
std::string mClusterBranchName = "CPVCluster"
 
std::string mTRBranchName = "CPVClusterTrigRec"
 
std::string mClusterMCTruthBranchName = "CPVClusterTrueMC"
 

Detailed Description

Definition at line 33 of file ClusterReaderSpec.h.

Constructor & Destructor Documentation

◆ ClusterReader()

o2::cpv::ClusterReader::ClusterReader ( bool  useMC = true)

Definition at line 29 of file ClusterReaderSpec.cxx.

◆ ~ClusterReader()

o2::cpv::ClusterReader::~ClusterReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

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

Definition at line 59 of file ClusterReaderSpec.cxx.

◆ init()

void o2::cpv::ClusterReader::init ( o2::framework::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 34 of file ClusterReaderSpec.cxx.

◆ run()

void o2::cpv::ClusterReader::run ( o2::framework::ProcessingContext context)
finalvirtual

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

Implements o2::framework::Task.

Definition at line 41 of file ClusterReaderSpec.cxx.

Member Data Documentation

◆ mClusterBranchName

std::string o2::cpv::ClusterReader::mClusterBranchName = "CPVCluster"
protected

Definition at line 56 of file ClusterReaderSpec.h.

◆ mClusterMCTruthBranchName

std::string o2::cpv::ClusterReader::mClusterMCTruthBranchName = "CPVClusterTrueMC"
protected

Definition at line 58 of file ClusterReaderSpec.h.

◆ mClusters

std::vector<o2::cpv::Cluster> o2::cpv::ClusterReader::mClusters
protected

Definition at line 44 of file ClusterReaderSpec.h.

◆ mClustersInp

std::vector<o2::cpv::Cluster> * o2::cpv::ClusterReader::mClustersInp = &mClusters
protected

Definition at line 44 of file ClusterReaderSpec.h.

◆ mClusterTreeName

std::string o2::cpv::ClusterReader::mClusterTreeName = "o2sim"
protected

Definition at line 55 of file ClusterReaderSpec.h.

◆ mFile

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

Definition at line 52 of file ClusterReaderSpec.h.

◆ mInputFileName

std::string o2::cpv::ClusterReader::mInputFileName = ""
protected

Definition at line 54 of file ClusterReaderSpec.h.

◆ mMCTruth

o2::dataformats::MCTruthContainer<o2::MCCompLabel> o2::cpv::ClusterReader::mMCTruth
protected

Definition at line 46 of file ClusterReaderSpec.h.

◆ mMCTruthInp

o2::dataformats::MCTruthContainer<o2::MCCompLabel> * o2::cpv::ClusterReader::mMCTruthInp = &mMCTruth
protected

Definition at line 46 of file ClusterReaderSpec.h.

◆ mOrigin

o2::header::DataOrigin o2::cpv::ClusterReader::mOrigin = o2::header::gDataOriginCPV
protected

Definition at line 48 of file ClusterReaderSpec.h.

◆ mTRBranchName

std::string o2::cpv::ClusterReader::mTRBranchName = "CPVClusterTrigRec"
protected

Definition at line 57 of file ClusterReaderSpec.h.

◆ mTree

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

Definition at line 53 of file ClusterReaderSpec.h.

◆ mTRs

std::vector<o2::cpv::TriggerRecord> o2::cpv::ClusterReader::mTRs
protected

Definition at line 45 of file ClusterReaderSpec.h.

◆ mTRsInp

std::vector<o2::cpv::TriggerRecord> * o2::cpv::ClusterReader::mTRsInp = &mTRs
protected

Definition at line 45 of file ClusterReaderSpec.h.

◆ mUseMC

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

Definition at line 50 of file ClusterReaderSpec.h.


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