Ignore:
Timestamp:
02/26/04 10:55:25 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCompProb.cc

    r2173 r3325  
    168168    {
    169169    case 0:  // First loop : fill the fixed-bin histograms with gammas.
    170         if (mcevt.GetPartId() == kGAMMA)
     170        if (mcevt.GetPartId() == MMcEvt::kGAMMA)
    171171            Fill(*fHists);
    172172        return kTRUE;
    173173
    174174    case 1:   //  Second Loop: fill the variable-bin histograms with protons.
    175         if (mcevt.GetPartId() != kGAMMA)
     175        if (mcevt.GetPartId() != MMcEvt::kGAMMA)
    176176            Fill(*fHistVar);
    177177        return kTRUE;
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r3239 r3325  
    237237        TString txt("#splitline{");
    238238
    239         switch (fMcEvt->GetPartId())
    240         {
    241         case kGAMMA:
    242             txt += "Gamma: ";
    243             break;
    244         case kPROTON:
    245             txt += "Proton: ";
    246             break;
    247         case kHELIUM:
    248             txt += "Helium: ";
    249             break;
    250         default:
    251             s += "Particle Id#";
    252             s += fMcEvt->GetPartId();
    253             s += ": ";
    254         }
     239        txt += fMcEvt->GetParticleName();
    255240
    256241        s.Insert(0, txt);
     
    258243        s += "}{  E=";
    259244
    260         if (fMcEvt->GetEnergy()>1000)
    261             s += Form("%.1fTeV", fMcEvt->GetEnergy()/1000);
    262         else
    263             if (fMcEvt->GetEnergy()>10)
    264                 s += Form("%dGeV", (Int_t)(fMcEvt->GetEnergy()+.5));
    265             else
    266                 if (fMcEvt->GetEnergy()>1)
    267                     s += Form("%.1fGeV", fMcEvt->GetEnergy());
    268                 else
    269                     s += Form("%dMeV", (Int_t)(fMcEvt->GetEnergy()*1000+.5));
     245        s+= fMcEvt->GetEnergyStr();
    270246
    271247        s += " r=";
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r2522 r3325  
    216216    const Int_t particleid = fMatrix ? (Int_t)(*fMatrix)[fMap] : fMcEvt->GetPartId();
    217217
    218     if (particleid==kGAMMA)
     218    if (particleid==MMcEvt::kGAMMA)
    219219        fGhness->Fill(h, w);
    220220    else
Note: See TracChangeset for help on using the changeset viewer.