forked from cms-sw/cmssw
/
TEcnaResultType.h
57 lines (45 loc) · 1.88 KB
/
TEcnaResultType.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef ROOT_TEcnaResultType
#define ROOT_TEcnaResultType
#include "TMath.h"
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaObject.h"
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaNArrayD.h"
///-----------------------------------------------------------
/// TEcnaResultType.h
/// Update: 05/10/2012
/// Authors: FX Gentit, B.Fabbro (bernard.fabbro@cea.fr)
/// DSM/IRFU/SPP CEA-Saclay
/// Copyright: Those valid for CEA sofware
///
/// ECNA web page:
/// http://cms-fabbro.web.cern.ch/cms-fabbro/
/// cna_new/Correlated_Noise_Analysis/ECNA_main_page.htm
///-----------------------------------------------------------
///
/// Set the results types and dimensions
///
enum CnaResultTyp
{cTypNumbers, cTypMSp, cTypSSp,
cTypAvTno, cTypAvLfn, cTypAvHfn,
cTypHfCov, cTypHfCor, cTypCovCss, cTypCorCss,
cTypMeanCorss, cTypSigCorss,
cTypAvPed, cTypAvMeanCorss, cTypAvSigCorss, cTypNbOfEvts,
cTypPed, cTypTno, cTypLfn, cTypHfn,
cTypAdcEvt, cTypLfCov, cTypLfCor,
cTypLFccMoStins, cTypHFccMoStins, cTypEvtNbInLoop}; // cTypEvtNbInLoop -> FREE
class TEcnaResultType : public TObject {
protected:
public:
CnaResultTyp fTypOfCnaResult; //type of info in this class
Int_t fIthElement; //Ith element in the entry of type fTypOfCnaResult
Int_t fUserChannel; //Channel chosen by the user
TEcnaNArrayD fMatMat; //1st matrix, used in case of MatMat
TEcnaNArrayD fMatHis; //2nd matrix, used in case of MatHis
TEcnaResultType();
TEcnaResultType(TEcnaObject*);
~TEcnaResultType() override;
void SetSizeMat(Int_t, Int_t);
void SetSizeHis(Int_t, Int_t);
CnaResultTyp GetTypOfEntry(Int_t);
ClassDefOverride(TEcnaResultType,1) //One leaf of the CNA root file
};
#endif