|
ATLAS Offline Software
|
Go to the documentation of this file.
18 m_timeInterval(timeInterval), m_startTime(
startTime)
24 : m_values(nPoints), m_errors(nPoints),
25 m_timeInterval(timeInterval), m_startTime(
startTime)
32 for (
unsigned int i = 0;
i < shape.
nPoints();
i++) {
44 for (
unsigned int i = 0;
i < shapeInfo.
nPoints();
i++) {
45 if (samplingTimeOnly && shapeInfo.
phase(
i) != 0)
continue;
109 h->GetXaxis()->SetTitle(timeInUnitOfSamples ?
"Sample Index" :
"Time (ns)");
110 h->GetYaxis()->SetTitle(
"ADC counts");
111 h->GetYaxis()->SetTitleOffset(1.1);
112 h->SetMarkerStyle(20);
115 for (
unsigned int i = 0;
i <
nPoints();
i++) {
131 if (!
sum)
return false;
139 if (!s1)
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
static bool scaleAndShift(std::unique_ptr< SimpleShape > &s1, double scale, double shift=0)
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 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