Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PWA
Pawian
Commits
eaff7dae
Commit
eaff7dae
authored
13 years ago
by
Jan Schulze
Browse files
Options
Downloads
Patches
Plain Diff
PspGen: changed output file to inputfilename.outf and added status outputs during runtime
parent
44edc3a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PspGen/PspGenTestApp.cc
+9
-5
9 additions, 5 deletions
PspGen/PspGenTestApp.cc
with
9 additions
and
5 deletions
PspGen/PspGenTestApp.cc
+
9
−
5
View file @
eaff7dae
...
...
@@ -18,12 +18,15 @@
#include
<TApplication.h>
#include
<iostream>
#include
<string>
using
namespace
std
;
int
main
(
int
argc
,
char
*
argv
[])
{
HepMC
::
IO_GenEvent
hepMC_out
(
"
HepMCEvt
.out"
,
std
::
ios
::
out
);
HepMC
::
IO_GenEvent
hepMC_out
(
"
phspEvents_1mio_RndSeed4703
.out"
,
std
::
ios
::
out
);
EvtSimpleRandomEngine
myRandom
(
47
11
);
EvtSimpleRandomEngine
myRandom
(
47
03
);
EvtRandom
::
setRandomEngine
(
&
myRandom
);
// variables for the production e+ e- Psi2s
...
...
@@ -75,6 +78,7 @@ int main(int argc, char* argv[])
TH1F
cosThetaKpi
(
"cosThetaKpi"
,
"cosThetaKpi"
,
512
,
-
1.2
,
1.2
);
for
(
int
count
=
0
;
count
<
1000000
;
count
++
)
{
if
(
count
%
100000
==
0
)
cout
<<
"Event "
<<
count
<<
" generated."
<<
endl
;
EvtGenKine
::
PhaseSpace
(
firstNdaug
,
firstMass
,
firstP4
,
firstMp
);
EvtGenKine
::
PhaseSpace
(
ndaug
,
mass
,
p4
,
firstP4
[
0
].
mass
());
...
...
@@ -84,7 +88,7 @@ int main(int argc, char* argv[])
// dalitz.Fill((p4[0]+p4[1])*(p4[0]+p4[1]), (p4[1]+p4[2])*(p4[1]+p4[2]));
HepMC
::
GenEvent
*
evt
=
new
HepMC
::
GenEvent
(
20
,
count
);
HepMC
::
GenEvent
*
evt
=
new
HepMC
::
GenEvent
(
20
,
count
);
evt
->
use_units
(
HepMC
::
Units
::
GEV
,
HepMC
::
Units
::
MM
);
// create production vertex
...
...
@@ -117,7 +121,7 @@ int main(int argc, char* argv[])
vtx_chi_c0
->
add_particle_out
(
new
HepMC
::
GenParticle
(
HepMC
::
FourVector
(
p4
[
3
].
get
(
1
),
p4
[
3
].
get
(
2
),
p4
[
3
].
get
(
3
),
p4
[
3
].
get
(
0
)),
111
,
2
)
);
evt
->
print
(
std
::
cout
);
//
evt->print(std::cout);
hepMC_out
<<
evt
;
delete
evt
;
...
...
@@ -138,9 +142,9 @@ int main(int argc, char* argv[])
(
p4
[
0
]
+
p4
[
2
]).
get
(
2
)
*
(
p4
[
0
]
+
p4
[
2
]).
get
(
2
)
+
(
p4
[
0
]
+
p4
[
2
]).
get
(
3
)
*
(
p4
[
0
]
+
p4
[
2
]).
get
(
3
)),
1.
);
}
cout
<<
"Finished!"
<<
endl
;
// massKpipi.Draw();
// rootapp->Run();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment