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
4de88730
Commit
4de88730
authored
11 years ago
by
adrien-matta
Browse files
Options
Downloads
Patches
Plain Diff
* Fixing bug in TMust2Spectra
parent
86fda712
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NPLib/MUST2/TMust2Physics.cxx
+7
-0
7 additions, 0 deletions
NPLib/MUST2/TMust2Physics.cxx
NPLib/MUST2/TMust2Spectra.cxx
+3
-3
3 additions, 3 deletions
NPLib/MUST2/TMust2Spectra.cxx
NPLib/MUST2/TMust2Spectra.h
+3
-7
3 additions, 7 deletions
NPLib/MUST2/TMust2Spectra.h
with
13 additions
and
10 deletions
NPLib/MUST2/TMust2Physics.cxx
+
7
−
0
View file @
4de88730
...
...
@@ -303,6 +303,13 @@ void TMust2Physics::BuildPhysicalEvent(){
}
}
// Fill the control Histo if requested by user
if
(
NPOptionManager
::
getInstance
()
->
GetGenerateHistoOption
()){
m_Spectra
->
FillRawSpectra
(
m_EventData
);
m_Spectra
->
FillPreTreatedSpectra
(
m_PreTreatedData
);
}
return
;
...
...
This diff is collapsed.
Click to expand it.
NPLib/MUST2/TMust2Spectra.cxx
+
3
−
3
View file @
4de88730
...
...
@@ -259,7 +259,7 @@ void TMust2Spectra::FillPreTreatedSpectra(TMust2Data* PreTreatedData){
// STRX_E
for
(
Int_t
i
=
0
;
i
<
PreTreatedData
->
GetMMStripXEMult
();
i
++
)
{
name
=
Form
(
"MM%d_STRX_E_CAL"
,
PreTreatedData
->
GetMMStripXEDetectorNbr
(
i
)
);
family
=
"MUST2/CAL/STR
IP
XE"
;
family
=
"MUST2/CAL/STRXE"
;
GetHisto
(
family
,
name
)
->
Fill
(
PreTreatedData
->
GetMMStripXEStripNbr
(
i
),
...
...
@@ -295,7 +295,7 @@ void TMust2Spectra::FillPreTreatedSpectra(TMust2Data* PreTreatedData){
// SILI_E
for
(
Int_t
i
=
0
;
i
<
PreTreatedData
->
GetMMSiLiEMult
();
i
++
)
{
name
=
Form
(
"MM%d_SILI_E_CAL"
,
PreTreatedData
->
GetMMSiLiEDetectorNbr
(
i
)
);
family
=
"MUST2/CAL/SILIE
T
"
;
family
=
"MUST2/CAL/SILIE"
;
GetHisto
(
family
,
name
)
->
Fill
(
PreTreatedData
->
GetMMSiLiEPadNbr
(
i
),
...
...
@@ -365,7 +365,7 @@ TH1* TMust2Spectra::GetHisto(TString family, TString name){
vector
<
TString
>
index
;
index
.
push_back
(
family
);
index
.
push_back
(
name
);
// fill map
return
fMapHisto
.
at
(
index
);
}
This diff is collapsed.
Click to expand it.
NPLib/MUST2/TMust2Spectra.h
+
3
−
7
View file @
4de88730
...
...
@@ -52,12 +52,11 @@ class TMust2Spectra {
// Initialization methods
void
InitRawSpectra
();
void
InitPreTreatedSpectra
();
void
InitPhysicsSpectra
();
// Filling methods
void
FillRawSpectra
(
TMust2Data
*
);
void
FillPreTreatedSpectra
(
TMust2Data
*
);
void
FillRawSpectra
(
TMust2Data
*
);
void
FillPreTreatedSpectra
(
TMust2Data
*
);
// get map histo which will be used for GSpectra in GUser
map
<
vector
<
TString
>
,
TH1
*
>
GetMapHisto
()
const
{
return
fMapHisto
;}
TH1
*
GetHisto
(
TString
family
,
TString
name
);
...
...
@@ -72,9 +71,6 @@ class TMust2Spectra {
private
:
// map holding histo pointers and their family names
map
<
vector
<
TString
>
,
TH1
*
>
fMapHisto
;
// ClassDef(TMust2Spectra,1) // Must2Spectra structure
};
#endif
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