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

Go to the source code of this file.

Functions

smear SetReaction ("p + p")
smear SetAngularSmearing (new TF1("delme","1 *x", 0, 1.))
 makeDistributionManager () -> Add(smear)
my_reaction Do (histo1, "_x = [p + p]->Px(); _y = [p + p]->Py();")
my_reaction Do ("wrong_cm = P3E(0.000000,0.000000,2.994728,4.076545);")
my_reaction Do (histo2, "_x = (wrong_cm - ([p,1] + [p,2]))->M();")
my_reaction Print ()
my_reaction Loop (10000)
histo1 Draw ()
new TCanvas ()

Variables

PReaction my_reaction ("2.2", "p", "p", "p p eta [dilepton [e+ e-] g]", "eta_dalitz", 1, 0, 0, 0)
TH2F * histo1 = new TH2F ("histo1", "Px vs. Py of beam", 100, -.1, .1, 100, -.1, .1)
TH1F * histo2 = new TH1F ("histo2", "Reconstructed eta mass", 100, 0.3, 0.7)

Function Documentation

◆ Do() [1/3]

my_reaction Do ( )

◆ Do() [2/3]

◆ Do() [3/3]

◆ Draw()

histo1 Draw ( )

◆ Loop()

my_reaction Loop ( 10000 )

◆ makeDistributionManager()

makeDistributionManager ( ) -> Add(smear)

◆ Print()

my_reaction Print ( )

◆ SetAngularSmearing()

smear SetAngularSmearing ( new TF1"delme","1 *x", 0, 1.)

◆ SetReaction()

smear SetReaction ( "p + p" )

◆ TCanvas()

new TCanvas ( )

Variable Documentation

◆ histo1

TH2F* histo1 = new TH2F ("histo1", "Px vs. Py of beam", 100, -.1, .1, 100, -.1, .1)

Definition at line 47 of file beamsmearing_example.C.

◆ histo2

TH1F* histo2 = new TH1F ("histo2", "Reconstructed eta mass", 100, 0.3, 0.7)

Definition at line 53 of file beamsmearing_example.C.

◆ my_reaction

PReaction my_reaction("2.2", "p", "p", "p p eta [dilepton [e+ e-] g]", "eta_dalitz", 1, 0, 0, 0) ( "2.2" ,
"p" ,
"p" ,
"p p eta g]" [dilepton[e+e-],
"eta_dalitz" ,
1 ,
0 ,
0 ,
0  )