Pluto v6.3.0
Loading...
Searching...
No Matches
user_genbod.C File Reference

Go to the source code of this file.

Functions

 makeStaticData () -> AddParticle(-1,"a", 0.1)
d Add ("A, parent")
d Add ("a, daughter, corr1")
d Add ("b, daughter, corr2")
d Add ("c, daughter")
 makeDistributionManager () -> Add(d)
f SetFunction (new TF1("f", "x*x", makeStaticData() ->GetParticleMass("a")+makeStaticData() ->GetParticleMass("b"), makeStaticData() ->GetParticleMass("A")))
f SetRange (makeStaticData() ->GetParticleMass("a")+makeStaticData() ->GetParticleMass("b"), makeStaticData() ->GetParticleMass("A"))
PReaction my_reaction ("_T1=3.5", "p", "p", "p A [a b c]")
my_reaction Print ()
my_reaction Do (hf1, "_x = ([a] + [b])->M(); ")
my_reaction Loop (100000)
hf1 Draw ("")

Variables

PGenBod * d = new PGenBod("my_genbod@A_genbod_a_b_c/genbod", "User Genbod", -1)
PFunction * f
TH1F * hf1 = new TH1F("hf1", "", 100, 0.1, 1.2)

Function Documentation

◆ Add() [1/4]

d Add ( " a,
daughter ,
corr1"  )

◆ Add() [2/4]

d Add ( " A,
parent"  )

◆ Add() [3/4]

d Add ( " b,
daughter ,
corr2"  )

◆ Add() [4/4]

d Add ( " c,
daughter"  )

◆ Do()

my_reaction Do ( hf1 )

◆ Draw()

hf1 Draw ( "" )

◆ Loop()

my_reaction Loop ( 100000 )

◆ makeDistributionManager()

makeDistributionManager ( ) -> Add(d)

◆ makeStaticData()

makeStaticData ( ) -> AddParticle(-1,"a", 0.1)

◆ my_reaction()

PReaction my_reaction ( )

Definition at line 13 of file batch_read_ntuple.C.

◆ Print()

my_reaction Print ( )

◆ SetFunction()

f SetFunction ( new TF1"f", "x*x", makeStaticData() ->GetParticleMass("a")+makeStaticData() ->GetParticleMass("b"), makeStaticData() ->GetParticleMass("A"))

◆ SetRange()

f SetRange ( makeStaticData() ->GetParticleMass("a")+makeStaticData() ->GetParticleMass("b") ,
makeStaticData() ->GetParticleMass("A")  )

Variable Documentation

◆ d

PGenBod* d = new PGenBod("my_genbod@A_genbod_a_b_c/genbod", "User Genbod", -1)

Definition at line 14 of file user_genbod.C.

◆ f

Initial value:
= new PFunction("my_corr@A_genbod_a_b_c/correlation",
"User mass correlation", -1)

Definition at line 21 of file user_genbod.C.

◆ hf1

TH1F* hf1 = new TH1F("hf1", "", 100, 0.1, 1.2)

Definition at line 33 of file user_genbod.C.