Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
np
nptool
Commits
17dfddc8
Commit
17dfddc8
authored
11 years ago
by
Unknown
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
e644812e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NPAnalysis/Template/src/Analysis.cc
+4
-21
4 additions, 21 deletions
NPAnalysis/Template/src/Analysis.cc
with
4 additions
and
21 deletions
NPAnalysis/Template/src/Analysis.cc
+
4
−
21
View file @
17dfddc8
...
@@ -30,16 +30,6 @@ int main(int argc,char** argv)
...
@@ -30,16 +30,6 @@ int main(int argc,char** argv)
DetectorManager
*
myDetector
=
new
DetectorManager
;
DetectorManager
*
myDetector
=
new
DetectorManager
;
myDetector
->
ReadConfigurationFile
(
detectorfileName
)
;
myDetector
->
ReadConfigurationFile
(
detectorfileName
)
;
// Attach more branch to the output
double
Ex
=
0
;
double
EE
=
0
;
double
TT
=
0
;
double
X
=
0
;
double
Y
=
0
;
int
det
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Branch
(
"ExcitationEnergy"
,
&
Ex
,
"Ex/D"
)
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Branch
(
"E"
,
&
EE
,
"EE/D"
)
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Branch
(
"A"
,
&
TT
,
"TT/D"
)
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Branch
(
"X"
,
&
X
,
"X/D"
)
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Branch
(
"Y"
,
&
Y
,
"Y/D"
)
;
// Get Must2 Pointer:
MUST2Array
*
M2
=
(
MUST2Array
*
)
myDetector
->
m_Detector
[
"MUST2"
]
;
// Get the formed Chained Tree and Treat it
// Get the formed Chained Tree and Treat it
TChain
*
Chain
=
RootInput
::
getInstance
()
->
GetChain
()
;
TChain
*
Chain
=
RootInput
::
getInstance
()
->
GetChain
()
;
int
i
;
int
i
;
...
@@ -51,18 +41,11 @@ int main(int argc,char** argv)
...
@@ -51,18 +41,11 @@ int main(int argc,char** argv)
myDetector
->
ClearEventPhysics
()
;
myDetector
->
ClearEventPhysics
()
;
myDetector
->
BuildPhysicalEvent
()
;
myDetector
->
BuildPhysicalEvent
()
;
/************************************************
Put your code here
double
E
=
M2
->
GetEnergyDeposit
();
************************************************/
TVector3
A
=
M2
->
GetPositionOfInteraction
();
double
Theta
=
ThetaCalculation
(
A
,
TVector3
(
0
,
0
,
1
)
)
;
if
(
E
>-
1000
)
Ex
=
myReaction
->
ReconstructRelativistic
(
E
,
Theta
)
;
else
Ex
=
-
100
;
EE
=
E
;
TT
=
Theta
/
deg
;
if
(
E
>-
1000
){
X
=
A
.
X
();
Y
=
A
.
Y
();}
else
{
X
=
-
1000
;
Y
=
-
1000
;}
RootOutput
::
getInstance
()
->
GetTree
()
->
Fill
()
;
RootOutput
::
getInstance
()
->
GetTree
()
->
Fill
()
;
}
}
cout
<<
"A total of "
<<
i
<<
" event has been annalysed "
<<
endl
;
cout
<<
"A total of "
<<
i
<<
" event has been annalysed "
<<
endl
;
...
...
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