29 gSystem->Load(
"St_base");
30 gSystem->Load(
"StChain");
31 gSystem->Load(
"StUtilities");
32 gSystem->Load(
"StarClassLibrary");
33 gSystem->Load(
"StEvent");
34 gSystem->Load(
"StStrangeMuDstMaker");
38 new TCanvas(
"c1",
"Getting Started with StV0MiniDst",0,0,600,600);
41 p1 =
new TPad(
"p1",
"1st Pad",0.01,0.51,0.49,0.99,10,0,0);
42 p2 =
new TPad(
"p2",
"2nd Pad",0.51,0.51,0.99,0.99,10,0,0);
43 p3 =
new TPad(
"p3",
"3rd Pad",0.01,0.01,0.49,0.49,10,0,0);
44 p4 =
new TPad(
"p4",
"4th Pad",0.51,0.01,0.99,0.49,10,0,0);
55 hX =
new TH1F(
"mX",
"X coordinate",100,-50,50);
56 hY =
new TH1F(
"mY",
"Y coordinate",100,-50,50);
57 hZ =
new TH1F(
"mZ",
"Z coordinate",100,-100,100);
58 hMassLambda =
new TH1F(
"mMassLambda",
"Lambda Mass",100,1.08,1.2);
61 const Int_t Nevents = 10000;
73 Int_t ierr = chain.Init();
74 if( ierr ) { chain.Fatal(ierr,
"on init");
return; }
76 gMessMgr->Info(
"Here are the cuts used to create this strangeness DST:");
77 strangeDst.Cuts().List();
80 for( Int_t i=0; i<Nevents; i++ ) {
81 if( chain.
Make(i) )
break;
83 for( Int_t j=0; j<strangeDst.GetNV0(); j++ ) {
85 hX->Fill(v0m->decayVertexV0X());
86 hY->Fill(v0m->decayVertexV0Y());
91 if( i != Nevents) chain.
Clear();
92 printf(
"*** Finished processing event %d\n",i);
114 void readStrangeMuDst() {
Float_t massLambda()
Mass assuming lambda hypothesis.
virtual void Clear(Option_t *option="")
User defined functions.
Float_t decayVertexV0Z() const
Coordinates of decay vertex.