Project
Loading...
Searching...
No Matches
o2::vertexing::PrimaryVertexReader Class Reference

Inherits o2::framework::Task.

Public Member Functions

 PrimaryVertexReader (bool useMC)
 
 ~PrimaryVertexReader () 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 ()
 

Protected Attributes

int mVerbose = 0
 
bool mUseMC = false
 
std::vector< PVertexmVertices
 
std::vector< PVertex > * mVerticesPtr = &mVertices
 
std::vector< LabelmLabels
 
std::vector< Label > * mLabelsPtr = &mLabels
 
std::vector< V2TRefmPV2MatchIdxRef
 
std::vector< V2TRef > * mPV2MatchIdxRefPtr = &mPV2MatchIdxRef
 
std::vector< GIndexmPV2MatchIdx
 
std::vector< GIndex > * mPV2MatchIdxPtr = &mPV2MatchIdx
 
std::unique_ptr< TFile > mFile
 
std::unique_ptr< TTree > mTree
 
std::string mFileName = ""
 
std::string mFileNameMatches = ""
 
std::string mVertexTreeName = "o2sim"
 
std::string mVertexBranchName = "PrimaryVertex"
 
std::string mVertexTrackIDsBranchName = "PVTrackIndices"
 
std::string mVertex2TrackIDRefsBranchName = "PV2TrackRefs"
 
std::string mVertexLabelsBranchName = "PVMCTruth"
 

Detailed Description

Definition at line 37 of file PrimaryVertexReaderSpec.cxx.

Constructor & Destructor Documentation

◆ PrimaryVertexReader()

o2::vertexing::PrimaryVertexReader::PrimaryVertexReader ( bool  useMC)
inline

Definition at line 45 of file PrimaryVertexReaderSpec.cxx.

◆ ~PrimaryVertexReader()

o2::vertexing::PrimaryVertexReader::~PrimaryVertexReader ( )
overridedefault

Member Function Documentation

◆ connectTree()

void o2::vertexing::PrimaryVertexReader::connectTree ( )
protected

Definition at line 149 of file PrimaryVertexReaderSpec.cxx.

◆ init()

void o2::vertexing::PrimaryVertexReader::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 72 of file PrimaryVertexReaderSpec.cxx.

◆ run()

void o2::vertexing::PrimaryVertexReader::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 80 of file PrimaryVertexReaderSpec.cxx.

Member Data Documentation

◆ mFile

std::unique_ptr<TFile> o2::vertexing::PrimaryVertexReader::mFile
protected

Definition at line 61 of file PrimaryVertexReaderSpec.cxx.

◆ mFileName

std::string o2::vertexing::PrimaryVertexReader::mFileName = ""
protected

Definition at line 63 of file PrimaryVertexReaderSpec.cxx.

◆ mFileNameMatches

std::string o2::vertexing::PrimaryVertexReader::mFileNameMatches = ""
protected

Definition at line 64 of file PrimaryVertexReaderSpec.cxx.

◆ mLabels

std::vector<Label> o2::vertexing::PrimaryVertexReader::mLabels
protected

Definition at line 57 of file PrimaryVertexReaderSpec.cxx.

◆ mLabelsPtr

std::vector<Label> * o2::vertexing::PrimaryVertexReader::mLabelsPtr = &mLabels
protected

Definition at line 57 of file PrimaryVertexReaderSpec.cxx.

◆ mPV2MatchIdx

std::vector<GIndex> o2::vertexing::PrimaryVertexReader::mPV2MatchIdx
protected

Definition at line 59 of file PrimaryVertexReaderSpec.cxx.

◆ mPV2MatchIdxPtr

std::vector<GIndex> * o2::vertexing::PrimaryVertexReader::mPV2MatchIdxPtr = &mPV2MatchIdx
protected

Definition at line 59 of file PrimaryVertexReaderSpec.cxx.

◆ mPV2MatchIdxRef

std::vector<V2TRef> o2::vertexing::PrimaryVertexReader::mPV2MatchIdxRef
protected

Definition at line 58 of file PrimaryVertexReaderSpec.cxx.

◆ mPV2MatchIdxRefPtr

std::vector<V2TRef> * o2::vertexing::PrimaryVertexReader::mPV2MatchIdxRefPtr = &mPV2MatchIdxRef
protected

Definition at line 58 of file PrimaryVertexReaderSpec.cxx.

◆ mTree

std::unique_ptr<TTree> o2::vertexing::PrimaryVertexReader::mTree
protected

Definition at line 62 of file PrimaryVertexReaderSpec.cxx.

◆ mUseMC

bool o2::vertexing::PrimaryVertexReader::mUseMC = false
protected

Definition at line 54 of file PrimaryVertexReaderSpec.cxx.

◆ mVerbose

int o2::vertexing::PrimaryVertexReader::mVerbose = 0
protected

Definition at line 53 of file PrimaryVertexReaderSpec.cxx.

◆ mVertex2TrackIDRefsBranchName

std::string o2::vertexing::PrimaryVertexReader::mVertex2TrackIDRefsBranchName = "PV2TrackRefs"
protected

Definition at line 68 of file PrimaryVertexReaderSpec.cxx.

◆ mVertexBranchName

std::string o2::vertexing::PrimaryVertexReader::mVertexBranchName = "PrimaryVertex"
protected

Definition at line 66 of file PrimaryVertexReaderSpec.cxx.

◆ mVertexLabelsBranchName

std::string o2::vertexing::PrimaryVertexReader::mVertexLabelsBranchName = "PVMCTruth"
protected

Definition at line 69 of file PrimaryVertexReaderSpec.cxx.

◆ mVertexTrackIDsBranchName

std::string o2::vertexing::PrimaryVertexReader::mVertexTrackIDsBranchName = "PVTrackIndices"
protected

Definition at line 67 of file PrimaryVertexReaderSpec.cxx.

◆ mVertexTreeName

std::string o2::vertexing::PrimaryVertexReader::mVertexTreeName = "o2sim"
protected

Definition at line 65 of file PrimaryVertexReaderSpec.cxx.

◆ mVertices

std::vector<PVertex> o2::vertexing::PrimaryVertexReader::mVertices
protected

Definition at line 56 of file PrimaryVertexReaderSpec.cxx.

◆ mVerticesPtr

std::vector<PVertex> * o2::vertexing::PrimaryVertexReader::mVerticesPtr = &mVertices
protected

Definition at line 56 of file PrimaryVertexReaderSpec.cxx.


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