CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TEcnaResultType Class Reference

#include <TEcnaResultType.h>

Inheritance diagram for TEcnaResultType:

Public Member Functions

CnaResultTyp GetTypOfEntry (Int_t)
 
void SetSizeHis (Int_t, Int_t)
 
void SetSizeMat (Int_t, Int_t)
 
 TEcnaResultType ()
 
 TEcnaResultType (TEcnaObject *)
 
 ~TEcnaResultType () override
 

Public Attributes

Int_t fIthElement
 
TEcnaNArrayD fMatHis
 
TEcnaNArrayD fMatMat
 
CnaResultTyp fTypOfCnaResult
 
Int_t fUserChannel
 

Detailed Description

Definition at line 34 of file TEcnaResultType.h.

Constructor & Destructor Documentation

TEcnaResultType::TEcnaResultType ( )

Definition at line 22 of file TEcnaResultType.cc.

References fMatHis, fMatMat, and TEcnaNArrayD::ReSet().

23 {
24 
25  // std::cout << "[Info Management] CLASS: TEcnaResultType. CREATE OBJECT: this = " << this << std::endl;
26 
27  fMatMat.ReSet(1,1);
28  fMatHis.ReSet(1,1);
29 }
TEcnaNArrayD fMatMat
TEcnaNArrayD fMatHis
void ReSet(Int_t)
TEcnaResultType::TEcnaResultType ( TEcnaObject pObjectManager)

Definition at line 31 of file TEcnaResultType.cc.

References fMatHis, fMatMat, TEcnaObject::RegisterPointer(), and TEcnaNArrayD::ReSet().

32 {
33 
34  // std::cout << "[Info Management] CLASS: TEcnaResultType. CREATE OBJECT: this = " << this << std::endl;
35 
36  Long_t i_this = (Long_t)this;
37  pObjectManager->RegisterPointer("TEcnaResultType", i_this);
38 
39  fMatMat.ReSet(1,1);
40  fMatHis.ReSet(1,1);
41 }
TEcnaNArrayD fMatMat
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:105
TEcnaNArrayD fMatHis
void ReSet(Int_t)
TEcnaResultType::~TEcnaResultType ( )
override

Definition at line 73 of file TEcnaResultType.cc.

73  {
74 //destructor
75 
76  // std::cout << "[Info Management] CLASS: TEcnaResultType. DESTROY OBJECT: this = " << this << std::endl;
77 }

Member Function Documentation

CnaResultTyp TEcnaResultType::GetTypOfEntry ( Int_t  kEntry)

Definition at line 95 of file TEcnaResultType.cc.

References cTypAdcEvt, cTypAvHfn, cTypAvLfn, cTypAvMeanCorss, cTypAvPed, cTypAvSigCorss, cTypAvTno, cTypCorCss, cTypCovCss, cTypEvtNbInLoop, cTypHFccMoStins, cTypHfCor, cTypHfCov, cTypHfn, cTypLFccMoStins, cTypLfCor, cTypLfCov, cTypLfn, cTypMeanCorss, cTypMSp, cTypNbOfEvts, cTypNumbers, cTypPed, cTypSigCorss, cTypSSp, and cTypTno.

