Ignore:
Timestamp:
11/13/02 17:03:19 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomPMT.cc

    r1596 r1600  
    3030//
    3131///////////////////////////////////////////////////////////////////////
     32#include "MGeomPMT.h"
    3233
    3334#include "MLog.h"
    3435#include "MLogManip.h"
    35 
    36 #include "MGeomPMT.h"
    3736
    3837ClassImp(MGeomPMT);
     
    4342//
    4443MGeomPMT::MGeomPMT(Int_t pmt, const char *name=NULL, const char *title=NULL)
     44    : fPMTId(pmt), fWavelength(0), fQE(0)
    4545{
    4646    fName  = name  ? name  : "MGeomPMT";
    4747    fTitle = title ? title : "Storage container for  a PMT characteristics";
     48}
     49
     50// --------------------------------------------------------------------------
     51//
     52// DESCRIPTION MISSING
     53//
     54void 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    }
    4863
    4964    fPMTId = pmt;
    50     fWavelength->Set(0);
    51     fQE->Set(0);
    5265
    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;
    6968}
    7069
Note: See TracChangeset for help on using the changeset viewer.