![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
20 m_timeInterval(timeInterval), m_startTime(
startTime)
26 : m_values(nPoints), m_errors(nPoints),
27 m_timeInterval(timeInterval), m_startTime(
startTime)
34 for (
unsigned int i = 0;
i < shape.
nPoints();
i++) {
46 for (
unsigned int i = 0;
i < shapeInfo.
nPoints();
i++) {
47 if (samplingTimeOnly && shapeInfo.
phase(
i) != 0)
continue;
111 h->GetXaxis()->SetTitle(timeInUnitOfSamples ?
"Sample Index" :
"Time (ns)");
112 h->GetYaxis()->SetTitle(
"ADC counts");
113 h->GetYaxis()->SetTitleOffset(1.1);
114 h->SetMarkerStyle(20);
117 for (
unsigned int i = 0;
i <
nPoints();
i++) {
128 if (!
s2)
return false;
134 if (!
sum)
return false;
SimpleShape(const std::vector< double > &values, const std::vector< double > &errors, double timeInterval=25, double startTime=0)
Constructor
std::vector< double > m_values
unsigned int nIntervals() const
unsigned int nPoints() const
double time(unsigned int i) const
unsigned char phase(unsigned int i) const
virtual double value(unsigned int i) const =0
SimpleShape * createEmpty() const
std::vector< double > m_errors
unsigned int nPoints() const
double value(unsigned int i) const
bool add(unsigned int k, double value, double error)
void set(unsigned int i, double value, double error=-1)
virtual double error(unsigned int i) const
double timeInterval() const
TH1D * histogram(const char *name="shape", const char *title="", bool timeInUnitOfSamples=false) const
static bool scaleAndShift(SimpleShape *&s1, double scale, double shift=0)
static const unsigned int samplingInterval
virtual double time(unsigned int i) const =0
double value(unsigned int i) const
TVectorD values(int lwb, int upb) const
int interpolateDiff(double time, double &diff) const
virtual unsigned int nPoints() const =0
SimpleShape * diff() const