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
afd4ab60
Commit
afd4ab60
authored
9 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Add THcShowerHitCluster.cxx in src/SConscript.py.
parent
516d58b8
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
src/SConscript.py
+1
-1
1 addition, 1 deletion
src/SConscript.py
src/THcShowerHitCluster.cxx
+6
-4
6 additions, 4 deletions
src/THcShowerHitCluster.cxx
src/THcShowerHitCluster.h
+7
-44
7 additions, 44 deletions
src/THcShowerHitCluster.h
with
14 additions
and
49 deletions
src/SConscript.py
+
1
−
1
View file @
afd4ab60
...
@@ -21,7 +21,7 @@ THcDCWire.cxx \
...
@@ -21,7 +21,7 @@ THcDCWire.cxx \
THcSpacePoint.cxx THcDCTrack.cxx
\
THcSpacePoint.cxx THcDCTrack.cxx
\
THcDCLookupTTDConv.cxx THcDCTimeToDistConv.cxx
\
THcDCLookupTTDConv.cxx THcDCTimeToDistConv.cxx
\
THcShower.cxx THcShowerPlane.cxx THcShowerArray.cxx
\
THcShower.cxx THcShowerPlane.cxx THcShowerArray.cxx
\
THcRawShowerHit.cxx
\
THcRawShowerHit.cxx
THcShowerHitCluster.cxx
THcAerogel.cxx THcAerogelHit.cxx
\
THcAerogel.cxx THcAerogelHit.cxx
\
THcCherenkov.cxx THcCherenkovHit.cxx
\
THcCherenkov.cxx THcCherenkovHit.cxx
\
THcFormula.cxx
\
THcFormula.cxx
\
...
...
This diff is collapsed.
Click to expand it.
src/THcShowerHitCluster.cxx
+
6
−
4
View file @
afd4ab60
#include
"THcShowerHitCluster.h"
#include
"THcShowerHitCluster.h"
//____________________________________________________________________________
//ClassImp(THcShowerHit)
using
namespace
std
;
THcShowerHit
::
THcShowerHit
()
{
//default constructor
THcShowerHit
::
THcShowerHit
()
{
//default constructor
fCol
=
fRow
=
0
;
fCol
=
fRow
=
0
;
fX
=
fZ
=
0.
;
fX
=
fZ
=
0.
;
...
@@ -9,7 +12,6 @@ THcShowerHit::THcShowerHit() { //default constructor
...
@@ -9,7 +12,6 @@ THcShowerHit::THcShowerHit() { //default constructor
fEneg
=
0.
;
fEneg
=
0.
;
}
}
//____________________________________________________________________________
THcShowerHit
::
THcShowerHit
(
Int_t
hRow
,
Int_t
hCol
,
Double_t
hX
,
Double_t
hZ
,
THcShowerHit
::
THcShowerHit
(
Int_t
hRow
,
Int_t
hCol
,
Double_t
hX
,
Double_t
hZ
,
Double_t
hE
,
Double_t
hEpos
,
Double_t
hEneg
)
{
Double_t
hE
,
Double_t
hEpos
,
Double_t
hEneg
)
{
fRow
=
hRow
;
fRow
=
hRow
;
...
@@ -44,8 +46,8 @@ void THcShowerHit::show() {
...
@@ -44,8 +46,8 @@ void THcShowerHit::show() {
}
}
//____________________________________________________________________________
//____________________________________________________________________________
// Define < operator in order to fill in set of hits in a sorted manner.
// Define < operator in order to fill in set of hits in a sorted manner.
//
//
bool
THcShowerHit
::
operator
<
(
THcShowerHit
rhs
)
const
{
bool
THcShowerHit
::
operator
<
(
THcShowerHit
rhs
)
const
{
if
(
fCol
!=
rhs
.
fCol
)
if
(
fCol
!=
rhs
.
fCol
)
return
fCol
<
rhs
.
fCol
;
return
fCol
<
rhs
.
fCol
;
...
...
This diff is collapsed.
Click to expand it.
src/THcShowerHitCluster.h
+
7
−
44
View file @
afd4ab60
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
#include
<iterator>
#include
<iterator>
#include
<iostream>
#include
<iostream>
#include
<memory>
#include
<memory>
#include
"TMath.h"
using
namespace
std
;
using
namespace
std
;
class
THcShowerHit
{
//HMS calorimeter hit class
class
THcShowerHit
{
//HMS calorimeter hit class
private:
Int_t
fCol
,
fRow
;
//hit colomn and row
Int_t
fCol
,
fRow
;
//hit colomn and row
Double_t
fX
,
fZ
;
//hit X (vert.) and Z (along spect.axis) coordinates
Double_t
fX
,
fZ
;
//hit X (vert.) and Z (along spect.axis) coordinates
Double_t
fE
;
//hit mean energy deposition
Double_t
fE
;
//hit mean energy deposition
...
@@ -21,24 +21,10 @@ private:
...
@@ -21,24 +21,10 @@ private:
public:
public:
THcShowerHit
()
{
//default constructor
THcShowerHit
();
fCol
=
fRow
=
0
;
fX
=
fZ
=
0.
;
fE
=
0.
;
fEpos
=
0.
;
fEneg
=
0.
;
}
THcShowerHit
(
Int_t
hRow
,
Int_t
hCol
,
Double_t
hX
,
Double_t
hZ
,
THcShowerHit
(
Int_t
hRow
,
Int_t
hCol
,
Double_t
hX
,
Double_t
hZ
,
Double_t
hE
,
Double_t
hEpos
,
Double_t
hEneg
)
{
Double_t
hE
,
Double_t
hEpos
,
Double_t
hEneg
);
fRow
=
hRow
;
fCol
=
hCol
;
fX
=
hX
;
fZ
=
hZ
;
fE
=
hE
;
fEpos
=
hEpos
;
fEneg
=
hEneg
;
}
~
THcShowerHit
()
{
~
THcShowerHit
()
{
// cout << " hit destructed" << endl;
// cout << " hit destructed" << endl;
...
@@ -72,34 +58,11 @@ public:
...
@@ -72,34 +58,11 @@ public:
return
fEneg
;
return
fEneg
;
}
}
// Decide if a hit is neighbouring the current hit.
bool
isNeighbour
(
THcShowerHit
*
hit1
);
// Two hits are neighbours if share a side or a corner,
void
show
();
// or in the same row but separated by no more than a block.
bool
operator
<
(
THcShowerHit
rhs
)
const
;
//
bool
isNeighbour
(
THcShowerHit
*
hit1
)
{
//Is hit1 neighbouring this hit?
Int_t
dRow
=
fRow
-
(
*
hit1
).
fRow
;
Int_t
dCol
=
fCol
-
(
*
hit1
).
fCol
;
return
(
TMath
::
Abs
(
dRow
)
<
2
&&
TMath
::
Abs
(
dCol
)
<
2
)
||
(
dRow
==
0
&&
TMath
::
Abs
(
dCol
)
<
3
);
}
//Print out hit information
//
void
show
()
{
cout
<<
"row="
<<
fRow
<<
" column="
<<
fCol
<<
" x="
<<
fX
<<
" z="
<<
fZ
<<
" E="
<<
fE
<<
" Epos="
<<
fEpos
<<
" Eneg="
<<
fEneg
<<
endl
;
}
// Define < operator in order to fill in set of hits in a sorted manner.
//
bool
operator
<
(
THcShowerHit
rhs
)
const
{
if
(
fCol
!=
rhs
.
fCol
)
return
fCol
<
rhs
.
fCol
;
else
return
fRow
<
rhs
.
fRow
;
}
// ClassDef(THcShowerHit,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