Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPNL_GAMMA
gammaware
Commits
bef356c7
Commit
bef356c7
authored
May 09, 2019
by
Stezowski Olivier
Browse files
modification to try and link talks output
parent
c6ba9341
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
5 deletions
+29
-5
src/root/gem/BaseGEM.cpp
src/root/gem/BaseGEM.cpp
+21
-2
src/root/gem/BaseGEM.h
src/root/gem/BaseGEM.h
+2
-1
src/root/physics/LevelScheme.h
src/root/physics/LevelScheme.h
+1
-1
src/root/physics/Parity.h
src/root/physics/Parity.h
+5
-1
No files found.
src/root/gem/BaseGEM.cpp
View file @
bef356c7
...
...
@@ -171,6 +171,25 @@ BaseGEM::BaseGEM():
fAD
.
SetOwner
(
kTRUE
);
}
BaseGEM
::
BaseGEM
(
LevelScheme
*
lev
)
:
TObject
(),
fLevelScheme
(
lev
),
fFeeding
(),
fRandFeeding
(),
fRandDown
(),
fAD
(),
fRand0
(),
fTmp
(),
fEoC
(),
fDirection
(
kDown
),
fMinEnergyFactor
(
10.0
),
fADType
(
0
),
fCutLifeTime
(
0.0000000001
),
/* 0.1*ns from Krane 1971 */
fSigma
(
0.0
)
{
fTmp
.
SetOwner
(
kTRUE
);
fRandDown
.
SetOwner
(
kTRUE
);
fFeeding
.
SetOwner
(
kTRUE
);
fRandFeeding
.
SetOwner
(
kTRUE
);
fAD
.
SetOwner
(
kTRUE
);
InitRandom
();
}
BaseGEM
::~
BaseGEM
()
{
BaseGEM
::
Clear
(
""
);
// clear everything
...
...
@@ -576,8 +595,8 @@ Int_t BaseGEM::DoCascade(TSeqCollection &cas, TSeqCollection &directions, Int_t
obj
=
((
RandObj
*
)
fRandFeeding
.
At
(
which_first
))
->
Rand
();
while
(
obj
!=
&
fEoC
)
{
link
=
(
Link
*
)
fLevelScheme
->
GetLinks
().
At
(
obj
->
GetUniqueID
());
result_one_link
+
=
link
->
DoCascade
(
cas
,
o
);
result_one_link
=
link
->
DoCascade
(
cas
,
o
);
for
(
Int_t
i
=
result
;
i
<
result
+
result_one_link
;
i
++
)
{
// make sur the direction collection is synchronize with cas
if
(
directions
.
At
(
i
)
==
0
)
{
directions
.
AddAt
(
new
TLorentzVector
(),
i
);
...
...
src/root/gem/BaseGEM.h
View file @
bef356c7
...
...
@@ -141,7 +141,8 @@ namespace Gw {
virtual
void
DoAngularDistribution
(
Int_t
which_gamma
,
TLorentzVector
&
,
Bool_t
forceiso
=
false
);
public:
BaseGEM
();
BaseGEM
();
BaseGEM
(
LevelScheme
*
);
virtual
~
BaseGEM
();
//! To get all the entry point in this level scheme with their intensities
...
...
src/root/physics/LevelScheme.h
View file @
bef356c7
...
...
@@ -105,7 +105,7 @@ protected:
BaseLSPlayer
*
fPlayer
;
//! level scheme player pointer
p
rotected
:
p
ublic
:
//! Add level
void
AddLevel
(
Level
*
level
);
...
...
src/root/physics/Parity.h
View file @
bef356c7
...
...
@@ -62,7 +62,9 @@ public:
void
Set
(
Parity
::
EParity
);
bool
IsParity
(
Parity
::
EParity
)
const
;
virtual
Short_t
Get
()
;
//! set the value, can be overloaded
virtual
void
Set
(
const
char
*
s
)
;
...
...
@@ -76,6 +78,8 @@ public:
inline
bool
Parity
::
IsQNumber
(
QNumber
::
EQtype
t
)
const
{
return
kParity
==
t
;
}
inline
void
Parity
::
Set
(
Parity
::
EParity
p
)
{
fParity
=
p
;
}
inline
bool
Parity
::
IsParity
(
Parity
::
EParity
p
)
const
{
return
p
==
fParity
;
}
inline
Short_t
Parity
::
Get
()
{
return
fParity
;
}
}
//! to write a parity in a stream
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment