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

Diff of /PamVMC/include/PamVMCDetector.h

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

revision 1.1 by nikolas, Thu Feb 19 16:50:36 2009 UTC revision 1.5 by pam-rm2, Fri Jun 12 18:39:17 2009 UTC
# Line 53  class PamVMCDetector  : public TObject { Line 53  class PamVMCDetector  : public TObject {
53    virtual void ConstructGeometry(){    virtual void ConstructGeometry(){
54            
55      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();
56      TObject *o; while( o=(TObject *) n->Next()) {      TObject *o; while( (o=(TObject *) n->Next())) {
57        ((PamVMCDetector*)fsubdet.GetValue(o))->ConstructGeometry();        ((PamVMCDetector*)fsubdet.GetValue(o))->ConstructGeometry();
58      }      }
59            
# Line 73  class PamVMCDetector  : public TObject { Line 73  class PamVMCDetector  : public TObject {
73    virtual void ConstructCuts(){    virtual void ConstructCuts(){
74    
75      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();
76      TObject *o; while( o=(TObject *) n->Next()) {      TObject *o; while( (o=(TObject *) n->Next())) {
77        ((PamVMCDetector*)fsubdet.GetValue(o))->ConstructCuts();        ((PamVMCDetector*)fsubdet.GetValue(o))->ConstructCuts();
78      }      }
79    
# Line 84  class PamVMCDetector  : public TObject { Line 84  class PamVMCDetector  : public TObject {
84    virtual void InitGeometry(){    virtual void InitGeometry(){
85    
86      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();
87      TObject *o; while( o=(TObject *) n->Next()) {      TObject *o; while( (o=(TObject *) n->Next())) {
88        ((PamVMCDetector*)fsubdet.GetValue(o))->InitGeometry();        ((PamVMCDetector*)fsubdet.GetValue(o))->InitGeometry();
89      }      }
90    
# Line 97  class PamVMCDetector  : public TObject { Line 97  class PamVMCDetector  : public TObject {
97    virtual void InitMC(){    virtual void InitMC(){
98    
99     TMapIter *n= (TMapIter *)fsubdet.MakeIterator();     TMapIter *n= (TMapIter *)fsubdet.MakeIterator();
100     TObject *o; while( o=(TObject *) n->Next()) {     TObject *o; while( (o=(TObject *) n->Next())) {
101     ((PamVMCDetector*)fsubdet.GetValue(o))->InitMC();     ((PamVMCDetector*)fsubdet.GetValue(o))->InitMC();
102        }        }
103    };    };
# Line 110  class PamVMCDetector  : public TObject { Line 110  class PamVMCDetector  : public TObject {
110    void AddMotherProp() {        void AddMotherProp() {    
111      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();      TMapIter *n= (TMapIter *)fsubdet.MakeIterator();
112      TObject *o=0;      TObject *o=0;
113      while( o=(TObject *) n->Next()) {      while( (o=(TObject *) n->Next())) {
114        AddMotherProp( ((PamVMCDetector*)(fsubdet.GetValue(o)))->GetMotherProp() );        AddMotherProp( ((PamVMCDetector*)(fsubdet.GetValue(o)))->GetMotherProp() );
115      }      }
116    }    }
# Line 154  class PamVMCDetector  : public TObject { Line 154  class PamVMCDetector  : public TObject {
154            
155      std::cout<<"DETECTOR "<<fdname<<label << std::endl;      std::cout<<"DETECTOR "<<fdname<<label << std::endl;
156      TMapIter *n= (TMapIter *)tm->MakeIterator();      TMapIter *n= (TMapIter *)tm->MakeIterator();
157      TObject *o; while( o=(TObject *) n->Next()) {      TObject *o; while( (o=(TObject *) n->Next())) {
158        ((PamVMCDetectorSD *)tm->GetValue(o))->Print();        ((PamVMCDetectorSD *)tm->GetValue(o))->Print();
159      }      }
160    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.23