#include <LArAutoCorr.h>
◆ LArAutoCorr() [1/2]
| LArAutoCorr::LArAutoCorr |
( |
| ) |
|
|
inline |
◆ ~LArAutoCorr() [1/2]
| LArAutoCorr::~LArAutoCorr |
( |
| ) |
|
|
inline |
◆ LArAutoCorr() [2/2]
| LArAutoCorr::LArAutoCorr |
( |
| ) |
|
|
inline |
◆ ~LArAutoCorr() [2/2]
| LArAutoCorr::~LArAutoCorr |
( |
| ) |
|
|
inline |
◆ add() [1/2]
| void LArAutoCorr::add |
( |
const std::vector< short > & | samples, |
|
|
size_t | maxnsamples ) |
Definition at line 222 of file LArCalibUtils/LArCalibUtils/LArAutoCorr.h.
224{
225 unsigned int nsamples = std::min(samples.size(),maxnsamples);
227
228 if(
m_sum.size()<nsamples)
229 {
230
231 m_cov.resize(nsamples - 1);
233 m_sum.resize(nsamples);
234 m_matrix.resize((nsamples*(nsamples+1))/2);
235 }
236
238 {
239 for(
unsigned int j=i; j<
nsamples; j++,
k++)
240 m_matrix[k] += ((
double)(samples[j]*samples[i]));
241
243 }
245}
std::vector< double > m_sum
std::vector< double > m_cov_temp
std::vector< double > m_cov
std::vector< double > m_matrix
◆ add() [2/2]
| void LArAutoCorr::add |
( |
const std::vector< short > & | samples, |
|
|
size_t | maxnsamples ) |
◆ correl_zero() [1/2]
| void LArAutoCorr::correl_zero |
( |
| ) |
|
◆ correl_zero() [2/2]
| void LArAutoCorr::correl_zero |
( |
| ) |
|
◆ get_cov() [1/2]
| const std::vector< double > & LArAutoCorr::get_cov |
( |
int | m_normalize, |
|
|
int | m_phys ) |
Definition at line 149 of file LArCalibUtils/LArCalibUtils/LArAutoCorr.h.
151{
158 }
159
160
161 if (m_normalize == 1 && m_phys == 0 ){
163 int si,sj;
164 si=0;
166 sj=si;
171 }
173 }
174 }
175
176
177 if (m_phys==0) {
180 for(
int diag =1;diag<
nsamples;diag++)
181 {
185 {
188 }
191 }
193 }
194 else
196}
◆ get_cov() [2/2]
| const std::vector< double > & LArAutoCorr::get_cov |
( |
int | normalize, |
|
|
int | phys ) |
◆ get_max() [1/2]
| const short & LArAutoCorr::get_max |
( |
| ) |
const |
◆ get_max() [2/2]
| const short & LArAutoCorr::get_max |
( |
| ) |
const |
◆ get_mean() [1/2]
| double LArAutoCorr::get_mean |
( |
| ) |
const |
Definition at line 134 of file LArCalibUtils/LArCalibUtils/LArAutoCorr.h.
136{
138
143
145}
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 LArAutoCorr::get_mean |
( |
| ) |
const |
◆ get_min() [1/2]
| const short & LArAutoCorr::get_min |
( |
| ) |
const |
◆ get_min() [2/2]
| const short & LArAutoCorr::get_min |
( |
| ) |
const |
◆ get_nentries() [1/2]
| int LArAutoCorr::get_nentries |
( |
| ) |
const |
◆ get_nentries() [2/2]
| int LArAutoCorr::get_nentries |
( |
| ) |
const |
◆ get_rms() [1/2]
| double LArAutoCorr::get_rms |
( |
| ) |
const |
◆ get_rms() [2/2]
| double LArAutoCorr::get_rms |
( |
| ) |
const |
◆ set_max() [1/2]
| void LArAutoCorr::set_max |
( |
const short | max | ) |
|
◆ set_max() [2/2]
| void LArAutoCorr::set_max |
( |
const short | max | ) |
|
◆ set_min() [1/2]
| void LArAutoCorr::set_min |
( |
const short | min | ) |
|
◆ set_min() [2/2]
| void LArAutoCorr::set_min |
( |
const short | min | ) |
|
◆ m_cov
| std::vector< double > LArAutoCorr::m_cov |
|
private |
◆ m_cov_temp
| std::vector< double > LArAutoCorr::m_cov_temp |
|
private |
◆ m_matrix
| std::vector< double > LArAutoCorr::m_matrix |
|
private |
◆ m_max
◆ m_min
◆ m_nped
◆ m_sum
| std::vector< double > LArAutoCorr::m_sum |
|
private |
The documentation for this class was generated from the following files: