Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
jlab
hallc
analyzer_software
hcana
Commits
7807024e
Commit
7807024e
authored
9 years ago
by
Zafar Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
Global variables are added for efficiency calculation.
parent
97619d3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/THcDC.cxx
+3
-0
3 additions, 0 deletions
src/THcDC.cxx
src/THcDC.h
+1
-0
1 addition, 0 deletions
src/THcDC.h
src/THcDriftChamber.cxx
+2
-0
2 additions, 0 deletions
src/THcDriftChamber.cxx
src/THcScintillatorPlane.cxx
+2
-0
2 additions, 0 deletions
src/THcScintillatorPlane.cxx
with
8 additions
and
0 deletions
src/THcDC.cxx
+
3
−
0
View file @
7807024e
...
@@ -346,6 +346,7 @@ Int_t THcDC::DefineVariables( EMode mode )
...
@@ -346,6 +346,7 @@ Int_t THcDC::DefineVariables( EMode mode )
// Register variables in global list
// Register variables in global list
RVarDef
vars
[]
=
{
RVarDef
vars
[]
=
{
{
"stubtest"
,
"stub test"
,
"fStubTest"
},
{
"nhit"
,
"Number of DC hits"
,
"fNhits"
},
{
"nhit"
,
"Number of DC hits"
,
"fNhits"
},
{
"tnhit"
,
"Number of good DC hits"
,
"fNthits"
},
{
"tnhit"
,
"Number of good DC hits"
,
"fNthits"
},
{
"trawhit"
,
"Number of true raw DC hits"
,
"fN_True_RawHits"
},
{
"trawhit"
,
"Number of true raw DC hits"
,
"fN_True_RawHits"
},
...
@@ -422,6 +423,7 @@ inline
...
@@ -422,6 +423,7 @@ inline
void
THcDC
::
ClearEvent
()
void
THcDC
::
ClearEvent
()
{
{
// Reset per-event data.
// Reset per-event data.
fStubTest
=
0
;
fNhits
=
0
;
fNhits
=
0
;
fNthits
=
0
;
fNthits
=
0
;
fN_True_RawHits
=
0
;
fN_True_RawHits
=
0
;
...
@@ -695,6 +697,7 @@ void THcDC::LinkStubs()
...
@@ -695,6 +697,7 @@ void THcDC::LinkStubs()
&&
(
TMath
::
Abs
(
dposyp
)
<
fYptTrCriterion
))
{
&&
(
TMath
::
Abs
(
dposyp
)
<
fYptTrCriterion
))
{
if
(
newtrack
)
{
if
(
newtrack
)
{
assert
(
sptracks
==
0
);
assert
(
sptracks
==
0
);
fStubTest
=
1
;
//stubtest=1; Used in h_track_tests.f
//stubtest=1; Used in h_track_tests.f
// Make a new track if there are not to many
// Make a new track if there are not to many
if
(
fNDCTracks
<
MAXTRACKS
)
{
if
(
fNDCTracks
<
MAXTRACKS
)
{
...
...
This diff is collapsed.
Click to expand it.
src/THcDC.h
+
1
−
0
View file @
7807024e
...
@@ -103,6 +103,7 @@ protected:
...
@@ -103,6 +103,7 @@ protected:
// Was used for SOS in ENGINE.
// Was used for SOS in ENGINE.
// Per-event data
// Per-event data
Int_t
fStubTest
;
Int_t
fNhits
;
Int_t
fNhits
;
Int_t
fNthits
;
Int_t
fNthits
;
Int_t
fN_True_RawHits
;
Int_t
fN_True_RawHits
;
...
...
This diff is collapsed.
Click to expand it.
src/THcDriftChamber.cxx
+
2
−
0
View file @
7807024e
...
@@ -224,6 +224,8 @@ Int_t THcDriftChamber::DefineVariables( EMode mode )
...
@@ -224,6 +224,8 @@ Int_t THcDriftChamber::DefineVariables( EMode mode )
// Register variables in global list
// Register variables in global list
RVarDef
vars
[]
=
{
RVarDef
vars
[]
=
{
{
"maxhits"
,
"Maximum hits allowed"
,
"fMaxHits"
},
{
"spacepoints"
,
"Space points of DC"
,
"fNSpacePoints"
},
{
"nhit"
,
"Number of DC hits"
,
"fNhits"
},
{
"nhit"
,
"Number of DC hits"
,
"fNhits"
},
{
"trawhit"
,
"Number of True Raw hits"
,
"fN_True_RawHits"
},
{
"trawhit"
,
"Number of True Raw hits"
,
"fN_True_RawHits"
},
{
0
}
{
0
}
...
...
This diff is collapsed.
Click to expand it.
src/THcScintillatorPlane.cxx
+
2
−
0
View file @
7807024e
...
@@ -232,6 +232,8 @@ Int_t THcScintillatorPlane::DefineVariables( EMode mode )
...
@@ -232,6 +232,8 @@ Int_t THcScintillatorPlane::DefineVariables( EMode mode )
"frNegADCHits.THcSignalHit.GetPaddleNumber()"
},
"frNegADCHits.THcSignalHit.GetPaddleNumber()"
},
// {"fptime", "Time at focal plane",
// {"fptime", "Time at focal plane",
// "GetFpTime()"},
// "GetFpTime()"},
{
"nhits"
,
"Number of hits"
,
"GetNScinHits() "
},
{
0
}
{
0
}
};
};
...
...
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