Changeset 9596


Ignore:
Timestamp:
Jun 24, 2010, 4:42:52 PM (10 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/include-Classes/MMcFormat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx

    r8907 r9596  
    5252//   - added fEventReuse
    5353//
     54// Version 7:
     55//  - moved fPhi   to MMcEvtBasic
     56//  - moved fTheta to MmcEvtBasic
     57//
    5458/////////////////////////////////////////////////////////////////////////////
    5559#include "MMcEvt.hxx"
     
    116120    fPartId = kUNDEFINED;
    117121    fEnergy = -1;
    118 
    119     fTheta = 0;
    120     fPhi   = 0;
    121122
    122123    fCoreD  =  0;
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvtBasic.cc

    r9313 r9596  
    4949//  - replaced MMcEvt::ParticleId_t by ParticleId_t
    5050//
     51// Version 3:
     52//  - moved fPhi   from MMcEvt
     53//  - moved fTheta from MmcEvt
     54//
    5155/////////////////////////////////////////////////////////////////////////////
    5256#include "MMcEvtBasic.h"
     
    8185//
    8286MMcEvtBasic::MMcEvtBasic(ParticleId_t usPId, Float_t fEner,
    83                          Float_t fImpa, Float_t fTPhii, Float_t fTThet)
     87                         Float_t fImpa, Float_t fTPhii, Float_t fTThet)
     88   : fPartId(usPId), fEnergy(fEner), fImpact(fImpa),
     89     fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0)
    8490{
    8591    fName  = "MMcEvtBasic";
    8692    fTitle = "Basic event info from Monte Carlo";
    87 
    88     Fill(usPId, fEner, fImpa, fTPhii, fTThet);
    8993}
    9094
     
    100104    fTelescopePhi   = evt.fTelescopePhi;
    101105    fTelescopeTheta = evt.fTelescopeTheta;
    102 }
    103 
    104 // --------------------------------------------------------------------------
    105 //
    106 //  Reset all values: Fill(kUNDEFINED, -1, -1, 0, 0)
     106    fPhi            = evt.fPhi;
     107    fTheta          = evt.fTheta;
     108}
     109
     110// --------------------------------------------------------------------------
     111//
     112//  Reset all values.
    107113//
    108114void MMcEvtBasic::Clear(Option_t *opt)
    109115{
    110     Fill(kUNDEFINED, -1, -1, 0, 0);
     116    fPartId         = kUNDEFINED;
     117
     118    fEnergy         = -1;
     119    fImpact         = -1;
     120
     121    fTelescopePhi   = 0;
     122    fTelescopeTheta = 0;
     123
     124    fTheta          = 0;
     125    fPhi            = 0;
    111126}
    112127
Note: See TracChangeset for help on using the changeset viewer.