Logo ROOT  
Reference Guide
REveVSD.hxx
Go to the documentation of this file.
1 // @(#)root/eve7:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT7_REveVSD
13 #define ROOT7_REveVSD
14 
15 #include <ROOT/REveUtil.hxx>
16 #include <ROOT/REveVSDStructs.hxx>
17 
18 class TTree;
19 class TFile;
20 class TDirectory;
21 
22 namespace ROOT {
23 namespace Experimental {
24 
25 class REveVSD : public TObject {
26  REveVSD(const REveVSD &) = delete;
27  REveVSD &operator=(const REveVSD &) = delete;
28 
29 protected:
30  TFile *fFile{nullptr}; //!
31  TDirectory *fDirectory{nullptr}; //!
32 
33  Int_t fBuffSize{0}; //!
34  Int_t fVerbose{0}; //!
35 
36 public:
37  TTree *fTreeK{nullptr}; //! Kinematics.
38  TTree *fTreeH{nullptr}; //! Hits.
39  TTree *fTreeC{nullptr}; //! Clusters.
40  TTree *fTreeR{nullptr}; //! Reconstructed tracks.
41  TTree *fTreeKK{nullptr}; //! Kinks.
42  TTree *fTreeV0{nullptr}; //! VO's.
43  TTree *fTreeCC{nullptr}; //! Cascades.
44  TTree *fTreeGI{nullptr}; //! Sim-Rec cross references.
45 
46  REveMCTrack fK, *fpK{nullptr}; //!
47  REveHit fH, *fpH{nullptr}; //!
48  REveCluster fC, *fpC{nullptr}; //!
49  REveRecTrack fR, *fpR{nullptr}; //!
50  REveRecKink fKK, *fpKK{nullptr}; //!
51  REveRecV0 fV0, *fpV0{nullptr}; //!
52  REveRecCascade fCC, *fpCC{nullptr}; //!
53  REveMCRecCrossRef fGI, *fpGI{nullptr}; //!
54 
55 public:
56  REveVSD(const char *name = "REveVSD", const char *title = "");
57  virtual ~REveVSD();
58 
59  virtual void SetDirectory(TDirectory *dir);
60 
61  virtual void CreateTrees();
62  virtual void DeleteTrees();
63 
64  virtual void CreateBranches();
65  virtual void WriteTrees();
66 
67  virtual void LoadTrees();
68  virtual void SetBranchAddresses();
69 
71 
72  ClassDef(REveVSD, 1); // Visualization Summary Data - a collection of trees holding standard event data in experiment independent format.
73 };
74 
75 } // namespace Experimental
76 } // namespace ROOT
77 
78 #endif
ROOT::Experimental::REveVSD::fDirectory
TDirectory * fDirectory
Definition: REveVSD.hxx:31
ROOT::Experimental::REveVSD::fpC
REveCluster * fpC
Definition: REveVSD.hxx:48
ROOT::Experimental::REveMCRecCrossRef
REveMCRecCrossRef Cross-reference of sim/rec data per particle (also used in VSD).
Definition: REveVSDStructs.hxx:243
ROOT::Experimental::REveVSD::fK
REveMCTrack fK
Sim-Rec cross references.
Definition: REveVSD.hxx:46
ROOT::Experimental::REveMCTrack
REveMCTrack.
Definition: REveVSDStructs.hxx:45
ROOT::Experimental::REveVSD::fTreeV0
TTree * fTreeV0
Kinks.
Definition: REveVSD.hxx:42
ROOT::Experimental::REveVSD::fpKK
REveRecKink * fpKK
Definition: REveVSD.hxx:50
ROOT::Experimental::REveRecCascade
REveRecCascade.
Definition: REveVSDStructs.hxx:219
TTree
A TTree represents a columnar dataset.
Definition: TTree.h:79
ROOT::Experimental::REveVSD::fTreeR
TTree * fTreeR
Clusters.
Definition: REveVSD.hxx:40
ROOT::Experimental::REveVSD::fBuffSize
Int_t fBuffSize
Definition: REveVSD.hxx:33
ROOT::Experimental::REveVSD::fTreeGI
TTree * fTreeGI
Cascades.
Definition: REveVSD.hxx:44
ROOT::Experimental::REveVSD::WriteTrees
virtual void WriteTrees()
Does nothing here ... reimplemented in sub-classes.
Definition: REveVSD.cxx:143
ROOT::Experimental::REveVSD::DeleteTrees
virtual void DeleteTrees()
Delete internal trees.
Definition: REveVSD.cxx:89
ROOT::Experimental::REveVSD::fCC
REveRecCascade fCC
Definition: REveVSD.hxx:52
ROOT::Experimental::REveVSD::fV0
REveRecV0 fV0
Definition: REveVSD.hxx:51
ROOT::Experimental::REveVSD::fpGI
REveMCRecCrossRef * fpGI
Definition: REveVSD.hxx:53
ROOT::Experimental::REveVSD::DisableTObjectStreamersForVSDStruct
static void DisableTObjectStreamersForVSDStruct()
Disable TObject streamers for those VSD structs that inherit from TObject directly.
Definition: REveVSD.cxx:190
ROOT::Experimental::REveVSD::fpK
REveMCTrack * fpK
Definition: REveVSD.hxx:46
ROOT::Experimental::REveVSD::fGI
REveMCRecCrossRef fGI
Definition: REveVSD.hxx:53
ROOT::Experimental::REveVSD::CreateBranches
virtual void CreateBranches()
Create internal VSD branches.
Definition: REveVSD.cxx:103
ROOT::Experimental::REveRecKink
REveRecKink Reconstructed kink (also used in VSD).
Definition: REveVSDStructs.hxx:162
ROOT::Experimental::REveVSD::~REveVSD
virtual ~REveVSD()
Destructor.
Definition: REveVSD.cxx:58
ROOT::Experimental::REveHit
REveHit Monte Carlo hit (also used in VSD).
Definition: REveVSDStructs.hxx:83
ROOT::Experimental::REveVSD::fC
REveCluster fC
Definition: REveVSD.hxx:48
ROOT::Experimental::REveRecV0
REveRecV0.
Definition: REveVSDStructs.hxx:193
ROOT::Experimental::REveVSD::SetDirectory
virtual void SetDirectory(TDirectory *dir)
Set directory in which the trees are (or will be) created.
Definition: REveVSD.cxx:65
ROOT::Experimental::REveVSD::CreateTrees
virtual void CreateTrees()
Create internal trees.
Definition: REveVSD.cxx:73
ROOT::Experimental::REveVSD::fTreeC
TTree * fTreeC
Hits.
Definition: REveVSD.hxx:39
ROOT::Experimental::REveVSD::fTreeK
TTree * fTreeK
Definition: REveVSD.hxx:37
TFile
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:54
ROOT::Experimental::REveVSD::LoadTrees
virtual void LoadTrees()
Load internal trees from directory.
Definition: REveVSD.cxx:150
ROOT::Experimental::REveVSD::fFile
TFile * fFile
Definition: REveVSD.hxx:30
ROOT::Experimental::REveVSD::fH
REveHit fH
Definition: REveVSD.hxx:47
ROOT::Experimental::REveVSD::REveVSD
REveVSD(const REveVSD &)=delete
REveUtil.hxx
ROOT::Experimental::REveVSD::fTreeH
TTree * fTreeH
Kinematics.
Definition: REveVSD.hxx:38
ROOT::Experimental::REveVSD::operator=
REveVSD & operator=(const REveVSD &)=delete
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
ROOT::Experimental::REveVSD::fTreeKK
TTree * fTreeKK
Reconstructed tracks.
Definition: REveVSD.hxx:41
ROOT::Experimental::REveCluster
REveCluster Reconstructed cluster (also used in VSD).
Definition: REveVSDStructs.hxx:107
name
char name[80]
Definition: TGX11.cxx:110
ROOT::Experimental::REveVSD::fVerbose
Int_t fVerbose
Definition: REveVSD.hxx:34
TDirectory
Describe directory structure in memory.
Definition: TDirectory.h:40
REveVSDStructs.hxx
ROOT::Experimental::REveVSD::fpCC
REveRecCascade * fpCC
Definition: REveVSD.hxx:52
ROOT::Experimental::REveVSD
Definition: REveVSD.hxx:25
ROOT::Experimental::REveVSD::fpV0
REveRecV0 * fpV0
Definition: REveVSD.hxx:51
ROOT::Experimental::REveVSD::fR
REveRecTrack fR
Definition: REveVSD.hxx:49
ROOT::Experimental::REveRecTrackT< Float_t >
ROOT::Experimental::REveVSD::SetBranchAddresses
virtual void SetBranchAddresses()
Set branche addresses of internal trees.
Definition: REveVSD.cxx:123
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Experimental::REveVSD::fKK
REveRecKink fKK
Definition: REveVSD.hxx:50
ROOT::Experimental::REveVSD::fpH
REveHit * fpH
Definition: REveVSD.hxx:47
ROOT::Experimental::REveVSD::fTreeCC
TTree * fTreeCC
VO's.
Definition: REveVSD.hxx:43
ROOT::Experimental::REveVSD::fpR
REveRecTrack * fpR
Definition: REveVSD.hxx:49
int