StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StHbtMaker
Cut
ntupleTrack.h
1
/***************************************************************************
2
*
3
* 12 July 2000
4
*
5
* Author: Dominik Flierl, flierl@bnl.gov
6
***************************************************************************
7
*
8
* Description:
9
* fill track information into an ntuple in order to determine the cuts
10
*
11
***************************************************************************/
12
13
#ifndef ntupleTrack_hh
14
#define ntupleTrack_hh
15
16
#include "StHbtMaker/Infrastructure/StHbtTFile.hh"
17
#include "StHbtMaker/Base/StHbtTrackCut.h"
18
#ifdef __ROOT__
19
20
class
ntupleTrack :
public
StHbtTrackCut
21
{
22
// define ntuple content in a nested struct
23
struct
mTrack_t
24
{
25
int
charge;
26
int
nhits;
27
float
dca;
28
float
pt;
29
float
p;
30
float
px;
31
float
py;
32
float
pz;
33
float
prapidity;
34
};
35
36
private
:
37
// my tree
38
StHbtTree* mTree ;
39
// my tree consists of mtracks
40
mTrack_t mtrack ;
41
42
public
:
43
ntupleTrack();
44
~ntupleTrack();
45
46
// called for every track, returns in this case always true
47
bool
Pass(
const
StHbtTrack
*);
48
49
// this one has to be provided
50
StHbtString Report();
51
52
// access the tree from
53
StHbtTree* GetNtupleTrack() {
return
mTree; } ;
54
55
ClassDef(ntupleTrack, 0)
56
};
57
58
59
#endif // ifdeff ROOT
60
#endif // ifdeff ntupleTrack_hh
StHbtTrackCut
Definition:
StHbtTrackCut.h:26
StHbtTrack
Definition:
StHbtTrack.hh:136
Generated by
1.8.5