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
eec53d9e
Commit
eec53d9e
authored
9 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Add adjustment of fiducial volume limits of Shower counter to the
fly's eye part.
parent
93a087c5
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/THcShower.cxx
+13
-0
13 additions, 0 deletions
src/THcShower.cxx
src/THcShower.h
+4
-4
4 additions, 4 deletions
src/THcShower.h
src/THcShowerArray.cxx
+31
-0
31 additions, 0 deletions
src/THcShowerArray.cxx
src/THcShowerArray.h
+5
-0
5 additions, 0 deletions
src/THcShowerArray.h
with
53 additions
and
4 deletions
src/THcShower.cxx
+
13
−
0
View file @
eec53d9e
...
@@ -163,6 +163,19 @@ THaAnalysisObject::EStatus THcShower::Init( const TDatime& date )
...
@@ -163,6 +163,19 @@ THaAnalysisObject::EStatus THcShower::Init( const TDatime& date )
return
kInitError
;
return
kInitError
;
}
}
if
(
fHasArray
)
{
cout
<<
"THcShower::Init: adjustment of fiducial volume limits to the fly's eye part."
<<
endl
;
cout
<<
" Old limits:"
<<
endl
;
cout
<<
" Xmin = "
<<
fvXmin
<<
" Xmax = "
<<
fvXmax
<<
endl
;
cout
<<
" Ymin = "
<<
fvYmin
<<
" Ymax = "
<<
fvYmax
<<
endl
;
fvXmin
=
TMath
::
Max
(
fvXmin
,
fArray
->
fvXmin
());
fvXmax
=
TMath
::
Min
(
fvXmax
,
fArray
->
fvXmax
());
fvYmin
=
TMath
::
Max
(
fvYmin
,
fArray
->
fvYmin
());
fvYmax
=
TMath
::
Min
(
fvYmax
,
fArray
->
fvYmax
());
cout
<<
" New limits:"
<<
endl
;
cout
<<
" Xmin = "
<<
fvXmin
<<
" Xmax = "
<<
fvXmax
<<
endl
;
cout
<<
" Ymin = "
<<
fvYmin
<<
" Ymax = "
<<
fvYmax
<<
endl
;
}
cout
<<
"---------------------------------------------------------------
\n
"
;
cout
<<
"---------------------------------------------------------------
\n
"
;
cout
<<
"From THcShower::Init: initialized "
<<
GetApparatus
()
->
GetName
()
cout
<<
"From THcShower::Init: initialized "
<<
GetApparatus
()
->
GetName
()
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.h
+
4
−
4
View file @
eec53d9e
...
@@ -154,8 +154,8 @@ public:
...
@@ -154,8 +154,8 @@ public:
Int_t
GetNBlocks
(
Int_t
NLayer
)
const
{
return
fNBlocks
[
NLayer
];}
Int_t
GetNBlocks
(
Int_t
NLayer
)
const
{
return
fNBlocks
[
NLayer
];}
Double_t
GetXPos
(
Int_t
NLayer
,
Int_t
NR
a
w
)
const
{
Double_t
GetXPos
(
Int_t
NLayer
,
Int_t
NR
o
w
)
const
{
return
fXPos
[
NLayer
][
NR
a
w
];
return
fXPos
[
NLayer
][
NR
o
w
];
}
}
Double_t
GetYPos
(
Int_t
NLayer
,
Int_t
Side
)
const
{
Double_t
GetYPos
(
Int_t
NLayer
,
Int_t
Side
)
const
{
...
@@ -247,8 +247,8 @@ protected:
...
@@ -247,8 +247,8 @@ protected:
Int_t
fNclust
;
// Number of clusters
Int_t
fNclust
;
// Number of clusters
Int_t
fNtracks
;
// Number of shower tracks, i.e. number of
Int_t
fNtracks
;
// Number of shower tracks, i.e. number of
// cluster-to-track association
// cluster-to-track association
Double_t
fEtot
;
// Total energy
Double_t
fEtot
;
// Total energy
Double_t
fEtotNorm
;
// Total energy divided by spec central momentum
Double_t
fEtotNorm
;
// Total energy divided by spec central momentum
THcShowerClusterList
*
fClusterList
;
// List of hit clusters
THcShowerClusterList
*
fClusterList
;
// List of hit clusters
...
...
This diff is collapsed.
Click to expand it.
src/THcShowerArray.cxx
+
31
−
0
View file @
eec53d9e
...
@@ -85,6 +85,9 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
...
@@ -85,6 +85,9 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
prefix
[
1
]
=
'\0'
;
prefix
[
1
]
=
'\0'
;
cout
<<
"Parent name: "
<<
GetParent
()
->
GetPrefix
()
<<
endl
;
cout
<<
"Parent name: "
<<
GetParent
()
->
GetPrefix
()
<<
endl
;
fNRows
=
fNColumns
=
0
;
fXFront
=
fYFront
=
fZFront
=
0.
;
fXStep
=
fYStep
=
0.
;
fUsingFADC
=
0
;
fUsingFADC
=
0
;
fPedSampLow
=
0
;
fPedSampLow
=
0
;
fPedSampHigh
=
9
;
fPedSampHigh
=
9
;
...
@@ -628,3 +631,31 @@ void THcShowerArray::InitializePedestals( )
...
@@ -628,3 +631,31 @@ void THcShowerArray::InitializePedestals( )
fPedCount
[
i
]
=
0
;
fPedCount
[
i
]
=
0
;
}
}
}
}
//------------------------------------------------------------------------------
// Fiducial volume limits.
Double_t
THcShowerArray
::
fvXmin
()
{
THcShower
*
fParent
;
fParent
=
(
THcShower
*
)
GetParent
();
return
fXPos
[
0
][
0
]
-
fXStep
/
2
+
fParent
->
fvDelta
;
}
Double_t
THcShowerArray
::
fvYmax
()
{
THcShower
*
fParent
;
fParent
=
(
THcShower
*
)
GetParent
();
return
fYPos
[
0
][
0
]
+
fYStep
/
2
-
fParent
->
fvDelta
;
}
Double_t
THcShowerArray
::
fvXmax
()
{
THcShower
*
fParent
;
fParent
=
(
THcShower
*
)
GetParent
();
return
fXPos
[
fNRows
-
1
][
fNColumns
-
1
]
+
fXStep
/
2
-
fParent
->
fvDelta
;
}
Double_t
THcShowerArray
::
fvYmin
()
{
THcShower
*
fParent
;
fParent
=
(
THcShower
*
)
GetParent
();
return
fYPos
[
fNRows
-
1
][
fNColumns
-
1
]
-
fYStep
/
2
+
fParent
->
fvDelta
;
}
This diff is collapsed.
Click to expand it.
src/THcShowerArray.h
+
5
−
0
View file @
eec53d9e
...
@@ -56,6 +56,11 @@ public:
...
@@ -56,6 +56,11 @@ public:
return
0.0
;
return
0.0
;
};
};
// Fiducial volume limits.
Double_t
fvXmin
();
Double_t
fvYmax
();
Double_t
fvXmax
();
Double_t
fvYmin
();
protected
:
protected
:
...
...
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