![]() |
Project
|
#include <ClusterNativeHelper.h>
Classes | |
class | Reader |
A reader class for the raw cluster native data. More... | |
class | TreeWriter |
Utility to write native cluster format to a ROOT tree. More... | |
Public Member Functions | |
ClusterNativeHelper ()=default | |
~ClusterNativeHelper ()=default | |
Static Public Member Functions | |
static void | convert (const char *fromFile, const char *toFile, const char *toTreeName="tpcnative") |
static std::unique_ptr< ClusterNativeAccess > | createClusterNativeIndex (std::unique_ptr< ClusterNative[]> &buffer, std::vector< ClusterNativeContainer > &clusters, MCLabelContainer *bufferMC=nullptr, std::vector< MCLabelContainer > *mcTruth=nullptr) |
template<typename AttributeT > | |
static int | addFlatBuffer (ClusterNativeAccess &clusterIndex, unsigned char *buffer, size_t size) |
template<typename BufferType , typename MCArrayType > | |
static void | copySectorData (ClusterNativeAccess const &index, int sector, BufferType &target, MCArrayType &mcTarget) |
Static Public Attributes | |
static constexpr unsigned int | NSectors = constants::MAXSECTOR |
static constexpr unsigned int | NPadRows = constants::MAXGLOBALPADROW |
for TPC native clusters This class supports the following utility functionality for handling of TPC ClusterNative data:
The class adds a Reader for the binary format of decoded native clusters as written by the TPC reconstruction workflow. The reader fills the access index ClusterNativeAccess in the first version. We can think of something smarter later.
The Writer class converts data from a cluster index to a ROOT tree which then allows to inspect the parameters of clusters.
Finally, ClusterNativeHelper::convert("from.root", "to.root") combines the two.
Definition at line 134 of file ClusterNativeHelper.h.
Definition at line 138 of file ClusterNativeHelper.h.
using o2::tpc::ClusterNativeHelper::ConstMCLabelContainerView = o2::dataformats::ConstMCLabelContainerView |
Definition at line 139 of file ClusterNativeHelper.h.
using o2::tpc::ClusterNativeHelper::ConstMCLabelContainerViewWithBuffer = ClusterNativeAccess::ConstMCLabelContainerViewWithBuffer |
Definition at line 140 of file ClusterNativeHelper.h.
Definition at line 137 of file ClusterNativeHelper.h.
|
default |
|
default |
|
inlinestatic |
Definition at line 163 of file ClusterNativeHelper.h.
|
static |
convert clusters stored in binary cluster native format to a tree and write to root file the cluster parameters are stored in the tree together with sector and padrow numbers.
Definition at line 26 of file ClusterNativeHelper.cxx.
|
static |
copy data of the specified sector from the index to a byte-type container optional MC labels are separated accordingly and added to a target vector.
index | the cluster index object |
target | a container object, will be resized accordingly |
mcTarget | container to receive the separated MC label objects |
Definition at line 434 of file ClusterNativeHelper.h.
|
static |
Definition at line 60 of file ClusterNativeHelper.cxx.
|
staticconstexpr |
Definition at line 146 of file ClusterNativeHelper.h.
|
staticconstexpr |
Definition at line 145 of file ClusterNativeHelper.h.