22 |
static PamVMCDigMgr * fdig; |
static PamVMCDigMgr * fdig; |
23 |
TMap fdigmap; |
TMap fdigmap; |
24 |
|
|
25 |
/* This method calls only from manager. It is owner of all |
|
|
digitizer objects */ |
|
|
void SetDIG(const char *name, PamVMCDigitizer *detDIG){ |
|
|
fdigmap.Add(new TObjString(name),detDIG); |
|
|
fdigmap.Print(); |
|
|
} |
|
|
|
|
26 |
|
|
27 |
protected: |
protected: |
28 |
PamVMCDigMgr(){ |
PamVMCDigMgr(){ |
47 |
return (PamVMCDigitizer*)fdigmap(name); |
return (PamVMCDigitizer*)fdigmap(name); |
48 |
} |
} |
49 |
|
|
50 |
|
/* This method calls from manager and from external digitizer. It is owner of all |
51 |
|
digitizer objects */ |
52 |
|
void SetDIG(const char *name, PamVMCDigitizer *detDIG){ |
53 |
|
fdigmap.Add(new TObjString(name),detDIG); |
54 |
|
fdigmap.Print(); |
55 |
|
} |
56 |
|
/* This method needs only for external digitizer, kill all default digitizers */ |
57 |
|
void Reset() { fdigmap.Delete(); } |
58 |
|
|
59 |
/* Setting pointer to random objects for all Digitizers */ |
/* Setting pointer to random objects for all Digitizers */ |
60 |
/* All digitizers load calibrations and calibrate */ |
/* All digitizers load calibrations and calibrate */ |
61 |
void Initialize(TRandom* random){ |
void Initialize(TRandom* random){ |