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
df70d56b
Commit
df70d56b
authored
8 years ago
by
Jure Bericic
Browse files
Options
Downloads
Patches
Plain Diff
Added documentation for THcRawTdcHit.
Added documentation for THcRawAdcHit.
parent
3b184696
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/THcRawAdcHit.cxx
+207
-1
207 additions, 1 deletion
src/THcRawAdcHit.cxx
src/THcRawTdcHit.cxx
+70
-2
70 additions, 2 deletions
src/THcRawTdcHit.cxx
src/THcRawTdcHit.h
+1
-1
1 addition, 1 deletion
src/THcRawTdcHit.h
with
278 additions
and
4 deletions
src/THcRawAdcHit.cxx
+
207
−
1
View file @
df70d56b
/**
/**
\class THcRawAdcHit
\class THcRawAdcHit
\ingroup DetSupport
\ingroup DetSupport
\brief Class representing a single raw ADC hit.
\brief Class representing a single raw ADC hit.
It supports rich data from flash 250 ADC modules.
It supports rich data from flash 250 ADC modules.
*/
*/
/**
\fn THcRawAdcHit::THcRawAdcHit()
\brief Constructor.
*/
/**
\fn THcRawAdcHit& THcRawAdcHit::operator=(const THcRawAdcHit& right)
\brief Assignment operator.
\param[in] right Raw ADC hit to be assigned.
*/
/**
\fn THcRawAdcHit::~THcRawAdcHit()
\brief Destructor.
*/
/**
\fn void THcRawAdcHit::Clear(Option_t* opt="")
\brief Clears variables before next event.
\param[in] opt Maybe used in base clas... Not sure.
*/
/**
\fn void THcRawAdcHit::SetData(Int_t data)
\brief Sets raw ADC value.
\param[in] data Raw ADC value. In channels.
\throw std::out_of_range Tried to set too many pulses.
Should be used for old style ADCs.
*/
/**
\fn void THcRawAdcHit::SetSample(Int_t data)
\brief Sets raw signal sample.
\param[in] data Raw signal sample. In channels.
\throw std::out_of_range Tried to set too many samples.
*/
/**
\fn void THcRawAdcHit::SetDataTimePedestalPeak(Int_t data, Int_t time, Int_t pedestal, Int_t peak)
\brief Sets various bits of ADC data.
\param[in] data Raw pulse integral. In channels.
\param[in] time Raw pulse time. In subsamples.
\param[in] pedestal Raw signal pedestal. In channels.
\param[in] peak Raw pulse amplitude. In channels.
\throw std::out_of_range Tried to set too many pulses.
Should be used for flash 250 modules.
*/
/**
\fn Int_t THcRawAdcHit::GetRawData(UInt_t iPulse=0) const
\brief Gets raw pulse integral. In channels.
\param[in] iPulse Sequential number of requested pulse.
\throw std::out_of_range Tried to get nonexisting pulse.
Returns 0 if tried to access first pulse but no pulses are set.
*/
/**
\fn Int_t THcRawAdcHit::GetAdcTime(UInt_t iPulse=0) const
\brief Gets raw pulse time. In subsamples.
\param[in] iPulse Sequential number of requested pulse.
\throw std::out_of_range Tried to get nonexisting pulse.
Returns 0 if tried to access first pulse but no pulses are set.
Returns 0 if no pulse time is set.
*/
/**
\fn Int_t THcRawAdcHit::GetAdcPedestal(UInt_t iPulse=0) const
\brief Gets raw signal pedestal. In channels.
\param[in] iPulse Sequential number of requested pulse.
\throw std::out_of_range Tried to get nonexisting pulse.
Returns 0 if tried to access first pulse but no pulses are set.
Returns 0 if no signal pedestal is set.
*/
/**
\fn Int_t THcRawAdcHit::GetAdcPulse(UInt_t iPulse=0) const
\brief Gets raw pulse amplitude. In channels.
\param[in] iPulse Sequential number of requested pulse.
\throw std::out_of_range Tried to get nonexisting pulse.
Returns 0 if tried to access first pulse but no pulses are set.
Returns 0 if no pulse peak is set.
*/
/**
\fn Int_t THcRawAdcHit::GetSample(UInt_t iSample) const
\brief Gets raw signal sample. In channels.
\param[in] iSample Sequential number of requested sample.
\throw std::out_of_range Tried to get nonexisting sample.
Returns 0 if tried to access first sample but no samples are set.
*/
/**
\fn Double_t THcRawAdcHit::GetAverage(UInt_t iSampleLow, UInt_t iSampleHigh) const
\brief Gets average of raw samples. In channels.
\param[in] iSampleLow Sequential number of first sample to be averaged.
\param[in] iSampleHigh Sequential number of last sample to be averaged.
\throw std::out_of_range Tried to average over nonexisting sample.
*/
/**
\fn Int_t THcRawAdcHit::GetIntegral(UInt_t iSampleLow, UInt_t iSampleHigh) const
\brief Gets integral of raw samples. In channels.
\param[in] iSampleLow Sequential number of first sample to be integrated.
\param[in] iSampleHigh Sequential number of last sample to be integrated.
\throw std::out_of_range Tried to integrate over nonexisting sample.
*/
/**
\fn Double_t THcRawAdcHit::GetData(UInt_t iPedLow, UInt_t iPedHigh, UInt_t iIntLow, UInt_t iIntHigh) const
\brief Gets pedestal subtracted integral of samples. In channels.
\param[in] iPedLow Sequential number of first sample to be averaged for pedestal value.
\param[in] iPedHigh Sequential number of last sample to be averaged for pedestal value.
\param[in] iIntLow Sequential number of first sample to be integrated.
\param[in] iIntHigh Sequential number of last sample to be integrated.
*/
/**
\fn UInt_t THcRawAdcHit::GetNPulses() const
\brief Gets number of set pulses.
*/
/**
\fn UInt_t THcRawAdcHit::GetNSamples() const
\brief Gets number of set samples.
*/
/**
\fn Bool_t THcRawAdcHit::HasMulti() const
\brief Queries whether data is from flash 250 module.
*/
/**
\fn Int_t THcRawAdcHit::GetPedRaw() const
\brief Gets raw signal pedestal. In channels.
Returns 0 if no signal pedestal is set.
*/
/**
\fn Int_t THcRawAdcHit::GetPulseIntRaw(UInt_t iPulse=0) const
\brief Gets raw pulse integral. In channels.
\param[in] iPulse Sequential number of requested pulse.
Check iPulse validity before calling!
*/
/**
\fn Int_t THcRawAdcHit::GetPulseAmpRaw(UInt_t iPulse=0) const
\brief Gets raw pulse amplitude. In channels.
\param[in] iPulse Sequential number of requested pulse.
Check iPulse validity before calling!
*/
/**
\fn Int_t THcRawAdcHit::GetPulseTimeRaw(UInt_t iPulse=0) const
\brief Gets raw pulse time. In subsamples.
\param[in] iPulse Sequential number of requested pulse.
Check iPulse validity before calling!
*/
/**
\fn Double_t THcRawAdcHit::GetPed() const
\brief Gets sample pedestal. In channels.
Returns 0 if no signal pedestal is set.
*/
/**
\fn Double_t THcRawAdcHit::GetPulseInt(UInt_t iPulse=0) const
\brief Gets pedestal subtracted pulse integral. In channels.
\param[in] iPulse Sequential number of requested pulse.
Check iPulse validity before calling!
*/
/**
\fn Double_t THcRawAdcHit::GetPulseAmp(UInt_t iPulse=0) const
\brief Gets pedestal subtracted pulse amplitude. In channels.
\param[in] iPulse Sequential number of requested pulse.
Check iPulse validity before calling!
*/
/**
\fn Int_t THcRawAdcHit::GetSampleIntRaw() const
\brief Gets raw integral of samples. In channels.
*/
/**
\fn Double_t THcRawAdcHit::GetSampleInt() const
\brief Gets pedestal subtracted integral of samples. In channels.
*/
// TODO: Disallow using both SetData and SetDataTimePedestalPeak.
// TODO: Add checks to new getters.
// TODO: Deprecate and remove old getters.
#include
"THcRawAdcHit.h"
#include
"THcRawAdcHit.h"
#include
<stdexcept>
#include
<stdexcept>
...
...
This diff is collapsed.
Click to expand it.
src/THcRawTdcHit.cxx
+
70
−
2
View file @
df70d56b
/**
/**
\class THcRawTdcHit
\class THcRawTdcHit
\ingroup DetSupport
\ingroup DetSupport
\brief Class representing a single raw TDC hit.
\brief Class representing a single raw TDC hit.
*/
*/
/**
\fn THcRawTdcHit::THcRawTdcHit()
\brief Constructor.
*/
/**
\fn THcRawTdcHit& THcRawTdcHit::operator=(const THcRawTdcHit& right)
\brief Assignment operator.
\param[in] right Raw TDC hit to be assigned.
*/
/**
\fn THcRawTdcHit::~THcRawTdcHit()
\brief Destructor.
*/
/**
\fn void THcRawTdcHit::Clear(Option_t* opt="")
\brief Clears variables before next event.
\param[in] opt Maybe used in base clas... Not sure.
*/
/**
\fn void THcRawTdcHit::SetTime(Int_t time)
\brief Sets raw TDC time from the modules. In channels.
\param[in] time Raw TDC time from the modules. In channels.
\throw std::out_of_range Tried to set too many hits.
*/
/**
\fn void THcRawTdcHit::SetRefTime(Int_t refTime)
\brief Sets reference time. In channels.
\param[in] refTime Reference time. In channels.
*/
/**
\fn Int_t THcRawTdcHit::GetTimeRaw(UInt_t iHit=0) const
\brief Gets raw TDC time. In channels.
\param[in] iHit Sequential number of requested hit.
\throw std::out_of_range Tried to access nonexisting hit.
Returns 0 if tried to access first hit but no hits are set.
*/
/**
\fn Int_T THcRawTdcHit::GetTime(UInt_t iHit=0) const
\brief Gets TDC time. In channels.
\param[in] iHit Sequential number of requested hit.
Returned time is corrected for reference time, if available.
*/
/**
\fn Int_t THcRawTdcHit::GetRefTime() const
\brief Gets reference time. In channels.
\throw std::runtime_error No reference time was set.
*/
/**
\fn Bool_t THcRawTdcHit::HasRefTime() const
\brief Queries whether reference time has been set.
*/
/**
\fn UInt_t THcRawTdcHit::GetNHits() const
\brief Gets the number of set hits.
*/
#include
"THcRawTdcHit.h"
#include
"THcRawTdcHit.h"
#include
<stdexcept>
#include
<stdexcept>
...
@@ -110,7 +178,7 @@ Int_t THcRawTdcHit::GetRefTime() const {
...
@@ -110,7 +178,7 @@ Int_t THcRawTdcHit::GetRefTime() const {
}
}
Int
_t
THcRawTdcHit
::
HasRefTime
()
const
{
Bool
_t
THcRawTdcHit
::
HasRefTime
()
const
{
return
fHasRefTime
;
return
fHasRefTime
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcRawTdcHit.h
+
1
−
1
View file @
df70d56b
...
@@ -19,7 +19,7 @@ class THcRawTdcHit : public TObject {
...
@@ -19,7 +19,7 @@ class THcRawTdcHit : public TObject {
Int_t
GetTime
(
UInt_t
iHit
=
0
)
const
;
Int_t
GetTime
(
UInt_t
iHit
=
0
)
const
;
Int_t
GetRefTime
()
const
;
Int_t
GetRefTime
()
const
;
Int
_t
HasRefTime
()
const
;
Bool
_t
HasRefTime
()
const
;
UInt_t
GetNHits
()
const
;
UInt_t
GetNHits
()
const
;
...
...
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