Changeset 1600 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 11/13/02 17:03:19 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h
r1436 r1600 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class MGeomPMT+; 8 #pragma link C++ class MGeomMirror+; 7 9 #pragma link C++ class MGeomPix+; 8 10 #pragma link C++ class MGeomCam+; -
trunk/MagicSoft/Mars/mgeom/MGeomCamCT1.cc
r1458 r1600 237 237 // 238 238 for (int i=0; i<ring; i++) 239 (*this)[pixnum++].Set(( -ring+i*0.5)*diameter,239 (*this)[pixnum++].Set((ring-i*0.5)*diameter, 240 240 i*kS32*diameter, 241 241 diameter); 242 242 243 243 for (int i=0; i<ring; i++) 244 (*this)[pixnum++].Set(( -ring*0.5+i)*diameter,244 (*this)[pixnum++].Set((ring*0.5-i)*diameter, 245 245 ring*kS32 * diameter, 246 246 diameter); 247 247 248 248 for (int i=0; i<ring; i++) 249 (*this)[pixnum++].Set(-(ring+i)*0.5*diameter, 250 (ring-i)*kS32*diameter, 251 diameter); 252 253 for (int i=0; i<ring; i++) 254 (*this)[pixnum++].Set((0.5*i-ring)*diameter, 255 -i*kS32*diameter, 256 diameter); 257 258 for (int i=0; i<ring; i++) 259 (*this)[pixnum++].Set((i-ring*0.5)*diameter, 260 -ring*kS32 * diameter, 261 diameter); 262 263 for (int i=0; i<ring; i++) 249 264 (*this)[pixnum++].Set((ring+i)*0.5*diameter, 250 (ring-i)*kS32*diameter,251 diameter);252 253 for (int i=0; i<ring; i++)254 (*this)[pixnum++].Set((ring-0.5*i)*diameter,255 -i*kS32*diameter,256 diameter);257 258 for (int i=0; i<ring; i++)259 (*this)[pixnum++].Set((ring*0.5-i)*diameter,260 -ring*kS32 * diameter,261 diameter);262 263 for (int i=0; i<ring; i++)264 (*this)[pixnum++].Set((-ring-i)*0.5*diameter,265 265 (-ring+i)*kS32*diameter, 266 266 diameter); -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r1596 r1600 69 69 } 70 70 71 // -------------------------------------------------------------------------- 72 // 73 // DESCRIPTION MISSING 74 // 71 75 void MGeomMirror::SetMirrorContent(Int_t mir, Float_t focal, Float_t curv_x, 72 76 Float_t curv_y, Float_t lin_x, Float_t lin_y, -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.h
r1596 r1600 9 9 { 10 10 private: 11 12 Int_t fMirrorId; // the Mirror Id 11 Int_t fMirrorId; // the Mirror Id 13 12 14 13 Float_t fFocalDist; // focal distance of that mirror [cm] … … 33 32 // of the spot of a single mirror on the camera plane 34 33 public: 35 36 34 MGeomMirror(Int_t mir=-1, const char *name=NULL, const char *title=NULL); 37 35 38 Int_t 36 Int_t GetMirrorId() const { return fMirrorId; } 39 37 40 void 41 42 43 44 38 void SetMirrorContent(Int_t mir, Float_t focal, Float_t curv_x, 39 Float_t curv_y, Float_t lin_x, Float_t lin_y, 40 Float_t lin_z, Float_t theta, Float_t phi, 41 Float_t x_n, Float_t y_n, Float_t z_n, 42 Float_t dev_x, Float_t dev_y); 45 43 46 44 ClassDef(MGeomMirror, 1) // class containing information about the Cerenkov Photons in a pixel -
trunk/MagicSoft/Mars/mgeom/MGeomPMT.cc
r1596 r1600 30 30 // 31 31 /////////////////////////////////////////////////////////////////////// 32 #include "MGeomPMT.h" 32 33 33 34 #include "MLog.h" 34 35 #include "MLogManip.h" 35 36 #include "MGeomPMT.h"37 36 38 37 ClassImp(MGeomPMT); … … 43 42 // 44 43 MGeomPMT::MGeomPMT(Int_t pmt, const char *name=NULL, const char *title=NULL) 44 : fPMTId(pmt), fWavelength(0), fQE(0) 45 45 { 46 46 fName = name ? name : "MGeomPMT"; 47 47 fTitle = title ? title : "Storage container for a PMT characteristics"; 48 } 49 50 // -------------------------------------------------------------------------- 51 // 52 // DESCRIPTION MISSING 53 // 54 void MGeomPMT::SetPMTContent(Int_t pmt, const TArrayF &wav, const TArrayF &qe) 55 { 56 if (fWavelength.GetSize()!=wav.GetSize() || 57 fQE.GetSize()!=qe.GetSize()) 58 { 59 *fLog << err << dbginf << " fWavelength or fQE do not have "; 60 *fLog << "size of setting arrays" << endl; 61 return; 62 } 48 63 49 64 fPMTId = pmt; 50 fWavelength->Set(0);51 fQE->Set(0);52 65 53 } 54 55 void MGeomPMT::SetPMTContent(Int_t pmt, TArrayF *wav, TArrayF *qe) 56 { 57 fPMTId = pmt; 58 59 if(fWavelength->GetSize()==wav->GetSize() && 60 fQE->GetSize()==qe->GetSize()){ 61 wav->Copy(*fWavelength); 62 qe->Copy(*fQE); 63 } 64 else 65 *fLog<<err << "MGeomPMT::SetPMTContent fWavelength " 66 <<"and fQE do not have " 67 <<"size of setting arrays"<<endl; 68 66 fWavelength = wav; 67 fQE = qe; 69 68 } 70 69 -
trunk/MagicSoft/Mars/mgeom/MGeomPMT.h
r1596 r1600 12 12 { 13 13 private: 14 Int_t fPMTId; // the PMT Id 14 15 15 Int_t fPMTId; // the PMT Id 16 17 TArrayF *fWavelength; // List of wavelength 18 TArrayF *fQE; // QE values 16 TArrayF fWavelength; // List of wavelength 17 TArrayF fQE; // QE values 19 18 20 19 public: … … 24 23 Int_t GetPMTId() const { return fPMTId; } 25 24 26 void SetArray s(Int_t dim) {fWavelength->Set(dim);fQE->Set(dim);}25 void SetArraySize(Int_t dim) { fWavelength.Set(dim); fQE.Set(dim); } 27 26 28 void SetPMTContent(Int_t pmt, TArrayF *wav, TArrayF *qe);27 void SetPMTContent(Int_t pmt, const TArrayF &wav, const TArrayF &qe); 29 28 30 29 ClassDef(MGeomPMT, 1) // class containing information about PMTs
Note:
See TracChangeset
for help on using the changeset viewer.