Changeset 2595 for trunk/MagicSoft
- Timestamp:
- 12/02/03 16:41:06 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2594 r2595 4 4 5 5 -*-*- END OF LINE -*-*- 6 2003/12/02: Abelardo Moralejo 7 8 * mimage/MStereoCalc.[h,cc] 9 - changed names of variables (removed underscores). Use new 10 function MTask::AddSerialNumber (see below). 11 6 12 2003/12/02: Thomas Bretz 7 13 … … 20 26 21 27 * mbase/MTask.h: 22 - added static member functions Add DerialNumber to simplify28 - added static member functions AddSerialNumber to simplify 23 29 using different Serial numbers. 24 30 -
trunk/MagicSoft/Mars/mimage/MStereoCalc.cc
r2567 r2595 75 75 { 76 76 // necessary 77 TString mcname = "MMcEvt;";78 mcname += fCT1_id;79 77 80 fmcevt1 = (MMcEvt*)pList->FindObject( mcname);78 fmcevt1 = (MMcEvt*)pList->FindObject(AddSerialNumber("MMcEvt",fCT1id)); 81 79 if (!fmcevt1) 82 80 { 83 *fLog << err << mcname<< " not found... aborting." << endl;81 *fLog << err << "MMcEvt;" << fCT1id << " not found... aborting." << endl; 84 82 return kFALSE; 85 83 } 86 84 87 85 // necessary 88 mcname = "MMcEvt;"; 89 mcname += fCT2_id; 90 91 fmcevt2 = (MMcEvt*)pList->FindObject(mcname); 86 fmcevt1 = (MMcEvt*)pList->FindObject(AddSerialNumber("MMcEvt",fCT2id)); 92 87 if (!fmcevt2) 93 88 { 94 *fLog << err << mcname<< " not found... aborting." << endl;89 *fLog << err << "MMcEvt;" << fCT2id << " not found... aborting." << endl; 95 90 return kFALSE; 96 91 } … … 98 93 // necessary 99 94 TString geomname = "MGeomCam;"; 100 geomname += fCT1 _id;95 geomname += fCT1id; 101 96 fGeomCam1 = (MGeomCam*)pList->FindObject(geomname); 102 97 if (!fGeomCam1) … … 108 103 // necessary 109 104 geomname = "MGeomCam;"; 110 geomname += fCT2 _id;105 geomname += fCT2id; 111 106 fGeomCam2 = (MGeomCam*)pList->FindObject(geomname); 112 107 if (!fGeomCam2) … … 118 113 // necessary 119 114 TString hillasname = "MHillas;"; 120 hillasname += fCT1 _id;115 hillasname += fCT1id; 121 116 fHillas1 = (MHillas*)pList->FindObject(hillasname); 122 117 if (!fHillas1) … … 128 123 // necessary 129 124 hillasname = "MHillas;"; 130 hillasname += fCT2 _id;125 hillasname += fCT2id; 131 126 fHillas2 = (MHillas*)pList->FindObject(hillasname); 132 127 if (!fHillas2) … … 153 148 Int_t MStereoCalc::Process() 154 149 { 155 fStereoPar->Calc(*fHillas1, *fmcevt1, *fGeomCam1, fCT1 _x, fCT1_y, *fHillas2, *fmcevt2, *fGeomCam2, fCT2_x, fCT2_y);150 fStereoPar->Calc(*fHillas1, *fmcevt1, *fGeomCam1, fCT1x, fCT1y, *fHillas2, *fmcevt2, *fGeomCam2, fCT2x, fCT2y); 156 151 157 152 return kTRUE; -
trunk/MagicSoft/Mars/mimage/MStereoCalc.h
r2567 r2595 32 32 const MMcEvt *fmcevt2; //! input 33 33 34 Int_t fCT1 _id; //!35 Int_t fCT2 _id; //! Identifiers of the two analyzed telescopes.34 Int_t fCT1id; //! 35 Int_t fCT2id; //! Identifiers of the two analyzed telescopes. 36 36 37 Float_t fCT1 _x; //!38 Float_t fCT1 _y; //! Position of first telescope39 Float_t fCT2 _x; //!40 Float_t fCT2 _y; //! Position of second telescope37 Float_t fCT1x; //! 38 Float_t fCT1y; //! Position of first telescope 39 Float_t fCT2x; //! 40 Float_t fCT2y; //! Position of second telescope 41 41 42 42 MStereoPar *fStereoPar; //! output container to store result … … 54 54 void SetNameStereoPar(const char *name) { fStereoParName = name; } 55 55 56 void SetCTids(Int_t i, Int_t j) { fCT1 _id = i; fCT2_id = j; }57 void SetCT1coor(Float_t x, Float_t y) { fCT1 _x = x; fCT1_y = y; } // in m58 void SetCT2coor(Float_t x, Float_t y) { fCT2 _x = x; fCT2_y = y; } // in m56 void SetCTids(Int_t i, Int_t j) { fCT1id = i; fCT2id = j; } 57 void SetCT1coor(Float_t x, Float_t y) { fCT1x = x; fCT1y = y; } // in m 58 void SetCT2coor(Float_t x, Float_t y) { fCT2x = x; fCT2y = y; } // in m 59 59 60 60 ClassDef(MStereoCalc, 0) // Task to calculate some shower parameters in stereo mode
Note:
See TracChangeset
for help on using the changeset viewer.