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

class to dump calibration data to a ttree for simple visualisation More...

#include <CalibTreeDump.h>

Public Types

using DataTypes = CalDet< float >
 
using CalPadMapType = std::unordered_map< std::string, DataTypes >
 

Public Member Functions

 CalibTreeDump ()=default
 
 ~CalibTreeDump ()=default
 
template<typename T >
void add (CalDet< T > *calDet)
 Add CalDet object.
 
template<typename T >
void add (CalArray< T > *calArray)
 Add CalArray objects.
 
void add (CalPadMapType &calibs)
 
void setAddFEEInfo (bool add=true)
 Set adding of FEE mapping to the tree.
 
void addCalPads (const std::string_view file, const std::string_view calPadNames)
 Add CalPad objects from a file.
 
void dumpToFile (const std::string filename="CalibTree.root")
 Dump the registered calibration data to file.
 
void addInfo (const std::string_view name, float value)
 Add complementary information.
 

Detailed Description

class to dump calibration data to a ttree for simple visualisation

This class class provided functionanlity for dumping calibration data from CalDet and CalArray objects to a TTree for easy visualisation

origin: TPC

Todo:
At present this will only work for the PadSubset type ROC
Author
Jens Wiechula, Jens..nosp@m.Wiec.nosp@m.hula@.nosp@m.ikf..nosp@m.uni-f.nosp@m.rank.nosp@m.furt..nosp@m.de

Definition at line 48 of file CalibTreeDump.h.

Member Typedef Documentation

◆ CalPadMapType

using o2::tpc::CalibTreeDump::CalPadMapType = std::unordered_map<std::string, DataTypes>

Definition at line 52 of file CalibTreeDump.h.

◆ DataTypes

Definition at line 51 of file CalibTreeDump.h.

Constructor & Destructor Documentation

◆ CalibTreeDump()

o2::tpc::CalibTreeDump::CalibTreeDump ( )
default

◆ ~CalibTreeDump()

o2::tpc::CalibTreeDump::~CalibTreeDump ( )
default

Member Function Documentation

◆ add() [1/3]

template<typename T >
void o2::tpc::CalibTreeDump::add ( CalArray< T > *  calArray)
inline

Add CalArray objects.

Definition at line 67 of file CalibTreeDump.h.

◆ add() [2/3]

template<typename T >
void o2::tpc::CalibTreeDump::add ( CalDet< T > *  calDet)
inline

Add CalDet object.

Definition at line 59 of file CalibTreeDump.h.

◆ add() [3/3]

void CalibTreeDump::add ( CalPadMapType calibs)

Add map of CalArray objects changes the name of the CalDet to the map name to have unique identifier

Definition at line 38 of file CalibTreeDump.cxx.

◆ addCalPads()

void CalibTreeDump::addCalPads ( const std::string_view  file,
const std::string_view  calPadNames 
)

Add CalPad objects from a file.

Definition at line 46 of file CalibTreeDump.cxx.

◆ addInfo()

void o2::tpc::CalibTreeDump::addInfo ( const std::string_view  name,
float  value 
)
inline

Add complementary information.

Definition at line 86 of file CalibTreeDump.h.

◆ dumpToFile()

void CalibTreeDump::dumpToFile ( const std::string  filename = "CalibTree.root")

Dump the registered calibration data to file.

Definition at line 55 of file CalibTreeDump.cxx.

◆ setAddFEEInfo()

void o2::tpc::CalibTreeDump::setAddFEEInfo ( bool  add = true)
inline

Set adding of FEE mapping to the tree.

Definition at line 77 of file CalibTreeDump.h.


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