14 #include "StHbtMaker/Cut/ntupleTrack.h"
19 ntupleTrack::ntupleTrack()
22 mTree =
new TTree(
"TrackTree",
"A Tree with all tracks in order to set the cuts");
24 mTree->Branch(
"track",&mtrack,
"charge/I:nhits/I:dca/F:pt/F:p/F:px/F:py/F:pz/F:prapidity/F");
27 ntupleTrack::~ntupleTrack()
36 mtrack.charge = track->Charge() ;
37 mtrack.nhits = track->NHits() ;
38 mtrack.dca = track->DCAz() ;
39 mtrack.pt = track->P().perp() ;
40 mtrack.p = track->P().magnitude() ;
41 mtrack.px = track->P().x() ;
42 mtrack.py = track->P().y() ;
43 mtrack.pz = track->P().z() ;
44 mtrack.prapidity = track->P().pseudoRapidity() ;
49 StHbtString ntupleTrack::Report()
53 sprintf(Ctemp,
"No actual track cut applied ! This cut class just fills a tree.\n");