96 {
97 //Gives the type of the kth entry
98 
99 //.......... List of the different types and associated parameters:
100 //
101 // Nb of Type of array Type Type
102 // arrays Number
103 //
104 // 1 fMatHis(1,tower) ( 0) cTypNumbers
105 // 1 fMatHis(channel, sample) ( 1) cTypMSp
106 // 1 fMatHis(channel, sample) ( 2) cTypSSp
107 // channel fMatHis(sample, bins) ( 3) cTypAvTno,
108 // 1 fMatHis(channel, sample) ( 4) cTypAvLfn
109 // 1 fMatHis(channel, sample) ( 5) cTypAvHfn
110 // sample fMatMat(channel, channel) ( 6) cTypHfCov
111 // sample fMatMat(channel, channel) ( 7) cTypHfCor
112 // channel fMatMat(sample, sample) ( 8) cTypCovCss
113 // channel fMatMat(sample, sample) ( 9) cTypCorCss
114 // 1 fMatHis(1,channel) (10) cTypMeanCorss
115 // 1 fMatHis(1,channel) (11) cTypSigCorss
116 // 1 fMatHis(channel, sample) (12) cTypAvPed
117 // channel fMatMat(sample, sample) (13) cTypAvMeanCorss
118 // channel fMatMat(sample, sample) (14) cTypAvSigCorss
119 // 1 fMatHis(channel, sample) (15) cTypNbOfEvts
120 // 1 fMatHis(1,channel) (16) cTypPed
121 // 1 fMatHis(1,channel) (17) cTypTno
122 // 1 fMatHis(1,channel) (18) cTypLfn
123 // 1 fMatHis(1,channel) (19) cTypHfn
124 // channel fMatHis(sample, bins) (20) cTypAdcEvt
125 // 1 fMatMat(channel, channel) (21) cTypLfCov
126 // 1 fMatMat(channel, channel) (22) cTypLfCor
127 // 1 fMatMat(channel, channel) (23) cTypLFccMoStins
128 // 1 fMatMat(channel, channel) (24) cTypHFccMoStins
129 // 1 fMatMat(tower, bin_evt) (25) cTypEvtNbInLoop
130 
131  CnaResultTyp xResultType = cTypNumbers; // (default)
132 
133  if( kEntry == 0 ){xResultType = cTypNumbers;}
134  if( kEntry == 1 ){xResultType = cTypMSp;}
135  if( kEntry == 2 ){xResultType = cTypSSp;}
136 
137  if( kEntry == 3 ){xResultType = cTypAvTno;}
138  if( kEntry == 4 ){xResultType = cTypAvLfn;}
139  if( kEntry == 5 ){xResultType = cTypAvHfn;}
140 
141  if( kEntry == 6 ){xResultType = cTypHfCov;}
142  if( kEntry == 7 ){xResultType = cTypHfCor;}
143 
144  if( kEntry == 8 ){xResultType = cTypCovCss;}
145  if( kEntry == 9 ){xResultType = cTypCorCss;}
146 
147  if( kEntry == 10 ){xResultType = cTypMeanCorss;}
148  if( kEntry == 11 ){xResultType = cTypSigCorss;}
149 
150  if( kEntry == 12 ){xResultType = cTypAvPed;}
151  if( kEntry == 13 ){xResultType = cTypAvMeanCorss;}
152  if( kEntry == 14 ){xResultType = cTypAvSigCorss;}
153 
154  if( kEntry == 15 ){xResultType = cTypNbOfEvts;}
155 
156  if( kEntry == 16 ){xResultType = cTypPed;}
157  if( kEntry == 17 ){xResultType = cTypTno;}
158  if( kEntry == 18 ){xResultType = cTypLfn;}
159  if( kEntry == 19 ){xResultType = cTypHfn;}
160 
161  if( kEntry == 20 ){xResultType = cTypAdcEvt;}
162 
163  if( kEntry == 21 ){xResultType = cTypLfCov;}
164  if( kEntry == 22 ){xResultType = cTypLfCor;}
165 
166  if( kEntry == 23 ){xResultType = cTypLFccMoStins;}
167  if( kEntry == 24 ){xResultType = cTypHFccMoStins;}
168 
169  if( kEntry == 25 ){xResultType = cTypEvtNbInLoop;} // (FREE)
170 
171  return xResultType;
172 }
CnaResultTyp
void TEcnaResultType::SetSizeHis ( Int_t  nrow,
Int_t  ncol 
)

Definition at line 87 of file TEcnaResultType.cc.

References Abs(), fMatHis, and TEcnaNArrayD::ReSet().

Referenced by TEcnaRun::WriteRootFile().

87  {
88 //Set size of fMatHis
89  nrow = TMath::Abs(nrow);
90  ncol = TMath::Abs(ncol);
91  if ((nrow>0) && (ncol>0)) fMatHis.ReSet(nrow,ncol);
92  else fMatHis.ReSet(1,1);
93 }
TEcnaNArrayD fMatHis
T Abs(T a)
Definition: MathUtil.h:49
void ReSet(Int_t)
void TEcnaResultType::SetSizeMat ( Int_t  nrow,
Int_t  ncol 
)

Definition at line 79 of file TEcnaResultType.cc.

References Abs(), fMatMat, and TEcnaNArrayD::ReSet().

Referenced by TEcnaRun::WriteRootFile().

79  {
80 //Set size of fMatMat
81  nrow = TMath::Abs(nrow);
82  ncol = TMath::Abs(ncol);
83  if ((nrow>0) && (ncol>0)) fMatMat.ReSet(nrow,ncol);
84  else fMatMat.ReSet(1,1);
85 }
TEcnaNArrayD fMatMat
T Abs(T a)
Definition: MathUtil.h:49
void ReSet(Int_t)

Member Data Documentation

Int_t TEcnaResultType::fIthElement
TEcnaNArrayD TEcnaResultType::fMatHis
TEcnaNArrayD TEcnaResultType::fMatMat
CnaResultTyp TEcnaResultType::fTypOfCnaResult
Int_t TEcnaResultType::fUserChannel

Definition at line 42 of file TEcnaResultType.h.