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/include-Classes/MMcFormat/MMcConfigRunHeader.cc

    r1597 r1600  
    3535//
    3636////////////////////////////////////////////////////////////////////////////
    37 
    38 #ifndef MARS_MMcConfigRunHeader
    3937#include "MMcConfigRunHeader.h"
    40 #endif
    4138
    4239#include <fstream.h>
    4340#include <iomanip.h>
    4441
     42#include <TArrayF.h>
     43
    4544#include "MLog.h"
    4645#include "MLogManip.h"
     46
    4747ClassImp(MMcConfigRunHeader);
    4848
     
    5353//
    5454MMcConfigRunHeader::MMcConfigRunHeader(const char *name, const char *title)
     55    : fNumMirrors(0), fNumPMTs(0), fIncidentTheta(181), fLightGuidesFactor(181)
    5556{
    5657    fName  = name  ? name  : "MMcConfigRunHeader";
    5758    fTitle = title ? title : "Mc Configuration Information";
    5859
    59     fNumMirrors=0;
    60     fNumPMTs=0;
    61 
    62     fRadiusMirror=-10.0;
    63     fFocalDist=-10.0;
    64     fFocalStdev=-10.0;
    65     fPointSpread=-10.0;
    66     fPointStdev=-10.0;
    67     fDevAdjust=-10.0;
    68     fBlackSpot=-10.0;
    69     fCameraWidth=-10.0;
    70 
    71     fIncidentTheta->Set(181);
    72     fLightGuidesFactor->Set(181);
     60    fRadiusMirror=-1;
     61    fFocalDist   =-1;
     62    fFocalStdev  =-1;
     63    fPointSpread =-1;
     64    fPointStdev  =-1;
     65    fDevAdjust   =-1;
     66    fBlackSpot   =-1;
     67    fCameraWidth =-1;
    7368
    7469    fMirrors = new TClonesArray("MGeomMirror", 0);
     
    7772}
    7873
    79 // -------------------------------------------------------------------------
     74// --------------------------------------------------------------------------
    8075//
    81 // SetMagicDef
     76// DESCRIPTION MISSING
    8277//
    8378void MMcConfigRunHeader::SetMagicDef(const Float_t  radius,
     
    10196}
    10297
    103 void  MMcConfigRunHeader::SetLightGuides(TArrayF *theta, TArrayF *factor){
    104  
    105   if(fIncidentTheta->GetSize()==theta->GetSize() &&
    106      fLightGuidesFactor->GetSize()==factor->GetSize()){
    107     theta->Copy(*fIncidentTheta);
    108     factor->Copy(*fLightGuidesFactor);
    109   }
    110   else
    111     *fLog<<err << "MMcConfigRunHeader::SetLightGuides: fIncidentTheta "
    112         <<"and fLightGuidesFactor do not have "
    113         <<"size of setting arrays"<<endl;
     98// --------------------------------------------------------------------------
     99//
     100// DESCRIPTION MISSING
     101//
     102void  MMcConfigRunHeader::SetLightGuides(const TArrayF &theta, const TArrayF &factor)
     103{
     104    if (fIncidentTheta.GetSize()    !=theta.GetSize() ||
     105        fLightGuidesFactor.GetSize()!=factor.GetSize())
     106    {
     107        *fLog<< err << dbginf << "fIncidentTheta or fLightGuidesFactor ";
     108        *fLog << "do not have size of setting arrays" << endl;
     109        return;
     110    }
    114111
     112    fIncidentTheta = theta;
     113    fLightGuidesFactor = factor;
    115114}
    116 
    117 
    118 
Note: See TracChangeset for help on using the changeset viewer.