Ignore:
Timestamp:
10/02/01 14:46:56 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r857 r959  
    116116// Checks if in the pixel list is an entry with pixel id
    117117//
    118 Bool_t MCerPhotEvt::IsPixelExisting(Int_t id)
     118Bool_t MCerPhotEvt::IsPixelExisting(Int_t id) const
    119119{
    120120    const Int_t entries = fPixels->GetEntries();
     
    123123    {
    124124        if (id == (*this)[il].GetPixId())
    125             return kTRUE ;
    126     }
    127 
    128     return kFALSE ;
     125            return kTRUE;
     126    }
     127
     128    return kFALSE;
    129129}
    130130
     
    133133//   Checks if in the pixel list is an entry with pixel id
    134134//
    135 Bool_t MCerPhotEvt::IsPixelUsed(Int_t id)
    136 {
    137     const Int_t entries = fPixels->GetEntries();
    138 
    139     for (Int_t il=0; il<entries; il++ )
     135Bool_t MCerPhotEvt::IsPixelUsed(Int_t id) const
     136{
     137    const Int_t entries = fPixels->GetEntries();
     138
     139    for (Int_t il=0; il<entries; il++)
    140140    {
    141141        MCerPhotPix &pix = (*this)[il];
    142142
    143143        if (id == pix.GetPixId() && pix.IsPixelUsed())
    144             return kTRUE ;
    145     }
    146 
    147     return kFALSE ;
     144            return kTRUE;
     145    }
     146
     147    return kFALSE;
    148148}
    149149
     
    152152//   Checks if in the pixel list is an entry with pixel id
    153153//
    154 Bool_t MCerPhotEvt::IsPixelCore(Int_t id)
    155 {
    156     const Int_t entries = fPixels->GetEntries();
    157 
    158     for (Int_t il=0; il<entries; il++ )
     154Bool_t MCerPhotEvt::IsPixelCore(Int_t id) const
     155{
     156    const Int_t entries = fPixels->GetEntries();
     157
     158    for (Int_t il=0; il<entries; il++)
    159159    {
    160160        MCerPhotPix &pix = (*this)[il];
    161161
    162         if ( id == pix.GetPixId() && pix.IsCorePixel())
    163             return kTRUE ;
     162        if (id == pix.GetPixId() && pix.IsCorePixel())
     163            return kTRUE;
    164164    }
    165165
    166     return kFALSE ;
     166    return kFALSE;
    167167}
    168168
     
    171171// get the minimum number of photons of all valid pixels in the list
    172172//
    173 Float_t MCerPhotEvt::GetNumPhotonsMin()
     173Float_t MCerPhotEvt::GetNumPhotonsMin() const
    174174{
    175175    if (fNumPixels <= 0)
    176         return -5. ;
     176        return -5.;
    177177
    178178    Float_t minval = (*this)[0].GetNumPhotons();
    179179
    180180    Float_t testval;
    181     for (UInt_t i=1 ; i<fNumPixels; i++ )
     181    for (UInt_t i=1; i<fNumPixels; i++)
    182182    {
    183183        testval = (*this)[i].GetNumPhotons();
     
    194194// get the maximum number of photons of all valid pixels in the list
    195195//
    196 Float_t MCerPhotEvt::GetNumPhotonsMax()
     196Float_t MCerPhotEvt::GetNumPhotonsMax() const
    197197{
    198198    if (fNumPixels <= 0)
Note: See TracChangeset for help on using the changeset viewer.