Intermediate Class to store pedestal data from the L1CaloPedestalMaker algorithm.
More...
#include <L1CaloPedestalCumul.h>
Intermediate Class to store pedestal data from the L1CaloPedestalMaker algorithm.
Heavily inspired from the LArPedestal class
- Author
- Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch
Definition at line 21 of file L1CaloPedestalCumul.h.
◆ L1CaloPedestalCumul()
| L1CaloPedestalCumul::L1CaloPedestalCumul |
( |
| ) |
|
◆ ~L1CaloPedestalCumul()
| L1CaloPedestalCumul::~L1CaloPedestalCumul |
( |
| ) |
|
◆ add()
| void L1CaloPedestalCumul::add |
( |
const std::vector< int > & | samples | ) |
|
Definition at line 99 of file L1CaloPedestalCumul.cxx.
99 {
100 unsigned int nsamples = samples.size();
102
103 if(
m_sum.size()<nsamples) {
104 m_sum.resize(nsamples);
105 m_matrix.resize((nsamples*(nsamples+1))/2);
106 }
107
109 for(
unsigned j=i; j<
nsamples; j++,
k++)
m_matrix[k] += ((
double)(samples[j]*samples[i]));
111 }
113}
std::vector< double > m_matrix
std::vector< double > m_sum
◆ clear()
| void L1CaloPedestalCumul::clear |
( |
| ) |
|
Definition at line 115 of file L1CaloPedestalCumul.cxx.
115 {
117 int j =0;
118
122 }
124}
l
Printing final latex table to .tex output file.
◆ get_max()
| const short & L1CaloPedestalCumul::get_max |
( |
| ) |
const |
|
inline |
◆ get_mean() [1/2]
| double L1CaloPedestalCumul::get_mean |
( |
| ) |
const |
Definition at line 48 of file L1CaloPedestalCumul.cxx.
48 {
55
57}
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
◆ get_mean() [2/2]
| double L1CaloPedestalCumul::get_mean |
( |
const unsigned | isample | ) |
const |
◆ get_min()
| const short & L1CaloPedestalCumul::get_min |
( |
| ) |
const |
|
inline |
◆ get_nentries()
| int L1CaloPedestalCumul::get_nentries |
( |
| ) |
const |
|
inline |
◆ get_nsamples()
| unsigned L1CaloPedestalCumul::get_nsamples |
( |
| ) |
const |
|
inline |
◆ get_rms() [1/2]
| double L1CaloPedestalCumul::get_rms |
( |
| ) |
const |
◆ get_rms() [2/2]
| double L1CaloPedestalCumul::get_rms |
( |
const unsigned | isample | ) |
const |
Definition at line 59 of file L1CaloPedestalCumul.cxx.
59 {
61 if (isample>=
m_sum.size())
62 return 0;
66
68 for(
unsigned i=0;
i<isample;
i++)
69 k += nsamples - i;
71
74
76
78}
◆ get_sum() [1/2]
| double L1CaloPedestalCumul::get_sum |
( |
| ) |
const |
◆ get_sum() [2/2]
| double L1CaloPedestalCumul::get_sum |
( |
const unsigned | isample | ) |
const |
◆ set_max()
| void L1CaloPedestalCumul::set_max |
( |
const short | max | ) |
|
|
inline |
◆ set_min()
| void L1CaloPedestalCumul::set_min |
( |
const short | min | ) |
|
|
inline |
◆ m_matrix
| std::vector<double> L1CaloPedestalCumul::m_matrix |
|
private |
◆ m_max
| short L1CaloPedestalCumul::m_max |
|
private |
◆ m_min
| short L1CaloPedestalCumul::m_min |
|
private |
◆ m_nped
| int L1CaloPedestalCumul::m_nped |
|
private |
◆ m_sum
| std::vector<double> L1CaloPedestalCumul::m_sum |
|
private |
The documentation for this class was generated from the following files: