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
b37bb562
Commit
b37bb562
authored
11 years ago
by
Vardan Tadevosyan
Committed by
Stephen A. Wood
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add number of calorimeter tracks (track associated clusters)
parent
2abb1644
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
setup.sh
+2
-1
2 additions, 1 deletion
setup.sh
src/THcShower.cxx
+4
-0
4 additions, 0 deletions
src/THcShower.cxx
src/THcShower.h
+2
-0
2 additions, 0 deletions
src/THcShower.h
with
8 additions
and
1 deletion
setup.sh
+
2
−
1
View file @
b37bb562
...
...
@@ -7,4 +7,5 @@ export HCANALYZER=${MYDIR}
if
[
!
${
LD_LIBRARY_PATH
}
]
;
then
export
LD_LIBRARY_PATH
=
""
fi
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$ANALYZER
:
$HCANALYZER
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ANALYZER:$HCANALYZER
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$ANALYZER
:
$HCANALYZER
:
$PATH
This diff is collapsed.
Click to expand it.
src/THcShower.cxx
+
4
−
0
View file @
b37bb562
...
...
@@ -425,6 +425,7 @@ Int_t THcShower::DefineVariables( EMode mode )
// { "asum_p", "Sum of ped-subtracted ADCs", "fAsum_p" },
// { "asum_c", "Sum of calibrated ADCs", "fAsum_c" },
{
"nclust"
,
"Number of clusters"
,
"fNclust"
},
{
"ntracks"
,
"Number of shower tracks"
,
"fNtracks"
},
{
"emax"
,
"Energy of largest cluster"
,
"fE"
},
{
"eprmax"
,
"Preshower Energy of largest cluster"
,
"fEpr"
},
{
"xmax"
,
"x-position (cm) of largest cluster"
,
"fX"
},
...
...
@@ -501,6 +502,7 @@ void THcShower::Clear(Option_t* opt)
fNhits
=
0
;
fNclust
=
0
;
fNtracks
=
0
;
fMult
=
0
;
fE
=
0.
;
fEpr
=
0.
;
...
...
@@ -757,6 +759,8 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
Int_t
mclust
=
MatchCluster
(
theTrack
,
ClusterList
,
Xtr
,
Ytr
);
if
(
mclust
>=
0
)
fNtracks
++
;
// number of shower tracks
// Do this for the 1-st track only for now.
//
if
(
itrk
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.h
+
2
−
0
View file @
b37bb562
...
...
@@ -127,6 +127,8 @@ protected:
Int_t
fNhits
;
// Total number of hits
Int_t
fNclust
;
// Number of clusters
Int_t
fNtracks
;
// Number of shower tracks, i.e. tracks with
// associated clusters
Double_t
fE
;
// Energy of the largest cluster
Double_t
fEpr
;
// Preshower Energy of the largest cluster
Double_t
fX
;
// x-position (cm) of the largest cluster
...
...
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