Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mpdroot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Valery Kondratiev
mpdroot
Commits
49277aeb
Commit
49277aeb
authored
8 years ago
by
wielanek
Browse files
Options
Downloads
Patches
Plain Diff
Enabling freezout stroring in MpdVHLLEGenerator.
parent
4200c1f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
generators/MpdVHLLEGenerator.cxx
+10
-3
10 additions, 3 deletions
generators/MpdVHLLEGenerator.cxx
generators/MpdVHLLEGenerator.h
+3
-0
3 additions, 0 deletions
generators/MpdVHLLEGenerator.h
with
13 additions
and
3 deletions
generators/MpdVHLLEGenerator.cxx
+
10
−
3
View file @
49277aeb
...
...
@@ -3,13 +3,15 @@
MpdVHLLEGenerator
::
MpdVHLLEGenerator
()
:
FairGenerator
(),
fInputFile
(
NULL
),
fFileName
(
""
)
{
fFileName
(
""
)
,
fFreezout
(
NULL
){
}
MpdVHLLEGenerator
::
MpdVHLLEGenerator
(
TString
fileName
,
Bool_t
isCascade
)
:
FairGenerator
(),
fInputFile
(
NULL
),
fFileName
(
fileName
)
{
fFileName
(
fileName
),
fFreezout
(
NULL
){
// fFileName = fileName;
cout
<<
"-I MpdVHLLEGenerator: Opening input file "
<<
fFileName
<<
endl
;
fInputFile
=
new
TFile
(
fFileName
.
Data
());
...
...
@@ -31,10 +33,13 @@ fFileName(fileName) {
fDstTree
->
SetBranchAddress
(
"y"
,
fY
);
fDstTree
->
SetBranchAddress
(
"z"
,
fZ
);
fDstTree
->
SetBranchAddress
(
"E"
,
fE
);
fDstTree
->
SetBranchAddress
(
"t"
,
fT
);
fDstTree
->
SetBranchAddress
(
"npart"
,
&
fNpart
);
fDstTree
->
SetBranchAddress
(
"id"
,
fPID
);
fEventNumber
=
0
;
MpdFreezoutGenerator
*
freezgen
=
MpdFreezoutGenerator
::
Instance
();
fFreezout
=
freezgen
->
GetArray
();
}
MpdVHLLEGenerator
::~
MpdVHLLEGenerator
()
{
...
...
@@ -66,9 +71,11 @@ Bool_t MpdVHLLEGenerator::ReadEvent(FairPrimaryGenerator* primGen) {
// event->SetB(b);
event
->
MarkSet
(
kTRUE
);
}
fFreezout
->
Clear
();
for
(
Int_t
iTrack
=
0
;
iTrack
<
fNpart
;
iTrack
++
)
{
primGen
->
AddTrack
(
fPID
[
iTrack
],
fPx
[
iTrack
],
fPy
[
iTrack
],
fPz
[
iTrack
],
fX
[
iTrack
],
fY
[
iTrack
],
fZ
[
iTrack
]);
TLorentzVector
*
freezpos
=
(
TLorentzVector
*
)
fFreezout
->
ConstructedAt
(
iTrack
);
freezpos
->
SetXYZT
(
fX
[
iTrack
],
fY
[
iTrack
],
fZ
[
iTrack
],
fT
[
iTrack
]);
// cout << iTrack << " " << fPID[iTrack] << " " <<
// fPx[iTrack] << " " << fPy[iTrack] << " " << fPz[iTrack] << " " <<
// fX[iTrack] << " " << fY[iTrack] << " " << fZ[iTrack] << endl;
...
...
This diff is collapsed.
Click to expand it.
generators/MpdVHLLEGenerator.h
+
3
−
0
View file @
49277aeb
...
...
@@ -14,6 +14,7 @@
#include
"FairPrimaryGenerator.h"
#include
"TFile.h"
#include
"TChain.h"
#include
"MpdFreezoutGenerator.h"
using
namespace
std
;
using
namespace
TMath
;
...
...
@@ -48,9 +49,11 @@ private:
Float_t
fY
[
dim
];
//!
Float_t
fZ
[
dim
];
//!
Float_t
fE
[
dim
];
//!
Float_t
fT
[
dim
];
//!
Int_t
fPID
[
dim
];
//!
Int_t
fNpart
;
//!
Int_t
fEventNumber
;
//!
TClonesArray
*
fFreezout
;
//!
TString
fBranch
;
//! treefin corresponds to hydro + cascade, treeini -- to hydro calculations only
void
SetCascade
(
Bool_t
flag
)
{
...
...
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