Belle II Software  release-05-02-19
RawSecMapRootInterface Class Reference

To be used as an interface to root-stuff. More...

#include <RawSecMapRootInterface.h>

Collaboration diagram for RawSecMapRootInterface:

Public Member Functions

 RawSecMapRootInterface (const std::string &mapName, const std::string &tag)
 Constructor - prepares ttree. More...
 
 ~RawSecMapRootInterface ()
 destructor deleting the rootFile.
 
 RawSecMapRootInterface (const RawSecMapRootInterface &rawSecMapInterFace)=delete
 That class shall not be copied.
 
 RawSecMapRootInterface (RawSecMapRootInterface &&other)
 but it may be moved
 
RawSecMapRootInterfaceoperator= (const RawSecMapRootInterface &rawSecMapInterFace)=delete
 That class shall not be copied.
 
void initialize2Hit (std::vector< std::string > filterNames)
 initialize the RawSecMapRootInterface for two-hit-combinations (to be called in Module::initialize().
 
void initialize3Hit (std::vector< std::string > filterNames)
 initialize the RawSecMapRootInterface for three-hit-combinations (to be called in Module::initialize().
 
FilterValueDataSet< SecIDPair > & get2HitDataSet ()
 returns a reference to the 2-hit-dataset so one can set the relevant values.
 
FilterValueDataSet< SecIDTriplet > & get3HitDataSet ()
 returns a reference to the 3-hit-dataset so one can set the relevant values.
 
void fill2Hit ()
 fill two-hit-combinations in tree, triggers an Error if values not set yet. More...
 
void fill3Hit ()
 fill three-hit-combinations in tree, triggers an Error if values not set yet. More...
 
void write ()
 write all trees to file at end of processing.
 

Protected Attributes

TFile * m_file
 a pointer to the file where the Tree shall be stored.
 
std::string m_name
 name of the StoreObjPtr.
 
StoreObjPtr< RootMergeable< TTree > > m_tree2Hit
 interface to the TTree storing two-hit-variables.
 
FilterValueDataSet< SecIDPairm_data2Hit
 Mask for storing dataSets to be piped into 2hit-tree.
 
StoreObjPtr< RootMergeable< TTree > > m_tree3Hit
 interface to the TTree storing three-hit-variables.
 
FilterValueDataSet< SecIDTripletm_data3Hit
 Mask for storing dataSets to be piped into 3hit-tree.
 

Detailed Description

To be used as an interface to root-stuff.

Definition at line 42 of file RawSecMapRootInterface.h.

Constructor & Destructor Documentation

◆ RawSecMapRootInterface()

RawSecMapRootInterface ( const std::string &  mapName,
const std::string &  tag 
)
inline

Constructor - prepares ttree.

Without calling the initializer-functions this Object is still not working!

Definition at line 68 of file RawSecMapRootInterface.h.

71  {
72  B2FATAL("File was not opened! File name: " << fileName << " (maybe it already esists!?)");
73  }
74  m_file->cd();
75  }
76 
78  ~RawSecMapRootInterface() { if (m_file) delete m_file; }
79 
80 
82  RawSecMapRootInterface(const RawSecMapRootInterface& rawSecMapInterFace) = delete;

Member Function Documentation

◆ fill2Hit()

void fill2Hit ( )
inline

fill two-hit-combinations in tree, triggers an Error if values not set yet.

(data is reset during each fill2Hit-call).

Definition at line 201 of file RawSecMapRootInterface.h.

◆ fill3Hit()

void fill3Hit ( )
inline

fill three-hit-combinations in tree, triggers an Error if values not set yet.

(data is reset during each fill3Hit-call).

Definition at line 215 of file RawSecMapRootInterface.h.


The documentation for this class was generated from the following file:
Belle2::RawSecMapRootInterface::m_file
TFile * m_file
a pointer to the file where the Tree shall be stored.
Definition: RawSecMapRootInterface.h:46
Belle2::RawSecMapRootInterface::RawSecMapRootInterface
RawSecMapRootInterface(const std::string &mapName, const std::string &tag)
Constructor - prepares ttree.
Definition: RawSecMapRootInterface.h:68
Belle2::RawSecMapRootInterface::~RawSecMapRootInterface
~RawSecMapRootInterface()
destructor deleting the rootFile.
Definition: RawSecMapRootInterface.h:86