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
93a087c5
Commit
93a087c5
authored
9 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Add geometric parameters in THcShowerArray class.
parent
c5531cee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcShowerArray.cxx
+50
-2
50 additions, 2 deletions
src/THcShowerArray.cxx
src/THcShowerArray.h
+9
-0
9 additions, 0 deletions
src/THcShowerArray.h
with
59 additions
and
2 deletions
src/THcShowerArray.cxx
+
50
−
2
View file @
93a087c5
...
...
@@ -44,6 +44,9 @@ THcShowerArray::THcShowerArray( const char* name,
THcShowerArray
::~
THcShowerArray
()
{
// Destructor
delete
fXPos
;
delete
fYPos
;
delete
fADCHits
;
delete
[]
fA
;
...
...
@@ -88,8 +91,13 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
fDataSampLow
=
23
;
fDataSampHigh
=
49
;
DBRequest
list
[]
=
{
{
"cal_nrows"
,
&
fNRows
,
kInt
},
{
"cal_ncolumns"
,
&
fNColumns
,
kInt
},
{
"cal_arr_nrows"
,
&
fNRows
,
kInt
},
{
"cal_arr_ncolumns"
,
&
fNColumns
,
kInt
},
{
"cal_arr_front_x"
,
&
fXFront
,
kDouble
},
{
"cal_arr_front_y"
,
&
fYFront
,
kDouble
},
{
"cal_arr_front_z"
,
&
fZFront
,
kDouble
},
{
"cal_arr_xstep"
,
&
fXStep
,
kDouble
},
{
"cal_arr_ystep"
,
&
fYStep
,
kDouble
},
{
"cal_using_fadc"
,
&
fUsingFADC
,
kInt
,
0
,
1
},
{
"cal_ped_sample_low"
,
&
fPedSampLow
,
kInt
,
0
,
1
},
{
"cal_ped_sample_high"
,
&
fPedSampHigh
,
kInt
,
0
,
1
},
...
...
@@ -101,6 +109,22 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
fNelem
=
fNRows
*
fNColumns
;
fXPos
=
new
Double_t
*
[
fNRows
];
fYPos
=
new
Double_t
*
[
fNRows
];
for
(
UInt_t
i
=
0
;
i
<
fNRows
;
i
++
)
{
fXPos
[
i
]
=
new
Double_t
[
fNColumns
];
fYPos
[
i
]
=
new
Double_t
[
fNColumns
];
}
//Looking to the front, the numbering goes from left to right, and from top
//to bottom.
for
(
UInt_t
j
=
0
;
j
<
fNColumns
;
j
++
)
for
(
UInt_t
i
=
0
;
i
<
fNRows
;
i
++
)
{
fXPos
[
i
][
j
]
=
fXFront
-
(
fNRows
-
1
)
*
fXStep
/
2
+
fXStep
*
i
;
fYPos
[
i
][
j
]
=
fYFront
+
(
fNColumns
-
1
)
*
fYStep
/
2
-
fYStep
*
j
;
}
// Debug output.
THcShower
*
fParent
;
...
...
@@ -115,6 +139,30 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
<<
endl
;
cout
<<
" Columns "
<<
fNColumns
<<
", Rows "
<<
fNRows
<<
endl
;
cout
<<
"Front X, Y Z: "
<<
fXFront
<<
", "
<<
fYFront
<<
", "
<<
fZFront
<<
" cm"
<<
endl
;
cout
<<
" Block to block X and Y distances: "
<<
fXStep
<<
", "
<<
fYStep
<<
" cm"
<<
endl
;
cout
<<
"Block X coordinates:"
<<
endl
;
for
(
UInt_t
i
=
0
;
i
<
fNRows
;
i
++
)
{
for
(
UInt_t
j
=
0
;
j
<
fNColumns
;
j
++
)
{
cout
<<
fXPos
[
i
][
j
]
<<
" "
;
}
cout
<<
endl
;
}
cout
<<
endl
;
cout
<<
"Block Y coordinates:"
<<
endl
;
for
(
UInt_t
i
=
0
;
i
<
fNRows
;
i
++
)
{
for
(
UInt_t
j
=
0
;
j
<
fNColumns
;
j
++
)
{
cout
<<
fYPos
[
i
][
j
]
<<
" "
;
}
cout
<<
endl
;
}
cout
<<
endl
;
cout
<<
" Using FADC "
<<
fUsingFADC
<<
endl
;
if
(
fUsingFADC
)
{
cout
<<
" FADC pedestal sample low = "
<<
fPedSampLow
<<
", high = "
...
...
This diff is collapsed.
Click to expand it.
src/THcShowerArray.h
+
9
−
0
View file @
93a087c5
...
...
@@ -71,8 +71,17 @@ protected:
TClonesArray
*
fADCHits
;
// List of ADC hits
// Parameters
Int_t
fNRows
;
Int_t
fNColumns
;
Double_t
fXFront
;
// Front position X
Double_t
fYFront
;
// Front position Y
Double_t
fZFront
;
// Front position Z, from FP
Double_t
fXStep
;
// distance btw centers of blocks along X
Double_t
fYStep
;
// distance btw centers of blocks along Y
Double_t
**
fXPos
;
// block X coordinates
Double_t
**
fYPos
;
// block Y coordinates
Int_t
fUsingFADC
;
// != 0 if using FADC in sample mode
Int_t
fPedSampLow
;
// Sample range for
Int_t
fPedSampHigh
;
// dynamic pedestal
...
...
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