Project
Loading...
Searching...
No Matches
o2::tpc::TrackDump Class Reference

The class can be used to dump track and associated clusters to a tree to easily iterate over them and draw them. More...

#include <TrackDump.h>

Classes

struct  ClusterGlobal
 
struct  ClusterNativeAdd
 
struct  TrackInfo
 

Public Types

enum class  ClStorageType { InsideTrack = 0 , SeparateBranch = 1 , SeparateTree = 2 , SeparateFile = 3 }
 how to store clusters associated to tracks More...
 
enum class  ClUnStorageType { DontStore = 0 , SeparateTree = 1 , SeparateFile = 2 }
 how to store clusters NOT associated to tracks More...
 
using ClExcludes = std::vector< int >[MAXSECTOR][MAXGLOBALPADROW]
 

Public Member Functions

void filter (const gsl::span< const TrackTPC > tracks, ClusterNativeAccess const &clusterIndex, const gsl::span< const o2::tpc::TPCClRefElem > clRefs, const gsl::span< const MCCompLabel > mcLabels)
 
void finalize ()
 
void fillClNativeAdd (ClusterNativeAccess const &clusterIndex, std::vector< ClusterNativeAdd > &clInfos, ClExcludes *excludes=nullptr)
 

Public Attributes

std::string outputFileName {"filtered-tracks-and-clusters.root"}
 Name of the output file with the tree.
 
bool writeTracks {true}
 write global cluster information for quick drawing
 
bool writeGlobal {false}
 write global cluster information for quick drawing
 
bool writeMC {false}
 write MC track information for quick drawing
 
ClStorageType clusterStorageType {ClStorageType::InsideTrack}
 instead of storing the clusters with the tracks, store them in a separate tree
 
ClUnStorageType noTrackClusterType {ClUnStorageType::DontStore}
 store unassociated clusters in separate tree
 

Detailed Description

The class can be used to dump track and associated clusters to a tree to easily iterate over them and draw them.

Definition at line 40 of file TrackDump.h.

Member Typedef Documentation

◆ ClExcludes

using o2::tpc::TrackDump::ClExcludes = std::vector<int>[MAXSECTOR][MAXGLOBALPADROW]

Definition at line 111 of file TrackDump.h.

Member Enumeration Documentation

◆ ClStorageType

how to store clusters associated to tracks

Enumerator
InsideTrack 
SeparateBranch 
SeparateTree 
SeparateFile 

Definition at line 97 of file TrackDump.h.

◆ ClUnStorageType

how to store clusters NOT associated to tracks

Enumerator
DontStore 
SeparateTree 
SeparateFile 

Definition at line 105 of file TrackDump.h.

Member Function Documentation

◆ fillClNativeAdd()

void TrackDump::fillClNativeAdd ( ClusterNativeAccess const &  clusterIndex,
std::vector< ClusterNativeAdd > &  clInfos,
ClExcludes excludes = nullptr 
)

Definition at line 142 of file TrackDump.cxx.

◆ filter()

void TrackDump::filter ( const gsl::span< const TrackTPC tracks,
ClusterNativeAccess const &  clusterIndex,
const gsl::span< const o2::tpc::TPCClRefElem clRefs,
const gsl::span< const MCCompLabel mcLabels 
)

Definition at line 29 of file TrackDump.cxx.

◆ finalize()

void TrackDump::finalize ( )

Definition at line 133 of file TrackDump.cxx.

Member Data Documentation

◆ clusterStorageType

ClStorageType o2::tpc::TrackDump::clusterStorageType {ClStorageType::InsideTrack}

instead of storing the clusters with the tracks, store them in a separate tree

Definition at line 121 of file TrackDump.h.

◆ noTrackClusterType

ClUnStorageType o2::tpc::TrackDump::noTrackClusterType {ClUnStorageType::DontStore}

store unassociated clusters in separate tree

Definition at line 122 of file TrackDump.h.

◆ outputFileName

std::string o2::tpc::TrackDump::outputFileName {"filtered-tracks-and-clusters.root"}

Name of the output file with the tree.

Definition at line 117 of file TrackDump.h.

◆ writeGlobal

bool o2::tpc::TrackDump::writeGlobal {false}

write global cluster information for quick drawing

Definition at line 119 of file TrackDump.h.

◆ writeMC

bool o2::tpc::TrackDump::writeMC {false}

write MC track information for quick drawing

Definition at line 120 of file TrackDump.h.

◆ writeTracks

bool o2::tpc::TrackDump::writeTracks {true}

write global cluster information for quick drawing

Definition at line 118 of file TrackDump.h.


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