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
1f6613d9
Commit
1f6613d9
authored
9 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Correct change of value of fOrigin in THcShowerArray::MatchCluster.
parent
92058a52
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/THcShowerArray.cxx
+13
-1
13 additions, 1 deletion
src/THcShowerArray.cxx
with
13 additions
and
1 deletion
src/THcShowerArray.cxx
+
13
−
1
View file @
1f6613d9
...
...
@@ -132,6 +132,8 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
fYPos
[
i
][
j
]
=
fYFront
+
(
fNColumns
-
1
)
*
fYStep
/
2
-
fYStep
*
j
;
}
fOrigin
.
SetXYZ
(
fXFront
,
fYFront
,
fZFront
);
// Debug output.
THcShower
*
fParent
;
...
...
@@ -172,6 +174,12 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
}
cout
<<
endl
;
cout
<<
" Origin of Array:"
<<
endl
;
cout
<<
" Xorig = "
<<
GetOrigin
().
X
()
<<
endl
;
cout
<<
" Yorig = "
<<
GetOrigin
().
Y
()
<<
endl
;
cout
<<
" Zorig = "
<<
GetOrigin
().
Z
()
<<
endl
;
cout
<<
endl
;
cout
<<
" Using FADC "
<<
fUsingFADC
<<
endl
;
if
(
fUsingFADC
)
{
cout
<<
" FADC pedestal sample low = "
<<
fPedSampLow
<<
", high = "
...
...
@@ -180,6 +188,7 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
<<
fDataSampHigh
<<
endl
;
}
getchar
();
}
// Here read the 2-D arrays of pedestals, gains, etc.
...
...
@@ -441,7 +450,7 @@ Int_t THcShowerArray::MatchCluster(THaTrack* Track,
// Track interception with face of Array. The coordinates are
// in the Array's local system.
fOrigin
=
this
->
GetOrigin
();
fOrigin
=
GetOrigin
();
THcShower
*
fParent
=
(
THcShower
*
)
GetParent
();
...
...
@@ -458,6 +467,8 @@ Int_t THcShowerArray::MatchCluster(THaTrack* Track,
if
(
fParent
->
fvTest
)
{
TVector3
Origin
=
fOrigin
;
//save fOrigin
// Track coordinates at the back of the detector.
// Origin at the back of counter.
...
...
@@ -476,6 +487,7 @@ Int_t THcShowerArray::MatchCluster(THaTrack* Track,
(
XTrBack
<=
fParent
->
fvXmax
)
&&
(
XTrBack
>=
fParent
->
fvXmin
)
&&
(
YTrBack
<=
fParent
->
fvYmax
)
&&
(
YTrBack
>=
fParent
->
fvYmin
);
fOrigin
=
Origin
;
//restore fOrigin
}
// Match a cluster to the track. Choose closest to the track 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