#include <CalibrationSmearer.h>
Public Member Functions | |
| CalibrationSmearer (Int_t size=1001, TRandom *generator=0) | |
| ~CalibrationSmearer () | |
| Float_t | GetGausSmear (Int_t key) const |
| const Float_t * | GetGausSmears (Int_t key, Int_t n) const |
Private Member Functions | |
| ClassDef (CalibrationSmearer, 0) | |
Private Attributes | |
| Int_t | fN |
| Float_t * | fValues |
|
||||||||||||
|
Definition at line 5 of file CalibrationSmearer.cxx. 00005 : 00006 fN(size), 00007 fValues(0) 00008 { 00009 TRandom* rand = generator; 00010 if(!rand) rand = gRandom; 00011 00012 fValues = new Float_t[size]; 00013 for(int i=0;i<size;i++) { 00014 fValues[i] = rand->Gaus(1.0); 00015 } 00016 00017 }
|
|
|
Definition at line 19 of file CalibrationSmearer.cxx. 00020 {
00021 if(fValues) delete [] fValues;
00022 }
|
|
||||||||||||
|
|
|
|
Definition at line 27 of file CalibrationSmearer.cxx. References fValues. 00028 {
00029 return fValues[key%fN];
00030 }
|
|
||||||||||||
|
Definition at line 33 of file CalibrationSmearer.cxx.
|
|
|
Definition at line 47 of file CalibrationSmearer.h. Referenced by GetGausSmears(). |
|
|
Definition at line 48 of file CalibrationSmearer.h. Referenced by GetGausSmear(), and GetGausSmears(). |
1.3.9.1