Changeset 1600 for trunk/MagicSoft/Mars/mgeom/MGeomPMT.cc
- Timestamp:
- 11/13/02 17:03:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.