--- PamVMC/include/PamVMCDigMgr.h 2009/06/12 18:39:17 1.5 +++ PamVMC/include/PamVMCDigMgr.h 2009/07/13 12:27:06 1.6 @@ -22,13 +22,7 @@ static PamVMCDigMgr * fdig; TMap fdigmap; - /* 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(); - } - + protected: PamVMCDigMgr(){ @@ -53,6 +47,15 @@ return (PamVMCDigitizer*)fdigmap(name); } + /* This method calls from manager and from external digitizer. It is owner of all + digitizer objects */ + void SetDIG(const char *name, PamVMCDigitizer *detDIG){ + fdigmap.Add(new TObjString(name),detDIG); + fdigmap.Print(); + } + /* This method needs only for external digitizer, kill all default digitizers */ + void Reset() { fdigmap.Delete(); } + /* Setting pointer to random objects for all Digitizers */ /* All digitizers load calibrations and calibrate */ void Initialize(TRandom* random){