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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Whitney Armstrong
hcana
Commits
5c48c0e3
Commit
5c48c0e3
authored
10 years ago
by
Vardan Tadevosyan
Committed by
Stephen A. Wood
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Edit/add comments in THcShower class
parent
f1b25902
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
src/THcShower.cxx
+4
-4
4 additions, 4 deletions
src/THcShower.cxx
src/THcShower.h
+5
-2
5 additions, 2 deletions
src/THcShower.h
with
9 additions
and
6 deletions
src/THcShower.cxx
+
4
−
4
View file @
5c48c0e3
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
#include
"THcShower.h"
#include
"THcShower.h"
#include
"THcHallCSpectrometer.h"
#include
"THcHallCSpectrometer.h"
//#include "THcShowerCluster.h"
#include
"THaEvData.h"
#include
"THaEvData.h"
#include
"THaDetMap.h"
#include
"THaDetMap.h"
#include
"THcDetectorMap.h"
#include
"THcDetectorMap.h"
...
@@ -635,7 +634,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
...
@@ -635,7 +634,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
}
}
}
}
//
Create
list of clusters
and fill it
.
//
Fill
list of clusters.
ClusterHits
(
HitSet
);
ClusterHits
(
HitSet
);
...
@@ -679,7 +678,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
...
@@ -679,7 +678,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
void
THcShower
::
ClusterHits
(
THcShowerHitSet
&
HitSet
)
{
void
THcShower
::
ClusterHits
(
THcShowerHitSet
&
HitSet
)
{
// Collect hits from the HitSet into the clusters. The resultant clusters
// Collect hits from the HitSet into the clusters. The resultant clusters
// of hits are saved in the ClusterList.
// of hits are saved in the
f
ClusterList.
while
(
HitSet
.
size
()
!=
0
)
{
while
(
HitSet
.
size
()
!=
0
)
{
...
@@ -724,6 +723,8 @@ void THcShower::ClusterHits(THcShowerHitSet& HitSet) {
...
@@ -724,6 +723,8 @@ void THcShower::ClusterHits(THcShowerHitSet& HitSet) {
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Various helper functions to accumulate hit related quantities.
Double_t
addE
(
Double_t
x
,
THcShowerHit
*
h
)
{
Double_t
addE
(
Double_t
x
,
THcShowerHit
*
h
)
{
return
x
+
h
->
hitE
();
return
x
+
h
->
hitE
();
}
}
...
@@ -780,7 +781,6 @@ Double_t clEpr(THcShowerCluster* cluster) {
...
@@ -780,7 +781,6 @@ Double_t clEpr(THcShowerCluster* cluster) {
return
accumulate
((
*
cluster
).
begin
(),(
*
cluster
).
end
(),
0.
,
addEpr
);
return
accumulate
((
*
cluster
).
begin
(),(
*
cluster
).
end
(),
0.
,
addEpr
);
}
}
//Cluster energy deposition in plane iplane=0,..,3:
//Cluster energy deposition in plane iplane=0,..,3:
// side=0 -- from positive PMTs only;
// side=0 -- from positive PMTs only;
// side=1 -- from negative PMTs only;
// side=1 -- from negative PMTs only;
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.h
+
5
−
2
View file @
5c48c0e3
...
@@ -104,7 +104,7 @@ public:
...
@@ -104,7 +104,7 @@ public:
<<
" E="
<<
fE
<<
" Epos="
<<
fEpos
<<
" Eneg="
<<
fEneg
<<
endl
;
<<
" E="
<<
fE
<<
" Epos="
<<
fEpos
<<
" Eneg="
<<
fEneg
<<
endl
;
}
}
// Define < operator in order to fill in
hit se
ts in a sorted manner.
// Define < operator in order to fill in
set of hi
ts in a sorted manner.
//
//
bool
operator
<
(
THcShowerHit
rhs
)
const
{
bool
operator
<
(
THcShowerHit
rhs
)
const
{
if
(
fCol
!=
rhs
.
fCol
)
if
(
fCol
!=
rhs
.
fCol
)
...
@@ -306,12 +306,15 @@ protected:
...
@@ -306,12 +306,15 @@ protected:
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//
Auxiliary methods to be used with the hit and cluster container
s.
//
Various helper functions to accumulate hit related quantitie
s.
Double_t
addE
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addE
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addX
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addX
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addZ
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addZ
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addEpr
(
Double_t
x
,
THcShowerHit
*
h
);
Double_t
addEpr
(
Double_t
x
,
THcShowerHit
*
h
);
// Methods to calculate coordinates and energy depositions for a given cluster.
Double_t
clX
(
THcShowerCluster
*
cluster
);
Double_t
clX
(
THcShowerCluster
*
cluster
);
Double_t
clZ
(
THcShowerCluster
*
cluster
);
Double_t
clZ
(
THcShowerCluster
*
cluster
);
Double_t
clE
(
THcShowerCluster
*
cluster
);
Double_t
clE
(
THcShowerCluster
*
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