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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
np
nptool
Commits
4cf291b3
Commit
4cf291b3
authored
11 years ago
by
adrien-matta
Browse files
Options
Downloads
Patches
Plain Diff
* Starting to add matchstick cal to Hyball
parent
b9c41392
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPLib/Tiara/TTiaraHyballPhysics.cxx
+12
-0
12 additions, 0 deletions
NPLib/Tiara/TTiaraHyballPhysics.cxx
NPLib/Tiara/TTiaraHyballPhysics.h
+2
-0
2 additions, 0 deletions
NPLib/Tiara/TTiaraHyballPhysics.h
with
14 additions
and
0 deletions
NPLib/Tiara/TTiaraHyballPhysics.cxx
+
12
−
0
View file @
4cf291b3
...
@@ -527,11 +527,14 @@ void TTiaraHyballPhysics::AddParameterToCalibrationManager(){
...
@@ -527,11 +527,14 @@ void TTiaraHyballPhysics::AddParameterToCalibrationManager(){
for
(
int
i
=
0
;
i
<
m_NumberOfDetector
;
++
i
){
for
(
int
i
=
0
;
i
<
m_NumberOfDetector
;
++
i
){
for
(
int
j
=
0
;
j
<
24
;
++
j
){
for
(
int
j
=
0
;
j
<
24
;
++
j
){
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_E"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_E"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_E"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_E"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_MATCHSTICK"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_MATCHSTICK"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_T"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_T"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_T"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_RING"
+
itoa
(
j
+
1
)
+
"_T"
)
;
}
}
for
(
int
j
=
0
;
j
<
48
;
++
j
){
for
(
int
j
=
0
;
j
<
48
;
++
j
){
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_E"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_E"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_E"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_E"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_MATCHSTICK"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_MATCHSTICK"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_T"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_T"
)
;
Cal
->
AddParameter
(
"TIARAHYBALL"
,
"D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_T"
,
"TIARAHYBALL_D"
+
itoa
(
i
+
1
)
+
"_STRIP_SECTOR"
+
itoa
(
j
+
1
)
+
"_T"
)
;
}
}
}
}
...
@@ -675,6 +678,10 @@ namespace TiaraHyball_LOCAL{
...
@@ -675,6 +678,10 @@ namespace TiaraHyball_LOCAL{
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetRingEDetectorNbr
(
i
)
)
+
"_STRIP_RING"
+
itoa
(
m_EventData
->
GetRingEStripNbr
(
i
)
)
+
"_E"
,
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetRingEDetectorNbr
(
i
)
)
+
"_STRIP_RING"
+
itoa
(
m_EventData
->
GetRingEStripNbr
(
i
)
)
+
"_E"
,
m_EventData
->
GetRingEEnergy
(
i
)
);
m_EventData
->
GetRingEEnergy
(
i
)
);
}
}
double
fStrip_Ring_Matchstick
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetRingEDetectorNbr
(
i
)
)
+
"_STRIP_RING"
+
itoa
(
m_EventData
->
GetRingEStripNbr
(
i
)
)
+
"_MATCHSTICK"
,
m_EventData
->
GetRingEEnergy
(
i
)
);
}
double
fStrip_Ring_T
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
double
fStrip_Ring_T
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetRingTDetectorNbr
(
i
)
)
+
"_STRIP_RING"
+
itoa
(
m_EventData
->
GetRingTStripNbr
(
i
)
)
+
"_T"
,
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetRingTDetectorNbr
(
i
)
)
+
"_STRIP_RING"
+
itoa
(
m_EventData
->
GetRingTStripNbr
(
i
)
)
+
"_T"
,
...
@@ -687,6 +694,11 @@ namespace TiaraHyball_LOCAL{
...
@@ -687,6 +694,11 @@ namespace TiaraHyball_LOCAL{
m_EventData
->
GetSectorEEnergy
(
i
)
);
m_EventData
->
GetSectorEEnergy
(
i
)
);
}
}
double
fStrip_Sector_Matchstick
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetSectorTDetectorNbr
(
i
)
)
+
"_STRIP_SECTOR"
+
itoa
(
m_EventData
->
GetSectorTStripNbr
(
i
)
)
+
"_MATCHSTICK"
,
m_EventData
->
GetSectorEEnergy
(
i
)
);
}
double
fStrip_Sector_T
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
double
fStrip_Sector_T
(
const
TTiaraHyballData
*
m_EventData
,
const
int
i
){
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetSectorTDetectorNbr
(
i
)
)
+
"_STRIP_SECTOR"
+
itoa
(
m_EventData
->
GetSectorTStripNbr
(
i
)
)
+
"_T"
,
return
CalibrationManager
::
getInstance
()
->
ApplyCalibration
(
"TIARAHYBALL/D"
+
itoa
(
m_EventData
->
GetSectorTDetectorNbr
(
i
)
)
+
"_STRIP_SECTOR"
+
itoa
(
m_EventData
->
GetSectorTStripNbr
(
i
)
)
+
"_T"
,
m_EventData
->
GetRingTTime
(
i
)
);
m_EventData
->
GetRingTTime
(
i
)
);
...
...
This diff is collapsed.
Click to expand it.
NPLib/Tiara/TTiaraHyballPhysics.h
+
2
−
0
View file @
4cf291b3
...
@@ -206,10 +206,12 @@ namespace TiaraHyball_LOCAL{
...
@@ -206,10 +206,12 @@ namespace TiaraHyball_LOCAL{
// DSSD
// DSSD
// Ring
// Ring
double
fStrip_Ring_E
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Ring_E
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Ring_Matchstick
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Ring_T
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Ring_T
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
// Sector
// Sector
double
fStrip_Sector_E
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Sector_E
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Sector_MatchStick
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Sector_T
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
double
fStrip_Sector_T
(
const
TTiaraHyballData
*
Data
,
const
int
i
);
}
}
...
...
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