| 31 |
|
|
| 32 |
|
|
| 33 |
protected: |
protected: |
| 34 |
PamVMCDigMgr(){ |
PamVMCDigMgr(UInt_t seed){ |
| 35 |
//detectors should be ordered.. First calibrations |
//detectors should be ordered.. First calibrations |
| 36 |
SetDIG("Tof", new PamVMCTofDig()); |
SetDIG("Tof", new PamVMCTofDig(seed)); |
| 37 |
SetDIG("AC", new PamVMCAcDig()); |
SetDIG("AC", new PamVMCAcDig(seed)); |
| 38 |
SetDIG("CAST",new PamVMCCaloDig()); |
SetDIG("CAST",new PamVMCCaloDig(seed)); |
| 39 |
SetDIG("TSPA", new PamVMCTrkDig()); |
SetDIG("TSPA", new PamVMCTrkDig(seed)); |
| 40 |
SetDIG("S4",new PamVMCS4Dig()); |
SetDIG("S4",new PamVMCS4Dig(seed)); |
| 41 |
SetDIG("NDTI",new PamVMCNDDig()); |
SetDIG("NDTI",new PamVMCNDDig(seed)); |
| 42 |
// SetDIG("RunHeader", new PamVMCDigRunHeader()); |
// SetDIG("RunHeader", new PamVMCDigRunHeader()); |
| 43 |
// SetDIG("RunTrailer", new PamVMCDigRunTrailer()); |
// SetDIG("RunTrailer", new PamVMCDigRunTrailer()); |
| 44 |
} |
} |
| 47 |
|
|
| 48 |
~PamVMCDigMgr(){ fdigmap.DeleteAll(); } |
~PamVMCDigMgr(){ fdigmap.DeleteAll(); } |
| 49 |
|
|
| 50 |
static PamVMCDigMgr * Instance(); |
static PamVMCDigMgr * Instance(UInt_t seed = 567); |
| 51 |
|
|
| 52 |
PamVMCDigitizer * GetDIG(const char *name){ |
PamVMCDigitizer * GetDIG(const char *name){ |
| 53 |
return (PamVMCDigitizer*)fdigmap(name); |
return (PamVMCDigitizer*)fdigmap(name); |