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
6caeed6e
Commit
6caeed6e
authored
11 years ago
by
adrien-matta
Browse files
Options
Downloads
Patches
Plain Diff
* Add GetMult method to TiaraData classes
parent
184ec904
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/TTiaraBarrelData.h
+119
-76
119 additions, 76 deletions
NPLib/Tiara/TTiaraBarrelData.h
NPLib/Tiara/TTiaraHyballData.h
+57
-40
57 additions, 40 deletions
NPLib/Tiara/TTiaraHyballData.h
with
176 additions
and
116 deletions
NPLib/Tiara/TTiaraBarrelData.h
+
119
−
76
View file @
6caeed6e
...
@@ -71,178 +71,221 @@ class TTiaraBarrelData : public TNamed {
...
@@ -71,178 +71,221 @@ class TTiaraBarrelData : public TNamed {
void
Clear
();
void
Clear
();
void
Clear
(
const
Option_t
*
)
{};
void
Clear
(
const
Option_t
*
)
{};
void
Dump
()
const
;
void
Dump
()
const
;
////////////////// MULTIPLICITY GETTER /////////////////////
// E
inline
unsigned
int
GetFrontUpstreamEMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_FrontUpstreamE_DetectorNbr
.
size
();
}
// T
inline
unsigned
int
GetFrontUpstreamTMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_FrontUpstreamT_DetectorNbr
.
size
();
}
/////////////////////
// E
inline
unsigned
int
GetFrontDownstreamEMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_FrontDownstreamE_DetectorNbr
.
size
();
}
// T
inline
unsigned
int
GetFrontDownstreamTMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_FrontDownstreamT_DetectorNbr
.
size
();
}
/////////////////////
// E
inline
unsigned
int
GetBackEMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_BackE_DetectorNbr
.
size
();
}
// T
inline
unsigned
int
GetFrontBackTMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_BackT_DetectorNbr
.
size
();
}
/////////////////////
// E
inline
unsigned
int
GetOuterEMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_OuterE_DetectorNbr
.
size
();
}
// T
inline
unsigned
int
GetFrontOuterTMult
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraBarrel_OuterT_DetectorNbr
.
size
();
}
///////////////////// FAST SETTERS ////////////////////////
///////////////////// FAST SETTERS ////////////////////////
// E
// E
inline
void
Set
_
Front
E_
Upstream
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
inline
void
SetFrontUpstream
E
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
Set
_
FrontUpstreamE
_
DetectorNbr
(
DetNbr
);
SetFrontUpstreamEDetectorNbr
(
DetNbr
);
Set
_
FrontUpstreamE
_
StripNbr
(
StripNbr
);
SetFrontUpstreamEStripNbr
(
StripNbr
);
Set
_
FrontUpstreamE
_
Energy
(
Energy
);
SetFrontUpstreamEEnergy
(
Energy
);
}
}
// T
// T
inline
void
Set
_
Front
T_
Upstream
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
inline
void
SetFrontUpstream
T
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
Set
_
FrontUpstreamT
_
DetectorNbr
(
DetNbr
);
SetFrontUpstreamTDetectorNbr
(
DetNbr
);
Set
_
FrontUpstreamT
_
StripNbr
(
StripNbr
);
SetFrontUpstreamTStripNbr
(
StripNbr
);
Set
_
FrontUpstreamT
_
Time
(
Time
);
SetFrontUpstreamTTime
(
Time
);
}
}
/////////////////////
/////////////////////
// E
// E
inline
void
Set
_
Front
E_
Downstream
m
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
inline
void
SetFrontDownstream
E
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
Set
_
FrontDownstreamE
_
DetectorNbr
(
DetNbr
);
SetFrontDownstreamEDetectorNbr
(
DetNbr
);
Set
_
FrontDownstreamE
_
StripNbr
(
StripNbr
);
SetFrontDownstreamEStripNbr
(
StripNbr
);
Set
_
FrontDownstreamE
_
Energy
(
Energy
);
SetFrontDownstreamEEnergy
(
Energy
);
}
}
// T
// T
inline
void
Set
_
Front
T_
Downstream
m
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
inline
void
SetFrontDownstream
T
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
Set
_
FrontDownstreamT
_
DetectorNbr
(
DetNbr
);
SetFrontDownstreamTDetectorNbr
(
DetNbr
);
Set
_
FrontDownstreamT
_
StripNbr
(
StripNbr
);
SetFrontDownstreamTStripNbr
(
StripNbr
);
Set
_
FrontDownstreamT
_
Time
(
Time
);
SetFrontDownstreamTTime
(
Time
);
}
}
/////////////////////
/////////////////////
// E
// E
inline
void
Set
_
BackE
(
const
unsigned
short
&
DetNbr
,
const
double
&
Energy
){
inline
void
SetBackE
(
const
unsigned
short
&
DetNbr
,
const
double
&
Energy
){
Set
_
BackE
_
DetectorNbr
(
DetNbr
);
SetBackEDetectorNbr
(
DetNbr
);
Set
_
BackE
_
Energy
(
Energy
);
SetBackEEnergy
(
Energy
);
}
}
// T
// T
inline
void
Set
_
BackT
(
const
unsigned
short
&
DetNbr
,
const
double
&
Time
){
inline
void
SetBackT
(
const
unsigned
short
&
DetNbr
,
const
double
&
Time
){
Set
_
BackT
_
DetectorNbr
(
DetNbr
);
SetBackTDetectorNbr
(
DetNbr
);
Set
_
BackT
_
Time
(
Time
);
SetBackTTime
(
Time
);
}
}
/////////////////////
/////////////////////
// E
// E
inline
void
Set_OuterE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
StripNbr
,
const
double
&
Energy
){
inline
void
SetOuterE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
StripNbr
,
const
double
&
Energy
){
SetOuterEDetectorNbr
(
DetNbr
);
Set_OuterE_DetectorNbr
(
DetNbr
);
SetOuterEStripNbr
(
StripNbr
);
Set_OuterE_StripNbr
(
StripNbr
);
SetOuterEEnergy
(
Energy
);
Set_OuterE_Energy
(
Energy
);
}
}
// T
// T
inline
void
Set_OuterT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
StripNbr
,
const
double
&
Time
){
inline
void
SetOuterT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
StripNbr
,
const
double
&
Time
){
SetOuterTDetectorNbr
(
DetNbr
);
Set_OuterT_DetectorNbr
(
DetNbr
);
SetOuterTStripNbr
(
StripNbr
);
Set_OuterT_StripNbr
(
StripNbr
);
SetOuterTTime
(
Time
);
Set_OuterT_Time
(
Time
);
}
}
////////////////////// SETTERS And GETTERS /////////////////////////
////////////////////// SETTERS And GETTERS /////////////////////////
inline
void
Set
_
FrontUpstreamE
_
DetectorNbr
(
const
unsigned
short
&
FrontUpstreamE_DetectorNbr
)
inline
void
SetFrontUpstreamEDetectorNbr
(
const
unsigned
short
&
FrontUpstreamE_DetectorNbr
)
{
fTiaraBarrel_FrontUpstreamE_DetectorNbr
.
push_back
(
FrontUpstreamE_DetectorNbr
);}
{
fTiaraBarrel_FrontUpstreamE_DetectorNbr
.
push_back
(
FrontUpstreamE_DetectorNbr
);}
inline
unsigned
short
Get
_
FrontUpstreamE
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontUpstreamEDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamE_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamE_DetectorNbr
[
i
];}
inline
void
Set
_
FrontUpstreamE
_
StripNbr
(
const
unsigned
short
&
FrontUpstreamE_StripNbr
)
inline
void
SetFrontUpstreamEStripNbr
(
const
unsigned
short
&
FrontUpstreamE_StripNbr
)
{
fTiaraBarrel_FrontUpstreamE_StripNbr
.
push_back
(
FrontUpstreamE_StripNbr
);}
{
fTiaraBarrel_FrontUpstreamE_StripNbr
.
push_back
(
FrontUpstreamE_StripNbr
);}
inline
unsigned
short
Get
_
FrontUpstreamE
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontUpstreamEStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamE_StripNbr
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamE_StripNbr
[
i
];}
inline
void
Set
_
FrontUpstreamE
_
Energy
(
const
double
&
FrontUpstreamE_Energy
)
inline
void
SetFrontUpstreamEEnergy
(
const
double
&
FrontUpstreamE_Energy
)
{
fTiaraBarrel_FrontUpstreamE_Energy
.
push_back
(
FrontUpstreamE_Energy
);}
{
fTiaraBarrel_FrontUpstreamE_Energy
.
push_back
(
FrontUpstreamE_Energy
);}
inline
double
Get
_
FrontUpstreamE
_
Energy
(
const
unsigned
int
&
i
)
inline
double
GetFrontUpstreamEEnergy
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamE_Energy
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamE_Energy
[
i
];}
inline
void
Set
_
FrontUpstreamT
_
DetectorNbr
(
const
unsigned
short
&
FrontUpstreamT_DetectorNbr
)
inline
void
SetFrontUpstreamTDetectorNbr
(
const
unsigned
short
&
FrontUpstreamT_DetectorNbr
)
{
fTiaraBarrel_FrontUpstreamT_DetectorNbr
.
push_back
(
FrontUpstreamT_DetectorNbr
);}
{
fTiaraBarrel_FrontUpstreamT_DetectorNbr
.
push_back
(
FrontUpstreamT_DetectorNbr
);}
inline
unsigned
short
Get
_
FrontUpstreamT
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontUpstreamTDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamT_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamT_DetectorNbr
[
i
];}
inline
void
Set
_
FrontUpstreamT
_
StripNbr
(
const
unsigned
short
&
FrontUpstreamT_StripNbr
)
inline
void
SetFrontUpstreamTStripNbr
(
const
unsigned
short
&
FrontUpstreamT_StripNbr
)
{
fTiaraBarrel_FrontUpstreamT_StripNbr
.
push_back
(
FrontUpstreamT_StripNbr
);}
{
fTiaraBarrel_FrontUpstreamT_StripNbr
.
push_back
(
FrontUpstreamT_StripNbr
);}
inline
unsigned
short
Get
_
FrontUpstreamT
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontUpstreamTStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamT_StripNbr
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamT_StripNbr
[
i
];}
inline
void
Set
_
FrontUpstreamT
_
Time
(
const
double
&
FrontUpstreamT_Time
)
inline
void
SetFrontUpstreamTTime
(
const
double
&
FrontUpstreamT_Time
)
{
fTiaraBarrel_FrontUpstreamT_Time
.
push_back
(
FrontUpstreamT_Time
);}
{
fTiaraBarrel_FrontUpstreamT_Time
.
push_back
(
FrontUpstreamT_Time
);}
inline
double
Get
_
FrontUpstreamT
_
Time
(
const
unsigned
int
&
i
)
inline
double
GetFrontUpstreamTTime
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontUpstreamT_Time
[
i
];}
{
return
fTiaraBarrel_FrontUpstreamT_Time
[
i
];}
inline
void
Set
_
FrontDownstreamE
_
DetectorNbr
(
const
unsigned
short
&
FrontDownstreamE_DetectorNbr
)
inline
void
SetFrontDownstreamEDetectorNbr
(
const
unsigned
short
&
FrontDownstreamE_DetectorNbr
)
{
fTiaraBarrel_FrontDownstreamE_DetectorNbr
.
push_back
(
FrontDownstreamE_DetectorNbr
);}
{
fTiaraBarrel_FrontDownstreamE_DetectorNbr
.
push_back
(
FrontDownstreamE_DetectorNbr
);}
inline
unsigned
short
Get
_
FrontDownstreamE
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontDownstreamEDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamE_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamE_DetectorNbr
[
i
];}
inline
void
Set
_
FrontDownstreamE
_
StripNbr
(
const
unsigned
short
&
FrontDownstreamE_StripNbr
)
inline
void
SetFrontDownstreamEStripNbr
(
const
unsigned
short
&
FrontDownstreamE_StripNbr
)
{
fTiaraBarrel_FrontDownstreamE_StripNbr
.
push_back
(
FrontDownstreamE_StripNbr
);}
{
fTiaraBarrel_FrontDownstreamE_StripNbr
.
push_back
(
FrontDownstreamE_StripNbr
);}
inline
unsigned
short
Get
_
FrontDownstreamE
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontDownstreamEStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamE_StripNbr
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamE_StripNbr
[
i
];}
inline
void
Set
_
FrontDownstreamE
_
Energy
(
const
double
&
FrontDownstreamE_Energy
)
inline
void
SetFrontDownstreamEEnergy
(
const
double
&
FrontDownstreamE_Energy
)
{
fTiaraBarrel_FrontDownstreamE_Energy
.
push_back
(
FrontDownstreamE_Energy
);}
{
fTiaraBarrel_FrontDownstreamE_Energy
.
push_back
(
FrontDownstreamE_Energy
);}
inline
double
Get
_
FrontDownstreamE
_
Energy
(
const
unsigned
int
&
i
)
inline
double
GetFrontDownstreamEEnergy
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamE_Energy
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamE_Energy
[
i
];}
inline
void
Set
_
FrontDownstreamT
_
DetectorNbr
(
const
unsigned
short
&
FrontDownstreamT_DetectorNbr
)
inline
void
SetFrontDownstreamTDetectorNbr
(
const
unsigned
short
&
FrontDownstreamT_DetectorNbr
)
{
fTiaraBarrel_FrontDownstreamT_DetectorNbr
.
push_back
(
FrontDownstreamT_DetectorNbr
);}
{
fTiaraBarrel_FrontDownstreamT_DetectorNbr
.
push_back
(
FrontDownstreamT_DetectorNbr
);}
inline
unsigned
short
Get
_
FrontDownstreamT
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontDownstreamTDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamT_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamT_DetectorNbr
[
i
];}
inline
void
Set
_
FrontDownstreamT
_
StripNbr
(
const
unsigned
short
&
FrontDownstreamT_StripNbr
)
inline
void
SetFrontDownstreamTStripNbr
(
const
unsigned
short
&
FrontDownstreamT_StripNbr
)
{
fTiaraBarrel_FrontDownstreamT_StripNbr
.
push_back
(
FrontDownstreamT_StripNbr
);}
{
fTiaraBarrel_FrontDownstreamT_StripNbr
.
push_back
(
FrontDownstreamT_StripNbr
);}
inline
unsigned
short
Get
_
FrontDownstreamT
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetFrontDownstreamTStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamT_StripNbr
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamT_StripNbr
[
i
];}
inline
void
Set
_
FrontDownstreamT
_
Time
(
const
double
&
FrontDownstreamT_Time
)
inline
void
SetFrontDownstreamTTime
(
const
double
&
FrontDownstreamT_Time
)
{
fTiaraBarrel_FrontDownstreamT_Time
.
push_back
(
FrontDownstreamT_Time
);}
{
fTiaraBarrel_FrontDownstreamT_Time
.
push_back
(
FrontDownstreamT_Time
);}
inline
double
Get
_
FrontDownstreamT
_
Time
(
const
unsigned
int
&
i
)
inline
double
GetFrontDownstreamTTime
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_FrontDownstreamT_Time
[
i
];}
{
return
fTiaraBarrel_FrontDownstreamT_Time
[
i
];}
inline
void
Set
_
BackE
_
DetectorNbr
(
const
unsigned
short
&
BackE_DetectorNbr
)
inline
void
SetBackEDetectorNbr
(
const
unsigned
short
&
BackE_DetectorNbr
)
{
fTiaraBarrel_BackE_DetectorNbr
.
push_back
(
BackE_DetectorNbr
);}
{
fTiaraBarrel_BackE_DetectorNbr
.
push_back
(
BackE_DetectorNbr
);}
inline
unsigned
short
Get
_
BackE
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetBackEDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_BackE_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_BackE_DetectorNbr
[
i
];}
inline
void
Set
_
BackE
_
Energy
(
const
double
&
BackE_Energy
)
inline
void
SetBackEEnergy
(
const
double
&
BackE_Energy
)
{
fTiaraBarrel_BackE_Energy
.
push_back
(
BackE_Energy
);}
{
fTiaraBarrel_BackE_Energy
.
push_back
(
BackE_Energy
);}
inline
double
Get
_
BackE
_
Energy
(
const
unsigned
int
&
i
)
inline
double
GetBackEEnergy
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_BackE_Energy
[
i
];}
{
return
fTiaraBarrel_BackE_Energy
[
i
];}
inline
void
Set
_
BackT
_
DetectorNbr
(
const
unsigned
short
&
BackT_DetectorNbr
)
inline
void
SetBackTDetectorNbr
(
const
unsigned
short
&
BackT_DetectorNbr
)
{
fTiaraBarrel_BackT_DetectorNbr
.
push_back
(
BackT_DetectorNbr
);}
{
fTiaraBarrel_BackT_DetectorNbr
.
push_back
(
BackT_DetectorNbr
);}
inline
unsigned
short
Get
_
BackT
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetBackTDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_BackT_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_BackT_DetectorNbr
[
i
];}
inline
void
Set
_
BackT
_
Time
(
const
double
&
BackT_Time
)
inline
void
SetBackTTime
(
const
double
&
BackT_Time
)
{
fTiaraBarrel_BackT_Time
.
push_back
(
BackT_Time
);}
{
fTiaraBarrel_BackT_Time
.
push_back
(
BackT_Time
);}
inline
double
Get
_
BackT
_
Time
(
const
unsigned
int
&
i
)
inline
double
GetBackTTime
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_BackT_Time
[
i
];}
{
return
fTiaraBarrel_BackT_Time
[
i
];}
inline
void
Set
_
OuterE
_
DetectorNbr
(
const
unsigned
short
&
OuterE_DetectorNbr
)
inline
void
SetOuterEDetectorNbr
(
const
unsigned
short
&
OuterE_DetectorNbr
)
{
fTiaraBarrel_OuterE_DetectorNbr
.
push_back
(
OuterE_DetectorNbr
);}
{
fTiaraBarrel_OuterE_DetectorNbr
.
push_back
(
OuterE_DetectorNbr
);}
inline
unsigned
short
Get
_
OuterE
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetOuterEDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterE_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_OuterE_DetectorNbr
[
i
];}
inline
void
Set
_
OuterE
_
StripNbr
(
const
unsigned
short
&
OuterE_StripNbr
)
inline
void
SetOuterEStripNbr
(
const
unsigned
short
&
OuterE_StripNbr
)
{
fTiaraBarrel_OuterE_StripNbr
.
push_back
(
OuterE_StripNbr
);}
{
fTiaraBarrel_OuterE_StripNbr
.
push_back
(
OuterE_StripNbr
);}
inline
unsigned
short
Get
_
OuterE
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetOuterEStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterE_StripNbr
[
i
];}
{
return
fTiaraBarrel_OuterE_StripNbr
[
i
];}
inline
void
Set
_
OuterE
_
Energy
(
const
double
&
OuterE_Energy
)
inline
void
SetOuterEEnergy
(
const
double
&
OuterE_Energy
)
{
fTiaraBarrel_OuterE_Energy
.
push_back
(
OuterE_Energy
);}
{
fTiaraBarrel_OuterE_Energy
.
push_back
(
OuterE_Energy
);}
inline
double
Get
_
OuterE
_
Energy
(
const
unsigned
int
&
i
)
inline
double
GetOuterEEnergy
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterE_Energy
[
i
];}
{
return
fTiaraBarrel_OuterE_Energy
[
i
];}
inline
void
Set
_
OuterT
_
DetectorNbr
(
const
unsigned
short
&
OuterT_DetectorNbr
)
inline
void
SetOuterTDetectorNbr
(
const
unsigned
short
&
OuterT_DetectorNbr
)
{
fTiaraBarrel_OuterT_DetectorNbr
.
push_back
(
OuterT_DetectorNbr
);}
{
fTiaraBarrel_OuterT_DetectorNbr
.
push_back
(
OuterT_DetectorNbr
);}
inline
unsigned
short
Get
_
OuterT
_
DetectorNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetOuterTDetectorNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterT_DetectorNbr
[
i
];}
{
return
fTiaraBarrel_OuterT_DetectorNbr
[
i
];}
inline
void
Set
_
OuterT
_
StripNbr
(
const
unsigned
short
&
OuterT_StripNbr
)
inline
void
SetOuterTStripNbr
(
const
unsigned
short
&
OuterT_StripNbr
)
{
fTiaraBarrel_OuterT_StripNbr
.
push_back
(
OuterT_StripNbr
);}
{
fTiaraBarrel_OuterT_StripNbr
.
push_back
(
OuterT_StripNbr
);}
inline
unsigned
short
Get
_
OuterT
_
StripNbr
(
const
unsigned
int
&
i
)
inline
unsigned
short
GetOuterTStripNbr
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterT_StripNbr
[
i
];}
{
return
fTiaraBarrel_OuterT_StripNbr
[
i
];}
inline
void
Set
_
OuterT
_
Time
(
const
double
&
OuterT_Time
)
inline
void
SetOuterTTime
(
const
double
&
OuterT_Time
)
{
fTiaraBarrel_OuterT_Time
.
push_back
(
OuterT_Time
);}
{
fTiaraBarrel_OuterT_Time
.
push_back
(
OuterT_Time
);}
inline
double
Get
_
OuterT
_
Time
(
const
unsigned
int
&
i
)
inline
double
GetOuterTTime
(
const
unsigned
int
&
i
)
{
return
fTiaraBarrel_OuterT_Time
[
i
];}
{
return
fTiaraBarrel_OuterT_Time
[
i
];}
...
...
This diff is collapsed.
Click to expand it.
NPLib/Tiara/TTiaraHyballData.h
+
57
−
40
View file @
6caeed6e
...
@@ -59,94 +59,111 @@ class TTiaraHyballData : public TNamed {
...
@@ -59,94 +59,111 @@ class TTiaraHyballData : public TNamed {
vector
<
unsigned
short
>
fTiaraHyball_SectorT_StripNbr
;
vector
<
unsigned
short
>
fTiaraHyball_SectorT_StripNbr
;
vector
<
double
>
fTiaraHyball_SectorT_Time
;
vector
<
double
>
fTiaraHyball_SectorT_Time
;
///////////// Multiplicity Getter ////////////////////
public
:
inline
unsigned
int
GetRingE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraHyball_RingE_DetectorNbr
.
size
()
;
};
inline
unsigned
int
GetRingT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
return
fTiaraHyball_RingT_DetectorNbr
.
size
()
;
};
inline
unsigned
int
GetSectorE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
return
fTiaraHyball_SectorE_DetectorNbr
.
size
()
;
};
inline
unsigned
int
GetSectorT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
return
fTiaraHyball_SectorT_DetectorNbr
.
size
()
;
};
///////////// Fast Setters ////////////////////
///////////// Fast Setters ////////////////////
public
:
public
:
inline
void
Set
_
RingE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
inline
void
SetRingE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
Set
_
RingE
_
DetectorNbr
(
DetNbr
);
SetRingEDetectorNbr
(
DetNbr
);
Set
_
RingE
_
StripNbr
(
StripNbr
);
SetRingEStripNbr
(
StripNbr
);
Set
_
RingE
_
Energy
(
Energy
);
SetRingEEnergy
(
Energy
);
};
};
inline
void
Set
_
RingT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
inline
void
SetRingT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
Set
_
RingT
_
DetectorNbr
(
DetNbr
);
SetRingTDetectorNbr
(
DetNbr
);
Set
_
RingT
_
StripNbr
(
StripNbr
);
SetRingTStripNbr
(
StripNbr
);
Set
_
RingT
_
Time
(
Time
);
SetRingTTime
(
Time
);
};
};
inline
void
Set
_
SectorE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
inline
void
SetSectorE
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Energy
){
Set
_
SectorE
_
DetectorNbr
(
DetNbr
);
SetSectorEDetectorNbr
(
DetNbr
);
Set
_
SectorE
_
StripNbr
(
StripNbr
);
SetSectorEStripNbr
(
StripNbr
);
Set
_
SectorE
_
Energy
(
Energy
);
SetSectorEEnergy
(
Energy
);
};
};
inline
void
Set
_
SectorT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
inline
void
SetSectorT
(
const
unsigned
short
&
DetNbr
,
const
unsigned
short
&
StripNbr
,
const
double
&
Time
){
Set
_
SectorT
_
DetectorNbr
(
DetNbr
);
SetSectorTDetectorNbr
(
DetNbr
);
Set
_
SectorT
_
StripNbr
(
StripNbr
);
SetSectorTStripNbr
(
StripNbr
);
Set
_
SectorT
_
Time
(
Time
);
SetSectorTTime
(
Time
);
};
};
///////////// Getter and Setter ////////////////
///////////// Getter and Setter ////////////////
public
:
public
:
inline
void
Set
_
RingE
_
DetectorNbr
(
const
unsigned
short
&
RingE_DetectorNbr
)
inline
void
SetRingEDetectorNbr
(
const
unsigned
short
&
RingE_DetectorNbr
)
{
fTiaraHyball_RingE_DetectorNbr
.
push_back
(
RingE_DetectorNbr
);}
{
fTiaraHyball_RingE_DetectorNbr
.
push_back
(
RingE_DetectorNbr
);}
inline
unsigned
short
Get
_
RingE
_
DetectorNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetRingEDetectorNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingE_DetectorNbr
[
i
];}
{
return
fTiaraHyball_RingE_DetectorNbr
[
i
];}
inline
void
Set
_
RingE
_
StripNbr
(
const
unsigned
short
&
RingE_StripNbr
)
inline
void
SetRingEStripNbr
(
const
unsigned
short
&
RingE_StripNbr
)
{
fTiaraHyball_RingE_StripNbr
.
push_back
(
RingE_StripNbr
);}
{
fTiaraHyball_RingE_StripNbr
.
push_back
(
RingE_StripNbr
);}
inline
unsigned
short
Get
_
RingE
_
StripNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetRingEStripNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingE_StripNbr
[
i
];}
{
return
fTiaraHyball_RingE_StripNbr
[
i
];}
inline
void
Set
_
RingE
_
Energy
(
const
double
&
RingE_Energy
)
inline
void
SetRingEEnergy
(
const
double
&
RingE_Energy
)
{
fTiaraHyball_RingE_Energy
.
push_back
(
RingE_Energy
);}
{
fTiaraHyball_RingE_Energy
.
push_back
(
RingE_Energy
);}
inline
double
Get
_
RingE
_
Energy
(
const
unsigned
int
&
i
)
const
inline
double
GetRingEEnergy
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingE_Energy
[
i
];}
{
return
fTiaraHyball_RingE_Energy
[
i
];}
inline
void
Set
_
RingT
_
DetectorNbr
(
const
unsigned
short
&
RingT_DetectorNbr
)
inline
void
SetRingTDetectorNbr
(
const
unsigned
short
&
RingT_DetectorNbr
)
{
fTiaraHyball_RingT_DetectorNbr
.
push_back
(
RingT_DetectorNbr
);}
{
fTiaraHyball_RingT_DetectorNbr
.
push_back
(
RingT_DetectorNbr
);}
inline
unsigned
short
Get
_
RingT
_
DetectorNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetRingTDetectorNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingT_DetectorNbr
[
i
];}
{
return
fTiaraHyball_RingT_DetectorNbr
[
i
];}
inline
void
Set
_
RingT
_
StripNbr
(
const
unsigned
short
&
RingT_StripNbr
)
inline
void
SetRingTStripNbr
(
const
unsigned
short
&
RingT_StripNbr
)
{
fTiaraHyball_RingT_StripNbr
.
push_back
(
RingT_StripNbr
);}
{
fTiaraHyball_RingT_StripNbr
.
push_back
(
RingT_StripNbr
);}
inline
unsigned
short
Get
_
RingT
_
StripNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetRingTStripNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingT_StripNbr
[
i
];}
{
return
fTiaraHyball_RingT_StripNbr
[
i
];}
inline
void
Set
_
RingT
_
Time
(
const
double
&
RingT_Time
)
inline
void
SetRingTTime
(
const
double
&
RingT_Time
)
{
fTiaraHyball_RingT_Time
.
push_back
(
RingT_Time
);}
{
fTiaraHyball_RingT_Time
.
push_back
(
RingT_Time
);}
inline
double
Get
_
RingT
_
Time
(
const
unsigned
int
&
i
)
const
inline
double
GetRingTTime
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_RingT_Time
[
i
];}
{
return
fTiaraHyball_RingT_Time
[
i
];}
inline
void
Set
_
SectorE
_
DetectorNbr
(
const
unsigned
short
&
SectorE_DetectorNbr
)
inline
void
SetSectorEDetectorNbr
(
const
unsigned
short
&
SectorE_DetectorNbr
)
{
fTiaraHyball_SectorE_DetectorNbr
.
push_back
(
SectorE_DetectorNbr
);}
{
fTiaraHyball_SectorE_DetectorNbr
.
push_back
(
SectorE_DetectorNbr
);}
inline
unsigned
short
Get
_
SectorE
_
DetectorNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetSectorEDetectorNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorE_DetectorNbr
[
i
];}
{
return
fTiaraHyball_SectorE_DetectorNbr
[
i
];}
inline
void
Set
_
SectorE
_
StripNbr
(
const
unsigned
short
&
SectorE_StripNbr
)
inline
void
SetSectorEStripNbr
(
const
unsigned
short
&
SectorE_StripNbr
)
{
fTiaraHyball_SectorE_StripNbr
.
push_back
(
SectorE_StripNbr
);}
{
fTiaraHyball_SectorE_StripNbr
.
push_back
(
SectorE_StripNbr
);}
inline
unsigned
short
Get
_
SectorE
_
StripNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetSectorEStripNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorE_StripNbr
[
i
];}
{
return
fTiaraHyball_SectorE_StripNbr
[
i
];}
inline
void
Set
_
SectorE
_
Energy
(
const
double
&
SectorE_Energy
)
inline
void
SetSectorEEnergy
(
const
double
&
SectorE_Energy
)
{
fTiaraHyball_SectorE_Energy
.
push_back
(
SectorE_Energy
);}
{
fTiaraHyball_SectorE_Energy
.
push_back
(
SectorE_Energy
);}
inline
double
Get
_
SectorE
_
Energy
(
const
unsigned
int
&
i
)
const
inline
double
GetSectorEEnergy
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorE_Energy
[
i
];}
{
return
fTiaraHyball_SectorE_Energy
[
i
];}
inline
void
Set
_
SectorT
_
DetectorNbr
(
const
unsigned
short
&
SectorT_DetectorNbr
)
inline
void
SetSectorTDetectorNbr
(
const
unsigned
short
&
SectorT_DetectorNbr
)
{
fTiaraHyball_SectorT_DetectorNbr
.
push_back
(
SectorT_DetectorNbr
);}
{
fTiaraHyball_SectorT_DetectorNbr
.
push_back
(
SectorT_DetectorNbr
);}
inline
unsigned
short
Get
_
SectorT
_
DetectorNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetSectorTDetectorNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorT_DetectorNbr
[
i
];}
{
return
fTiaraHyball_SectorT_DetectorNbr
[
i
];}
inline
void
Set
_
SectorT
_
StripNbr
(
const
unsigned
short
&
SectorT_StripNbr
)
inline
void
SetSectorTStripNbr
(
const
unsigned
short
&
SectorT_StripNbr
)
{
fTiaraHyball_SectorT_StripNbr
.
push_back
(
SectorT_StripNbr
);}
{
fTiaraHyball_SectorT_StripNbr
.
push_back
(
SectorT_StripNbr
);}
inline
unsigned
short
Get
_
SectorT
_
StripNbr
(
const
unsigned
int
&
i
)
const
inline
unsigned
short
GetSectorTStripNbr
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorT_StripNbr
[
i
];}
{
return
fTiaraHyball_SectorT_StripNbr
[
i
];}
inline
void
Set
_
SectorT
_
Time
(
const
double
&
SectorT_Time
)
inline
void
SetSectorTTime
(
const
double
&
SectorT_Time
)
{
fTiaraHyball_SectorT_Time
.
push_back
(
SectorT_Time
);}
{
fTiaraHyball_SectorT_Time
.
push_back
(
SectorT_Time
);}
inline
double
Get
_
SectorT
_
Time
(
const
unsigned
int
&
i
)
const
inline
double
GetSectorTTime
(
const
unsigned
int
&
i
)
const
{
return
fTiaraHyball_SectorT_Time
[
i
];}
{
return
fTiaraHyball_SectorT_Time
[
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