Changeset 619 for trunk


Ignore:
Timestamp:
02/22/01 20:14:48 (24 years ago)
Author:
magicsol
Message:
It has few changes to update the member functions to the new description
of the MMcEvt class done in MMcEvt.hxx 1.2.
File:
1 edited

Legend:

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

    r609 r619  
    2121  //  set all values to zero
    2222
    23   usPartId = 0  ;
     23  fPartId = 0  ;
    2424  fEnergy  = 0. ;
    2525
     
    3232  fImpact  = 0. ;
    3333
    34   usPhotIni      = 0 ;
    35   usPassPhotAtm  = 0 ;
    36   usPassPhotRef  = 0 ;
    37   usPassPhotCone = 0 ;
    38   usPhotEl       = 0 ;
     34  fPhotIni      = 0 ;
     35  fPassPhotAtm  = 0 ;
     36  fPassPhotRef  = 0 ;
     37  fPassPhotCone = 0 ;
     38  fPhotElfromShower = 0 ;
     39  fPhotElinCamera = 0 ;
    3940}
    4041
     
    4748                Float_t  fCorY,
    4849                Float_t  fImpa,
    49                 UShort_t usPin,
    50                 UShort_t usPat, 
    51                 UShort_t usPre,
    52                 UShort_t usPco, 
    53                 UShort_t usPel ) {
     50                UInt_t   uiPin,
     51                UInt_t   uiPat, 
     52                UInt_t   uiPre,
     53                UInt_t   uiPco, 
     54                UInt_t   uiPelS,
     55                UInt_t   uiPelC ) {
    5456  //
    5557  //  constuctor II
     
    6062  // 
    6163
    62   usPartId = usPId  ;
     64  fPartId = usPId  ;
    6365  fEnergy  = fEner  ;
    6466
     
    7173  fImpact  = fImpa ;
    7274
    73   usPhotIni      = usPin ;
    74   usPassPhotAtm  = usPat ;
    75   usPassPhotRef  = usPre ;
    76   usPassPhotCone = usPco ;
    77   usPhotEl       = usPel ;
     75  fPhotIni      = uiPin ;
     76  fPassPhotAtm  = uiPat ;
     77  fPassPhotRef  = uiPre ;
     78  fPassPhotCone = uiPco ;
     79  fPhotElfromShower = uiPelS ;
     80  fPhotElinCamera   = uiPelC ;
    7881}
    7982
     
    9497  //  reset all values to zero
    9598
    96   usPartId = 0  ;
     99  fPartId = 0  ;
    97100  fEnergy  = 0. ;
    98101
     
    105108  fImpact  = 0. ;
    106109
    107   usPhotIni      = 0 ;
    108   usPassPhotAtm  = 0 ;
    109   usPassPhotRef  = 0 ;
    110   usPassPhotCone = 0 ;
    111   usPhotEl       = 0 ;
     110  fPhotIni      = 0 ;
     111  fPassPhotAtm  = 0 ;
     112  fPassPhotRef  = 0 ;
     113  fPassPhotCone = 0 ;
     114  fPhotElfromShower = 0 ;
     115  fPhotElinCamera   = 0 ;
    112116}
     117
    113118void MMcEvt::Fill( UShort_t usPId,
    114119                   Float_t  fEner,
     
    119124                   Float_t  fCorY,
    120125                   Float_t  fImpa,
    121                    UShort_t usPin,
    122                    UShort_t usPat, 
    123                    UShort_t usPre,
    124                    UShort_t usPco, 
    125                    UShort_t usPel ) {
     126                   UInt_t   uiPin,
     127                   UInt_t   uiPat, 
     128                   UInt_t   uiPre,
     129                   UInt_t   uiPco, 
     130                   UInt_t   uiPelS, 
     131                   UInt_t   uiPelC ) {
    126132  //
    127133  //  All datamembers are filled with the correspondin parameters.
     
    130136  // 
    131137
    132   usPartId = usPId  ;
     138  fPartId = usPId  ;
    133139  fEnergy  = fEner  ;
    134140
     
    141147  fImpact  = fImpa ;
    142148
    143   usPhotIni      = usPin ;
    144   usPassPhotAtm  = usPat ;
    145   usPassPhotRef  = usPre ;
    146   usPassPhotCone = usPco ;
    147   usPhotEl       = usPel ;
     149  fPhotIni      = uiPin ;
     150  fPassPhotAtm  = uiPat ;
     151  fPassPhotRef  = uiPre ;
     152  fPassPhotCone = uiPco ;
     153  fPhotElfromShower = uiPelS ;
     154  fPhotElinCamera = uiPelC ;
    148155}
    149156
     
    154161  //  print out the data member on screen
    155162  //
    156   cout << endl << "Monte Carlo output:" << endl;
    157   cout << " Particle Id:    " << usPartId << endl;
    158   cout << " Energy [GeV]:   " << fEnergy  << endl;
    159   cout << " Impactpar. [m]: " << fImpact  << endl;
    160   cout << " Photoelectrons: " << usPhotEl << endl;
     163  cout <<endl << "Monte Carlo output:" <<endl;
     164  cout << " Particle Id    : " << fPartId ;
     165  cout << " Energy (GeV)   : " << fEnergy  ;
     166  cout << " Impactpar. (m) : " << fImpact  ;
     167  cout << " Photoelectrons : " << fPhotElfromShower ;
    161168  cout << endl ;
    162169}
    163 
    164    
    165 
Note: See TracChangeset for help on using the changeset viewer.