Ignore:
Timestamp:
04/23/01 15:12:45 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r749 r764  
    3838ClassImp(MCerPhotEvt)
    3939
     40// --------------------------------------------------------------------------
     41//
     42// Creates a MCerPhotPix object for each pixel in the event
     43//
    4044MCerPhotEvt::MCerPhotEvt(const char *name, const char *title) : fNumPixels(0)
    4145{
    42   //   the default constructor
    43 
    44  
     46
    4547  *fName  = name  ? name  : "MCerPhotEvt";
    4648  *fTitle = name  ? name  : "(Number of Photon)-Event Information";
     
    5456}
    5557
     58// --------------------------------------------------------------------------
     59//
     60// This is not yet implemented like it should.
     61//
    5662void MCerPhotEvt::Draw(Option_t* option)
    5763{
     
    6874}
    6975
     76// --------------------------------------------------------------------------
     77//
     78// add a new pixel to the list and increase the number
     79// of valid pixels in the list by one
     80//
    7081void MCerPhotEvt::AddPixel(Int_t id, Float_t nph, Float_t err)
    7182{
    72     //
    73     // add a new pixel to the list and increase the number
    74     // of valid pixels in the list by one
    75     //
    76 
    7783    // TClonesArray -> 'operator new with placement' should be used
    7884    new ((*fPixels)[fNumPixels++]) MCerPhotPix( id, nph, err);
    7985}
    8086
     87// --------------------------------------------------------------------------
     88//
     89// reset counter and delete netries in list.
     90//
    8191void MCerPhotEvt::Clear(Option_t *)
    8292{
    83     //
    84     // reset counter and delete netries in list.
    85     //
    8693    fNumPixels = 0 ;
    8794    fPixels->Clear() ;
    8895}
    8996
     97// --------------------------------------------------------------------------
     98//
     99//  Dump the cerenkov photon event to *fLog
     100//
    90101void MCerPhotEvt::Print(Option_t *)
    91102{
     
    101112}
    102113
     114// --------------------------------------------------------------------------
     115//
     116// Checks if in the pixel list is an entry with pixel id
     117//
    103118Bool_t MCerPhotEvt::IsPixelExisting(Int_t id)
    104119{
    105     //
    106     // Checks if in the pixel list is an entry with pixel id
    107     //
    108120    const Int_t entries = fPixels->GetEntries();
    109121
     
    117129}
    118130
     131// --------------------------------------------------------------------------
     132//
     133//   Checks if in the pixel list is an entry with pixel id
     134//
    119135Bool_t MCerPhotEvt::IsPixelUsed(Int_t id)
    120136{
    121     //
    122     //   Checks if in the pixel list is an entry with pixel id
    123     //
    124137    const Int_t entries = fPixels->GetEntries();
    125138
     
    135148}
    136149
     150// --------------------------------------------------------------------------
     151//
     152//   Checks if in the pixel list is an entry with pixel id
     153//
    137154Bool_t MCerPhotEvt::IsPixelCore(Int_t id)
    138155{
    139     //
    140     //   Checks if in the pixel list is an entry with pixel id
    141     //
    142156    const Int_t entries = fPixels->GetEntries();
    143157
     
    153167}
    154168
     169// --------------------------------------------------------------------------
     170//
     171// get the minimum number of photons of all valid pixels in the list
     172//
    155173Float_t MCerPhotEvt::GetNumPhotonsMin()
    156174{
    157     //
    158     // get the minimum number of photons of all valid pixels in the list
    159     //
    160175    if (fNumPixels <= 0)
    161176        return -5. ;
     
    175190}
    176191
     192// --------------------------------------------------------------------------
     193//
     194// get the maximum number of photons of all valid pixels in the list
     195//
    177196Float_t MCerPhotEvt::GetNumPhotonsMax()
    178197{
    179     //
    180     // get the maximum number of photons of all valid pixels in the list
    181     //
    182198    if (fNumPixels <= 0)
    183199        return 50.;
Note: See TracChangeset for help on using the changeset viewer.