Ignore:
Timestamp:
03/01/01 15:42:32 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r603 r653  
    1 #ifndef MNPHOTEVENT_H
    2 #define MNPHOTEVENT_H
     1#ifndef MCERPHOTEVT_H
     2#define MCERPHOTEVT_H
    33
     4#ifndef MAGIC_h
     5#include "MAGIC.h"
     6#endif
     7#ifndef ROOT_TClonesArray
     8#include "TClonesArray.h"
     9#endif
    410#ifndef MPARCONTAINER_H
    511#include "MParContainer.h"
    612#endif
     13#ifndef MCAMNEIGHBOR_H
     14#include "MCamNeighbor.h"
     15#endif
    716
    8 #include <iostream>
    9 #include <TROOT.h>
    10 class TClonesArray ;
    11 class TObjArray ;
    12 class MCamNeighbor ;
    13 
    14 class MCerPhotPix : public TObject
    15 {
    16  private:
    17  
    18   Int_t    fPixId     ;  //   the pixel Id
    19   Bool_t   fIsUsed    ;  //   the pixel is used for calculations --> kTRUE
    20   Bool_t   fIsCore    ;  //   the pixel is a Core pixel          --> kTRUE
    21   Float_t  fPhot      ;  //   The number of Cerenkov photons
    22   Float_t  fErrPhot   ;  //   the error of fPhot
    23  
    24  public:
    25  
    26   MCerPhotPix(Int_t pix = -9999, Float_t phot=0. , Float_t errphot=0.) ;
    27 
    28   void Print() ;
    29  
    30   Int_t GetPixId()
    31     {
    32       return fPixId ;
    33     }
    34  
    35   Float_t GetPhotons()
    36     {
    37       return fPhot ;
    38     }
    39  
    40   Float_t GetErrorPhot()
    41     {
    42       return fErrPhot ;
    43     }
    44  
    45   void SetPixelContent(Int_t pix , Float_t phot , Float_t errphot ) ;
    46 
    47   Bool_t IsPixelUsed()
    48     {
    49       return fIsUsed ;
    50     } 
    51  
    52   void SetPixelUnused()
    53     {
    54       fIsUsed = kFALSE ;
    55     } 
    56  
    57   void SetPixelUsed()
    58     {
    59       fIsUsed = kTRUE ;
    60     } 
    61  
    62   void SetCorePixel()
    63     {
    64       fIsCore = kTRUE ;
    65     }
    66 
    67   Bool_t IsCorePixel()
    68     {
    69       return fIsCore ;
    70     } 
    71  
    72  
    73   ClassDef(MCerPhotPix, 1)  // Cerenkov Photons class for the pixel
    74 } ;
    75 
    76 
    77 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    78 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    79 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     17class MCerPhotPix;
    8018
    8119class MCerPhotEvt : public MParContainer
    8220{
    83  private:
     21private:
    8422
    85   Int_t            fType ;       //
    86   Int_t            fNbPixels ;   //
    87   TClonesArray     *fPixels   ;  //
     23    Int_t         fType;
     24    Int_t         fNbPixels;
     25    TClonesArray *fPixels;
    8826
     27    MCamNeighbor  fNN;   //! the class with the information about neighbors
    8928
    90   MCamNeighbor     *fNN  ;   //!   the class with the information about neighbors
    91  
    92  public:
    93  
    94   MCerPhotEvt(const char *name=NULL, const char *title=NULL) ;
     29public:
     30  MCerPhotEvt(const char *name=NULL, const char *title=NULL) ;
    9531
    9632  void Draw(Option_t* option = "" ) ;
     
    10036  void AddPixel(Int_t id, Float_t nph, Float_t err );
    10137
    102   void Clear() ;
     38  void Clear(Option_t *opt=NULL) ;
    10339
    104   void Print() ;
     40  void Print(Option_t *opt=NULL) ;
    10541
    10642  void CleanLevel1() ;
     
    10844  void CleanLevel3() ;
    10945 
    110   Bool_t PixelExist( Int_t id ) ;
    111   Bool_t PixelIsUsed( Int_t id ) ;
    112   Bool_t PixelIsCore( Int_t id ) ;
     46  Bool_t  IsPixelExisting( Int_t id ) ;
     47  Bool_t  IsPixelUsed    ( Int_t id ) ;
     48  Bool_t  IsPixelCore    ( Int_t id ) ;
    11349 
    114   Int_t GetPixelId(Int_t i ) ;
    115   Bool_t  IsPixelUsed(Int_t i ) ;
    116   Float_t GetPhotons(Int_t i ) ;
    117   Float_t GetErrorPhot(Int_t i ) ;
    118  
    119   Float_t GetMinimumPhoton()  ; 
    120   Float_t GetMaximumPhoton()  ;
    121  
     50  Float_t GetMinNumPhotons();
     51  Float_t GetMaxNumPhotons();
     52
     53  MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
     54
    12255  ClassDef(MCerPhotEvt, 1)    // class for Nphotons Events
    12356};
     
    12558#endif
    12659
    127 
Note: See TracChangeset for help on using the changeset viewer.