ATLAS Offline Software
|
This class provides a simple interface to write Surfaces to a root tree. More...
#include <SurfaceNtupleBranch.h>
Public Member Functions | |
void | initForWrite (TTree &tree, const std::string &prefix="") |
initialize class for writing More... | |
void | initForRead (TTree &tree, const std::string &prefix="") |
initialize class for reading More... | |
void | fill (const Trk::Surface &surface) |
fill a vector More... | |
Public Attributes | |
TransformNtupleBranch | m_transform |
data More... | |
VectorNtupleBranch | m_center |
VectorNtupleBranch | m_normal |
int | m_id |
This class provides a simple interface to write Surfaces to a root tree.
Usage:
TTree* myTree = new TTree("data","data"); SurfaceNtupleBranch branch; branch.initForWrite(*myTree,"");
for(int i=0;i<n;++i){ branch.fill( ); myTree->Fill(); }
Definition at line 36 of file SurfaceNtupleBranch.h.
void Trk::SurfaceNtupleBranch::fill | ( | const Trk::Surface & | surface | ) |
void Trk::SurfaceNtupleBranch::initForRead | ( | TTree & | tree, |
const std::string & | prefix = "" |
||
) |
void Trk::SurfaceNtupleBranch::initForWrite | ( | TTree & | tree, |
const std::string & | prefix = "" |
||
) |
VectorNtupleBranch Trk::SurfaceNtupleBranch::m_center |
Definition at line 49 of file SurfaceNtupleBranch.h.
int Trk::SurfaceNtupleBranch::m_id |
Definition at line 51 of file SurfaceNtupleBranch.h.
VectorNtupleBranch Trk::SurfaceNtupleBranch::m_normal |
Definition at line 50 of file SurfaceNtupleBranch.h.
TransformNtupleBranch Trk::SurfaceNtupleBranch::m_transform |
data
Definition at line 48 of file SurfaceNtupleBranch.h.