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
574fc78d
Commit
574fc78d
authored
2 years ago
by
Cyril Lenain
Browse files
Options
Downloads
Patches
Plain Diff
Adding Qmax in TFissionChamberPhysics
parent
263f3c30
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.cxx
+7
-2
7 additions, 2 deletions
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.cxx
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.h
+1
-0
1 addition, 0 deletions
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.h
with
8 additions
and
2 deletions
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.cxx
+
7
−
2
View file @
574fc78d
...
...
@@ -88,6 +88,7 @@ void TFissionChamberPhysics::BuildPhysicalEvent() {
AnodeNumber
.
push_back
(
m_PreTreatedData
->
GetAnodeNbr
(
e
));
Q1
.
push_back
(
m_PreTreatedData
->
GetQ1
(
e
));
Q2
.
push_back
(
m_PreTreatedData
->
GetQ2
(
e
));
Qmax
.
push_back
(
m_PreTreatedData
->
GetQmax
(
e
));
Time
.
push_back
(
m_PreTreatedData
->
GetTime
(
e
));
isFakeFission
.
push_back
(
m_PreTreatedData
->
GetFakeFissionStatus
(
e
));
}
...
...
@@ -109,21 +110,24 @@ void TFissionChamberPhysics::PreTreat() {
// instantiate CalibrationManager
static
CalibrationManager
*
Cal
=
CalibrationManager
::
getInstance
();
unsigned
int
mysize
=
m_EventData
->
GetMultiplicity
();
for
(
UShort_t
i
=
0
;
i
<
mysize
;
++
i
)
{
Double_t
Q1
=
m_EventData
->
GetQ1
(
i
);
Double_t
Q2
=
m_EventData
->
GetQ2
(
i
);
Double_t
Qmax
=
m_EventData
->
GetQmax
(
i
);
if
(
Q2
>
m_E_Threshold
)
{
int
AnodeNumber
=
m_EventData
->
GetAnodeNbr
(
i
);
double
TimeOffset
=
Cal
->
GetValue
(
"FissionChamber/ANODE"
+
NPL
::
itoa
(
AnodeNumber
)
+
"_TIMEOFFSET"
,
0
);
double
Time
=
m_EventData
->
GetTime
(
i
)
+
TimeOffset
;
m_PreTreatedData
->
SetAnodeNbr
(
AnodeNumber
);
m_PreTreatedData
->
SetQ1
(
Q1
);
m_PreTreatedData
->
SetQ2
(
Q2
);
m_PreTreatedData
->
SetQmax
(
Qmax
);
m_PreTreatedData
->
SetTime
(
Time
);
m_PreTreatedData
->
SetFakeFissionStatus
(
m_EventData
->
GetFakeFissionStatus
(
i
));
}
}
unsigned
int
mysizeHF
=
m_EventData
->
GetHFMultiplicity
();
...
...
@@ -204,6 +208,7 @@ void TFissionChamberPhysics::Clear() {
AnodeNumber
.
clear
();
Q1
.
clear
();
Q2
.
clear
();
Qmax
.
clear
();
Time
.
clear
();
Time_HF
.
clear
();
isFakeFission
.
clear
();
...
...
This diff is collapsed.
Click to expand it.
NPLib/Detectors/FissionChamber/TFissionChamberPhysics.h
+
1
−
0
View file @
574fc78d
...
...
@@ -65,6 +65,7 @@ class TFissionChamberPhysics : public TObject, public NPL::VDetector {
vector
<
int
>
AnodeNumber
;
vector
<
double
>
Q1
;
vector
<
double
>
Q2
;
vector
<
double
>
Qmax
;
vector
<
double
>
Time
;
vector
<
bool
>
isFakeFission
;
vector
<
double
>
Time_HF
;
...
...
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