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
1d90bdca
Commit
1d90bdca
authored
12 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Added read in min. pedestal number fMinPeds in ShowerPlane
parent
c37fb81d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/hodtest.C
+2
-2
2 additions, 2 deletions
examples/hodtest.C
src/THcShower.cxx
+1
-0
1 addition, 0 deletions
src/THcShower.cxx
src/THcShower.h
+6
-0
6 additions, 0 deletions
src/THcShower.h
src/THcShowerPlane.cxx
+3
-3
3 additions, 3 deletions
src/THcShowerPlane.cxx
with
12 additions
and
5 deletions
examples/hodtest.C
+
2
−
2
View file @
1d90bdca
...
...
@@ -65,8 +65,8 @@
// the pedestal events
// run->SetEventRange(1,2000);// Physics Event number, does not
// include scaler or control events
run
->
SetEventRange
(
1
,
999999
);
//
run->SetEventRange(1,1);
//
run->SetEventRange(1,999999);
run
->
SetEventRange
(
1
,
1
);
// Define the analysis parameters
analyzer
->
SetEvent
(
event
);
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.cxx
+
1
−
0
View file @
1d90bdca
...
...
@@ -235,6 +235,7 @@ Int_t THcShower::ReadDatabase( const TDatime& date )
// {"cal_neg_gain_cur", hcal_neg_gain_cur, kDouble, fNtotBlocks},
{
"cal_neg_ped_limit"
,
fShNegPedLimit
,
kInt
,
fNtotBlocks
},
{
"cal_neg_gain_cor"
,
hcal_neg_gain_cor
,
kDouble
,
fNtotBlocks
},
{
"cal_min_peds"
,
&
fShMinPeds
,
kInt
},
{
0
}
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.h
+
6
−
0
View file @
1d90bdca
...
...
@@ -46,6 +46,10 @@ public:
return
(
Side
==
0
?
fShPosPedLimit
[
nelem
]
:
fShNegPedLimit
[
nelem
]);
}
Int_t
fGetMinPeds
()
{
return
fShMinPeds
;
}
THcShower
();
// for ROOT I/O
protected
:
...
...
@@ -56,6 +60,8 @@ protected:
Int_t
*
fShPosPedLimit
;
Int_t
*
fShNegPedLimit
;
Int_t
fShMinPeds
;
//Min.number of events to analize/update pedestals.
// Calibration constants
Double_t
*
fPosCalConst
;
Double_t
*
fNegCalConst
;
...
...
This diff is collapsed.
Click to expand it.
src/THcShowerPlane.cxx
+
3
−
3
View file @
1d90bdca
...
...
@@ -146,6 +146,9 @@ Int_t THcShowerPlane::ReadDatabase( const TDatime& date )
for
(
Int_t
i
=
0
;
i
<
fNelem
;
i
++
)
cout
<<
" "
<<
fNegPedLimit
[
i
];
cout
<<
endl
;
fMinPeds
=
fParent
->
fGetMinPeds
();
cout
<<
" fMinPeds = "
<<
fMinPeds
<<
endl
;
InitializePedestals
();
return
kOK
;
...
...
@@ -337,14 +340,11 @@ void THcShowerPlane::CalculatePedestals( )
void
THcShowerPlane
::
InitializePedestals
(
)
{
fNPedestalEvents
=
0
;
fMinPeds
=
500
;
// In engine, this is set in parameter file
fPosPedSum
=
new
Int_t
[
fNelem
];
fPosPedSum2
=
new
Int_t
[
fNelem
];
// fPosPedLimit = new Int_t [fNelem];
fPosPedCount
=
new
Int_t
[
fNelem
];
fNegPedSum
=
new
Int_t
[
fNelem
];
fNegPedSum2
=
new
Int_t
[
fNelem
];
// fNegPedLimit = new Int_t [fNelem];
fNegPedCount
=
new
Int_t
[
fNelem
];
fPosSig
=
new
Double_t
[
fNelem
];
...
...
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