14 #include "StHbtMaker/Cut/ntupleEvent.h"
20 ntupleEvent::ntupleEvent()
23 mTree =
new TTree(
"EventTree",
"A Tree with all Event in order to set the cuts");
25 mTree->Branch(
"track",&mEvent,
"ctbMult/I:numOfTpcHits/I:numOfTracks/I:numOfGoodTracks/I:vertexZ/F:vertexX/F:vertexY/F");
28 ntupleEvent::~ntupleEvent()
34 bool ntupleEvent::Pass(
const StHbtEvent* event)
37 mEvent.ctbMult =
event->CtbMult() ;
38 mEvent.numOfTpcHits =
event->NumberOfTpcHits() ;
39 mEvent.numOfTracks =
event->NumberOfTracks() ;
40 mEvent.numOfGoodTracks =
event->NumberOfGoodTracks() ;
41 mEvent.vertexZ =
event->PrimVertPos().z() ;
42 mEvent.vertexX =
event->PrimVertPos().x() ;
43 mEvent.vertexY =
event->PrimVertPos().y() ;
48 StHbtString ntupleEvent::Report()
52 sprintf(Ctemp,
"No actual event cut applied ! This cut class just fills a tree.\n");