#include <SampleTailer.h>
Definition at line 37 of file SampleTailer.h.
SampleTailer::SampleTailer |
( |
float |
a_decayTime | ) |
|
Definition at line 22 of file SampleTailer.cxx.
int setDecayTime(float val, bool cancelSignal)
SampleTailer(float a_decayTime)
SampleTailer::SampleTailer |
( |
float |
a_decayTime, |
|
|
float |
a_alpha |
|
) |
| |
Definition at line 9 of file SampleTailer.cxx.
const FloatVector * m_ppedvec
int setDecayTime(float val, bool cancelSignal)
SampleTailer::~SampleTailer |
( |
| ) |
|
float SampleTailer::alpha |
( |
| ) |
const |
|
inline |
float SampleTailer::beta |
( |
| ) |
const |
|
inline |
void SampleTailer::clear |
( |
| ) |
|
float SampleTailer::data |
( |
Index |
isam | ) |
const |
|
inline |
TH1* SampleTailer::dataHist |
( |
| ) |
const |
|
inline |
TH1 * SampleTailer::dataHist |
( |
| ) |
|
Definition at line 172 of file SampleTailer.cxx.
175 if ( nsam == 0 )
return nullptr;
176 Name hnam =
"hst_data";
177 Name httl =
"Sample data; Tick;" +
unit();
178 TH1* ph =
new TH1F(hnam.c_str(), httl.c_str(), nsam, 0, nsam);
179 ph->SetDirectory(
nullptr);
182 for (
Index isam=0; isam<nsam; ++isam ) {
183 ph->SetBinContent(isam+1,
m_d[isam]);
ChannelGroupService::Name Name
float SampleTailer::decayTime |
( |
| ) |
const |
|
inline |
bool SampleTailer::isValid |
( |
| ) |
const |
|
inline |
void SampleTailer::makeHists |
( |
| ) |
|
float SampleTailer::pedestal |
( |
| ) |
const |
|
inline |
int SampleTailer::setAlpha |
( |
float |
val | ) |
|
int SampleTailer::setBeta |
( |
float |
val, |
|
|
bool |
cancelSignal |
|
) |
| |
int SampleTailer::setData |
( |
const FloatVector & |
inData | ) |
|
Definition at line 117 of file SampleTailer.cxx.
122 bool havePedVector =
m_ppedvec !=
nullptr;
123 if ( havePedVector &&
m_ppedvec->size() < nsam )
return 2;
124 m_s.resize(nsam, 0.0);
125 m_t.resize(nsam, 0.0);
129 for (
Index isam=0; isam<nsam; ++isam ) {
131 if ( havePedVector ) ped = (*m_ppedvec)[isam];
132 s =
m_d[isam] - t - ped;
const FloatVector * m_ppedvec
int SampleTailer::setDataZero |
( |
Index |
nsam | ) |
|
Definition at line 141 of file SampleTailer.cxx.
int setData(const FloatVector &inData)
Dft::FloatVector FloatVector
int SampleTailer::setDecayTime |
( |
float |
val, |
|
|
bool |
cancelSignal |
|
) |
| |
int SampleTailer::setPedestal |
( |
float |
val | ) |
|
int SampleTailer::setPedestalVector |
( |
const FloatVector * |
pval | ) |
|
int SampleTailer::setSignal |
( |
const FloatVector & |
inSignal | ) |
|
Definition at line 148 of file SampleTailer.cxx.
153 bool havePedVector =
m_ppedvec !=
nullptr;
154 if ( havePedVector &&
m_ppedvec->size() < nsam )
return 2;
155 m_d.resize(nsam, 0.0);
156 m_t.resize(nsam, 0.0);
160 for (
Index isam=0; isam<nsam; ++isam ) {
164 if ( havePedVector ) ped = (*m_ppedvec)[isam];
165 m_d[isam] = s + t + ped;
const FloatVector * m_ppedvec
int SampleTailer::setTail0 |
( |
float |
val | ) |
|
int SampleTailer::setUnit |
( |
Name |
val | ) |
|
|
inline |
float SampleTailer::signal |
( |
Index |
isam | ) |
const |
|
inline |
TH1* SampleTailer::signalHist |
( |
| ) |
const |
|
inline |
TH1 * SampleTailer::signalHist |
( |
| ) |
|
Definition at line 191 of file SampleTailer.cxx.
194 if ( nsam == 0 )
return nullptr;
195 Name hnam =
"hst_signal";
196 Name httl =
"Sample signal; Tick;" +
unit();
197 TH1* ph =
new TH1F(hnam.c_str(), httl.c_str(), nsam, 0, nsam);
198 ph->SetDirectory(
nullptr);
201 for (
Index isam=0; isam<nsam; ++isam ) {
202 ph->SetBinContent(isam+1,
m_s[isam]);
ChannelGroupService::Name Name
Index SampleTailer::size |
( |
| ) |
const |
|
inline |
float SampleTailer::tail |
( |
Index |
isam | ) |
const |
|
inline |
float SampleTailer::tail0 |
( |
| ) |
const |
|
inline |
TH1* SampleTailer::tailHist |
( |
| ) |
const |
|
inline |
TH1 * SampleTailer::tailHist |
( |
| ) |
|
Definition at line 210 of file SampleTailer.cxx.
213 if ( nsam == 0 )
return nullptr;
214 Name hnam =
"hst_tail";
215 Name httl =
"Sample tail; Tick;" +
unit();
216 TH1* ph =
new TH1F(hnam.c_str(), httl.c_str(), nsam, 0, nsam);
217 ph->SetDirectory(
nullptr);
220 for (
Index isam=0; isam<nsam; ++isam ) {
221 ph->SetBinContent(isam+1,
m_t[isam]);
ChannelGroupService::Name Name
Name SampleTailer::unit |
( |
| ) |
const |
|
inline |
float SampleTailer::m_alpha |
|
private |
float SampleTailer::m_beta |
|
private |
float SampleTailer::m_decayTime |
|
private |
float SampleTailer::m_pedestal |
|
private |
TH1* SampleTailer::m_phd =nullptr |
|
private |
TH1* SampleTailer::m_phs =nullptr |
|
private |
TH1* SampleTailer::m_pht =nullptr |
|
private |
float SampleTailer::m_tail0 |
|
private |
Name SampleTailer::m_unit |
|
private |
The documentation for this class was generated from the following files: