Changeset 5340 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/04/04 21:52:46 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5339 r5340  
    2525     - Added member fMirrorFraction to keep the active fraction of the
    2626       mirror dish set in the camera simulation. Added Getter & Setter.
     27       Added some comments. Update class version to 4.
     28
     29   * mmc/MMcRunHeader.[hxx,cxx]
     30     - Removed member fTelesTheta, fTelesPhi. They make no sense since
     31       telescope orientation can change from event to event in MC too.
     32       Added getter and setter for fShowerThetaMin and fShowerThetaMax.
     33
     34   * mmontecarlo/MMcCollectionAreaCalc.[h,cc]
     35     - Changed consistency check on MMcRunHeader.fTelesTheta to check
     36       on fShowerThetaMin and fShowerThetaMax
     37
     38   * mfileio/MReadMarsFile.cc
     39     - Removed obsolete check of old MC files, which needed the removed
     40       data member MMcRunHeader.fTelesTheta.
    2741
    2842 2004/11/04: Nepomuk Otte
  • trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc

    r5160 r5340  
    208208    if (mcheader)
    209209    {
    210         if (mcheader->GetReflVersion()<=40 && mcheader->GetTelesTheta()>15)
    211         {
    212             *fLog << warn << "Warning - You may use Monte Carlo data produced with a version" << endl;
    213             *fLog << "of the reflector program < 0.4 and a zenith angle > 15," << endl;
    214             *fLog << "in this case you may get less photons than you would expect." << endl;
    215         }
    216210        if (mcheader->GetCamVersion()==50)
    217211        {
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r5073 r5340  
    6767    fAllEvtsTriggered         =  kFALSE;
    6868    fTotalNumSimulatedShowers =  0;
    69     fTheta                    = -1.;
     69    fThetaMin                 = -1.;
     70    fThetaMax                 = -1.;
    7071
    7172}
     
    100101
    101102
    102     if (fTheta>=0 && fTheta!=runheader->GetTelesTheta())
    103     {
    104         *fLog << warn << "Warning - Read files have different TelesTheta (";
    105         *fLog << fTheta << ", " << runheader->GetTelesTheta() << ")..." << endl;
    106     }
    107     fTheta = runheader->GetTelesTheta();
     103    if ( (fThetaMin >= 0 && fThetaMin != runheader->GetShowerThetaMin()) ||
     104         (fThetaMax >= 0 && fThetaMax != runheader->GetShowerThetaMax()) )
     105    {
     106        *fLog << warn << "Warning - Read files have different Theta ranges (";
     107        *fLog << "(" << fThetaMin << ", " << fThetaMax << ")   vs   (" <<
     108          runheader->GetShowerThetaMin() << ", " <<
     109          runheader->GetShowerThetaMax() << ")..." << endl;
     110    }
     111    fThetaMin = runheader->GetShowerThetaMin();
     112    fThetaMax = runheader->GetShowerThetaMax();
    108113
    109114
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h

    r2250 r5340  
    2626    UInt_t fCorsikaVersion;
    2727    Bool_t fAllEvtsTriggered;
    28     Float_t fTheta;
     28    Float_t fThetaMin;
     29    Float_t fThetaMax;
    2930
    3031    Bool_t ReInit(MParList *plist);
Note: See TracChangeset for help on using the changeset viewer.