QCorrelations Class Reference

List of all members.


Detailed Description

Interface for computing, storing, and writing Correlations in Cuore analysis.

Author:
R. Faccini

Public Member Functions

 QCorrelations (int nvar, string suff="")
 default constructor
void StoreHistos (const QVector &min, const QVector &max)
 store and fill histograms of each pair of variables
void StoreVectors (int nEntries=10000)
 store and fill vectors with allentries used in corrs (heavy!)
int Load (const QVector &data)
 load individual 'events'
double GetCovariance (int i, int j) const
 retrieve the i,j element of the covariance matrix
QMatrix GetCovariance () const
 retrieve the full covariance matrix
double GetCorrelation (int i, int j) const
 retrieve correlations between the i,j variables
TH2D * GetHisto (int i, int j) const
 retrieve the 2D histo
QVector * GetVec (int i) const
 retrieve the individual vectors; pointer is owned by caller
size_t NVars () const

Private Member Functions

int code (int i, int j) const

Private Attributes

size_t fNVars
size_t fNevts
QVector fSums
QVector fSums2
QMatrix fCrossSums
vector< TH2D * > fHistos
vector< QVector * > fVectors
string fSuff

Constructor & Destructor Documentation

Q_BEGIN_NAMESPACE QCorrelations::QCorrelations ( int  nvar,
string  suff = "" 
)

default constructor

Parameters:
nvar number of input variables
suff suffix for histos(needed when multiple instances are created)


Member Function Documentation

void QCorrelations::StoreHistos ( const QVector &  min,
const QVector &  max 
)

store and fill histograms of each pair of variables

Parameters:
mix,max,: minimum and maximum of the variable axes

Referenced by MVibraDataReader::Init().

void QCorrelations::StoreVectors ( int  nEntries = 10000  ) 

store and fill vectors with allentries used in corrs (heavy!)

Parameters:
nEntries expected number of entries (the closer to truth, the faster)

Referenced by MVibraDataReader::Init().

int QCorrelations::Load ( const QVector &  data  ) 

load individual 'events'

Parameters:
data. If not of the same size as correlations returns non null value

Referenced by MVibraDataReader::Do().

TH2D* QCorrelations::GetHisto ( int  i,
int  j 
) const [inline]

retrieve the 2D histo

Parameters:
i,j variables that filled the histo

QVector * QCorrelations::GetVec ( int  i  )  const

retrieve the individual vectors; pointer is owned by caller

Parameters:
i variable that filled the vector


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:05 2010 for CUORE Software by  doxygen 1.5.6