|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef LArSamples_SimpleShape_H
12 #define LArSamples_SimpleShape_H
31 double timeInterval = 25,
double startTime = 0);
37 m_values(
other.m_values), m_errors(
other.m_errors),
38 m_timeInterval(
other.m_timeInterval), m_startTime(
other.m_startTime) { }
48 unsigned int nPoints()
const {
return m_values.size(); }
49 double value(
unsigned int i)
const {
return (
i < m_values.size() ? m_values[
i] : -1E99); }
50 double time(
unsigned int i)
const;
51 double covariance(
unsigned int i,
unsigned int j)
const {
return (
i == j ? m_errors[
i]*m_errors[
i] : 0); }
61 TH1D*
histogram(
const char*
name =
"shape",
const char*
title =
"",
bool timeInUnitOfSamples =
false)
const;
63 static bool add(std::unique_ptr<SimpleShape>& s1,
const AbsShape&
s2);
64 static bool scaleAndShift(std::unique_ptr<SimpleShape>& s1,
double scale,
double shift = 0);
69 double m_timeInterval{}, m_startTime{};
std::vector< double > m_values
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
unsigned int nPoints() const
void set(unsigned int i, double value, double error=-1)
double covariance(unsigned int i, unsigned int j) const
double timeInterval() const
bool add(const std::string &hname, TKey *tobj)
SimpleShape(const SimpleShape &other)
void setError(unsigned int i, double error)
Define macros for attributes used to control the static checker.
double value(unsigned int i) const