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
10c2072b
Commit
10c2072b
authored
4 years ago
by
LAVIRON Adrien
Browse files
Options
Downloads
Patches
Plain Diff
Added code for multiple calorimeters from local branch to TComptonTelescopeSpectra
parent
71bf92ba
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
NPLib/Detectors/ComptonTelescope/TComptonTelescopeSpectra.cxx
+20
-7
20 additions, 7 deletions
...b/Detectors/ComptonTelescope/TComptonTelescopeSpectra.cxx
with
20 additions
and
7 deletions
NPLib/Detectors/ComptonTelescope/TComptonTelescopeSpectra.cxx
+
20
−
7
View file @
10c2072b
...
...
@@ -58,7 +58,7 @@ TComptonTelescopeSpectra::TComptonTelescopeSpectra(unsigned int NumberOfTelescop
{
if
(
NPOptionManager
::
getInstance
()
->
GetVerboseLevel
()
>
0
)
cout
<<
"************************************************"
<<
endl
<<
"TComptonTelescopeSpectra : Initalising control spectra for "
<<
"TComptonTelescopeSpectra : Init
i
alising control spectra for "
<<
NumberOfTelescope
<<
" Telescopes"
<<
endl
<<
"************************************************"
<<
endl
;
...
...
@@ -138,6 +138,10 @@ void TComptonTelescopeSpectra::InitRawSpectra()
// CALORIMETER
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_CALOR_RAW_TRIGGER"
;
AddHisto1D
(
name
,
name
,
fCalorimeterNPixels
,
1
,
fCalorimeterNPixels
+
1
,
"COMPTONTELESCOPE/RAW/CALORTRIGGER"
);
/* for (int j = 0; j < 4; j++) {
name = "CT"+NPL::itoa(i*4+j+1)+"_CALOR_RAW_TRIGGER";
AddHisto1D(name, name, fCalorimeterNPixels, 1, fCalorimeterNPixels+1, "COMPTONTELESCOPE/RAW/CALORTRIGGER");
}*/
}
// end loop on number of detectors
}
...
...
@@ -304,20 +308,28 @@ void TComptonTelescopeSpectra::InitPhysicsSpectra()
*/
}
//// Calorimeter
// X-Y Energy Correlation
for
(
unsigned
int
i
=
0
;
i
<
fNumberOfTelescope
;
i
++
)
{
// loop on number of detectors
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_XY_COR"
;
AddHisto2D
(
name
,
name
,
500
,
0
,
50
,
500
,
0
,
50
,
"COMPTONTELESCOPE/PHY"
);
}
// Calorimeter energy spectrum
// Calorimeter energy spectrum
for
(
unsigned
int
i
=
0
;
i
<
fNumberOfTelescope
;
i
++
)
{
// loop on number of detectors
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_CALOR_SPECTRUM"
;
AddHisto1D
(
name
,
name
,
1000
,
1
,
2000
,
"COMPTONTELESCOPE/PHY/CALOR"
);
}
// Position on calorimeter
// Position on calorimeter
for
(
unsigned
int
i
=
0
;
i
<
fNumberOfTelescope
;
i
++
)
{
// loop on number of detectors
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_CALOR_POS"
;
AddHisto2D
(
name
,
name
,
8
,
-
24
,
24
,
8
,
-
24
,
24
,
"COMPTONTELESCOPE/PHY/CALOR_POS"
);
}
// Sum spectrum
// Sum spectrum
for
(
unsigned
int
i
=
0
;
i
<
fNumberOfTelescope
;
i
++
)
{
// loop on number of detectors
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_SUM_SPECTRUM"
;
AddHisto1D
(
name
,
name
,
1000
,
1
,
2000
,
"COMPTONTELESCOPE/PHY/CALOR"
);
}
}
...
...
@@ -392,6 +404,7 @@ void TComptonTelescopeSpectra::FillRawSpectra(TComptonTelescopeData* RawData)
myMULT
[
RawData
->
GetCTTrackerFrontETowerNbr
(
i
)
-
1
][
RawData
->
GetCTTrackerFrontEDetectorNbr
(
i
)
-
1
]
+=
1
;
//myMULT[RawData->GetCTTrackerFrontEDetectorNbr(i)-1] += 1;
}
for
(
unsigned
int
i
=
0
;
i
<
fNumberOfTelescope
;
i
++
)
{
for
(
unsigned
int
j
=
0
;
j
<
fNumberOfDetectors
;
j
++
)
{
name
=
"CT"
+
NPL
::
itoa
(
i
+
1
)
+
"_DSSSD"
+
NPL
::
itoa
(
j
+
1
)
+
"_FRONT_RAW_MULT"
;
...
...
@@ -453,7 +466,7 @@ void TComptonTelescopeSpectra::FillRawSpectra(TComptonTelescopeData* RawData)
// CALORIMETER TRIGGERS
for
(
unsigned
int
i
=
0
;
i
<
RawData
->
GetCTCalorimeterTMult
();
i
++
)
{
name
=
"CT"
+
NPL
::
itoa
(
RawData
->
GetCTCalorimeter
E
DetectorNbr
(
i
))
+
"_CALOR_RAW_TRIGGER"
;
name
=
"CT"
+
NPL
::
itoa
(
RawData
->
GetCTCalorimeter
T
DetectorNbr
(
i
))
+
"_CALOR_RAW_TRIGGER"
;
family
=
"COMPTONTELESCOPE/RAW/CALORTRIGGER"
;
FillSpectra
(
family
,
name
,
RawData
->
GetCTCalorimeterTChannelNbr
(
i
)
+
1
);
}
...
...
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