Changeset 5340 for trunk


Ignore:
Timestamp:
11/04/04 21:52:46 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
6 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);
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.cxx

    r3894 r5340  
    6060// is the azimuth of the momentum vector of particles, and is measured
    6161// from the north direction, anticlockwise (i.e, west is phi=90 degrees).
    62 // When it refers to the telescope orientation, it is the azimuth of a
    63 // vector along the telescope axis, going from the camera to the mirror.
    64 // So, fTelesTheta=90, fTelesPhi = 0 means the telescope is pointing
    65 // horizontally towards South. For an explanation, see also TDAS 02-11.
    6662//
    6763////////////////////////////////////////////////////////////////////////////
     
    113109
    114110    fNumPheFromDNSB = 0.0;
    115     fTelesTheta = 0.0;
    116     fTelesPhi = 0.0;
    117111    fShowerThetaMax = 0.0;
    118112    fShowerThetaMin = 0.0;
     
    171165                        const Int_t    sfDeS,
    172166                        const Float_t  numdnsb,
    173                         const Float_t  telestheta,
    174                         const Float_t  telesphi,
    175167                        const Float_t  shthetamax,
    176168                        const Float_t  shthetamin,
     
    213205
    214206    fNumPheFromDNSB = numdnsb;
    215     fTelesTheta = telestheta;
    216     fTelesPhi = telesphi;
    217207    fShowerThetaMax = shthetamax;
    218208    fShowerThetaMin = shthetamin;
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx

    r3894 r5340  
    66//                                                                   //
    77// Version 5: removed members fSourceOffsetTheta, fSourceOffsetPhi   //
     8//            (were no longer used)                                  //
     9//                                                                   //
     10// Version 6: removed members fTelesTheta, fTelesPhi                 //
    811//            (were no longer used)                                  //
    912//                                                                   //
     
    4851
    4952  Float_t fNumPheFromDNSB;  // Number of phe/ns from diffuse NSB
    50  
    51   //  Telescope axis position (zenith and azimutal angle)
    52   Float_t fTelesTheta;  // >180 (200) means that telescope is always pointing the shower.
    53                         // Otherwise it is Theta where Telescope is pointing.
    54   Float_t fTelesPhi;    // See class description. > 360 (400) means that telescope is always pointing the shower.
    55                         // Otherwise it is Phi where Telescope is pointing.
    5653 
    5754  //  Angular range used in the Corsika showers generation (degrees)
     
    120117            const Int_t    sfDeS,
    121118            const Float_t  numdnsb,
    122             const Float_t  telestheta,
    123             const Float_t  telesphi,
    124119            const Float_t  shthetamax,
    125120            const Float_t  shthetamin,
     
    142137
    143138  Float_t  GetNumPheFromDNSB() const      { return fNumPheFromDNSB; }
    144   Float_t  GetTelesTheta() const          { return fTelesTheta; }
    145139  UShort_t GetCamVersion() const          { return fCamVersion; }
    146140  UShort_t GetReflVersion() const         { return fReflVersion; }
     
    148142  UInt_t   GetCorsikaVersion() const      { return fCorsikaVersion; }
    149143  Bool_t   GetAllEvtsTriggered() const    { return fAllEvtsTriggered ? kTRUE : kFALSE; }
     144
     145  Float_t  GetShowerThetaMin() const { return fShowerThetaMin; }
     146  Float_t  GetShowerThetaMax() const { return fShowerThetaMax; }
     147
    150148  Float_t GetImpactMax() const            {return fImpactMax;}
    151149
    152   ClassDef(MMcRunHeader, 5)     // storage container for general run info
     150  ClassDef(MMcRunHeader, 6)     // storage container for general run info
    153151};
    154152#endif
Note: See TracChangeset for help on using the changeset viewer.