/[PAMELA software]/PamVMC/include/PamVMCDigMgr.h
ViewVC logotype

Diff of /PamVMC/include/PamVMCDigMgr.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pam-rm2, Fri Jun 12 18:39:17 2009 UTC revision 1.6 by pam-rm2, Mon Jul 13 12:27:06 2009 UTC
# Line 22  class PamVMCDigMgr: public TObject { Line 22  class PamVMCDigMgr: public TObject {
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(){
# Line 53  class PamVMCDigMgr: public TObject { Line 47  class PamVMCDigMgr: public TObject {
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){

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23