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
9a7cdf01
Commit
9a7cdf01
authored
9 years ago
by
de Séréville Nicolas
Browse files
Options
Downloads
Patches
Plain Diff
+ Add support for scaler data in SP
parent
0a0c5cc2
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/SplitPole/TSplitPoleData.cxx
+4
-1
4 additions, 1 deletion
NPLib/SplitPole/TSplitPoleData.cxx
NPLib/SplitPole/TSplitPoleData.h
+5
-2
5 additions, 2 deletions
NPLib/SplitPole/TSplitPoleData.h
with
9 additions
and
3 deletions
NPLib/SplitPole/TSplitPoleData.cxx
+
4
−
1
View file @
9a7cdf01
...
@@ -33,7 +33,8 @@ TSplitPoleData::TSplitPoleData()
...
@@ -33,7 +33,8 @@ TSplitPoleData::TSplitPoleData()
fDeltaE
(
-
1
),
fDeltaE
(
-
1
),
fWire
(
-
1
),
fWire
(
-
1
),
fPlasticP
(
-
1
),
fPlasticP
(
-
1
),
fPlasticG
(
-
1
)
fPlasticG
(
-
1
),
fTick
(
-
1
)
{
{
}
}
...
@@ -54,6 +55,7 @@ void TSplitPoleData::Clear()
...
@@ -54,6 +55,7 @@ void TSplitPoleData::Clear()
fPlasticG
=
-
1
;
fPlasticG
=
-
1
;
fTime1
.
clear
();
fTime1
.
clear
();
fTime2
.
clear
();
fTime2
.
clear
();
fTick
=
-
1
;
}
}
...
@@ -67,6 +69,7 @@ void TSplitPoleData::Dump() const
...
@@ -67,6 +69,7 @@ void TSplitPoleData::Dump() const
cout
<<
"Wire: "
<<
fWire
<<
endl
;
cout
<<
"Wire: "
<<
fWire
<<
endl
;
cout
<<
"PlasticP: "
<<
fPlasticP
<<
endl
;
cout
<<
"PlasticP: "
<<
fPlasticP
<<
endl
;
cout
<<
"PlasticG: "
<<
fPlasticG
<<
endl
;
cout
<<
"PlasticG: "
<<
fPlasticG
<<
endl
;
cout
<<
"Tick: "
<<
fTick
<<
endl
;
cout
<<
"Time1:"
;
cout
<<
"Time1:"
;
for
(
UInt_t
i
=
0
;
i
<
fTime1
.
size
();
++
i
)
{
// loop on fTime1
for
(
UInt_t
i
=
0
;
i
<
fTime1
.
size
();
++
i
)
{
// loop on fTime1
...
...
This diff is collapsed.
Click to expand it.
NPLib/SplitPole/TSplitPoleData.h
+
5
−
2
View file @
9a7cdf01
...
@@ -37,8 +37,9 @@ class TSplitPoleData : public TObject
...
@@ -37,8 +37,9 @@ class TSplitPoleData : public TObject
Double_t
fWire
;
Double_t
fWire
;
Double_t
fPlasticP
;
Double_t
fPlasticP
;
Double_t
fPlasticG
;
Double_t
fPlasticG
;
vector
<
Double_t
>
fTime1
;
// ch 117
vector
<
Double_t
>
fTime1
;
// ch 117
vector
<
Double_t
>
fTime2
;
// ch 126
vector
<
Double_t
>
fTime2
;
// ch 126
Double_t
fTick
;
// data from scaler
public:
public:
...
@@ -57,6 +58,7 @@ class TSplitPoleData : public TObject
...
@@ -57,6 +58,7 @@ class TSplitPoleData : public TObject
void
SetPlasticG
(
Double_t
plg
)
{
fPlasticG
=
plg
;}
void
SetPlasticG
(
Double_t
plg
)
{
fPlasticG
=
plg
;}
void
SetTime1
(
Double_t
time
)
{
fTime1
.
push_back
(
time
);}
void
SetTime1
(
Double_t
time
)
{
fTime1
.
push_back
(
time
);}
void
SetTime2
(
Double_t
time
)
{
fTime2
.
push_back
(
time
);}
void
SetTime2
(
Double_t
time
)
{
fTime2
.
push_back
(
time
);}
void
SetTick
(
Double_t
tick
)
{
fTick
=
tick
;}
void
SetFocalPlane
(
Double_t
position
,
Double_t
deltae
,
Double_t
wire
,
Double_t
plp
,
Double_t
plg
)
{
void
SetFocalPlane
(
Double_t
position
,
Double_t
deltae
,
Double_t
wire
,
Double_t
plp
,
Double_t
plg
)
{
SetPosition
(
position
);
SetPosition
(
position
);
SetDeltaE
(
deltae
);
SetDeltaE
(
deltae
);
...
@@ -76,6 +78,7 @@ class TSplitPoleData : public TObject
...
@@ -76,6 +78,7 @@ class TSplitPoleData : public TObject
Double_t
GetTime2
(
Int_t
i
)
const
{
return
fTime2
[
i
];}
Double_t
GetTime2
(
Int_t
i
)
const
{
return
fTime2
[
i
];}
UShort_t
GetTime1Multiplicity
()
const
{
return
fTime1
.
size
();}
UShort_t
GetTime1Multiplicity
()
const
{
return
fTime1
.
size
();}
UShort_t
GetTime2Multiplicity
()
const
{
return
fTime2
.
size
();}
UShort_t
GetTime2Multiplicity
()
const
{
return
fTime2
.
size
();}
Double_t
GetTick
()
const
{
return
fTick
;}
ClassDef
(
TSplitPoleData
,
1
)
// TSplitPoleData raw data
ClassDef
(
TSplitPoleData
,
1
)
// TSplitPoleData raw data
...
...
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