Ignore:
Timestamp:
03/20/01 17:25:33 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
8 added
5 edited

Legend:

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

    r597 r695  
    11#ifndef __CINT__
    2 
    32
    43#include <TClonesArray.h>
  • trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h

    r653 r695  
    1111#pragma link C++ class MCT1Pedestals;
    1212
     13#pragma link C++ class MPedestalPix;
     14#pragma link C++ class MPedestalCam;
     15
     16#pragma link C++ class MHillas;
     17#pragma link C++ class MHillasCalc;
     18
    1319#endif
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r653 r695  
    88
    99#include "MLog.h"
    10 #include "MGeomCam.h"
    1110#include "MCamNeighbor.h"
    1211#include "MCamDisplay.h"
     
    1514ClassImp(MCerPhotEvt)
    1615
    17 MCerPhotEvt::MCerPhotEvt(const char *name, const char *title ) : fType(0), fNbPixels(0)
     16MCerPhotEvt::MCerPhotEvt(const char *name, const char *title) : fNumPixels(0)
    1817{
    1918  //   the default constructor
     
    3130}
    3231
     32#include "MGeomCamMagic.h"
     33#include "MGeomCamCT1.h"
     34
    3335void MCerPhotEvt::Draw(Option_t* option)
    3436{
    35   //   FIXME!!!
    36   //
    37  
    38   MCamDisplay *disp = new MCamDisplay(fType)  ;
    39  
    40   disp->DrawPhotNum(this) ;
    41 }
    42 
    43 Int_t MCerPhotEvt::GetNbPixels()
    44 {
    45   return fNbPixels;
     37    //
     38    //   FIXME!!! Here the Draw function of the CamDisplay
     39    //   should be called to add the CamDisplay to the Pad.
     40    //   The drawing should be done in MCamDisplay::Paint
     41    //
     42
     43    //    MGeomCam *geom = fType ? new MGeomCamMagic : new MGeomCamCT1;
     44    //    MCamDisplay *disp = new MCamDisplay(geom);
     45    //    delete geom;
     46    //    disp->DrawPhotNum(this);
     47}
     48
     49Int_t MCerPhotEvt::GetNumPixels()
     50{
     51    return fNumPixels;
    4652}
    4753
     
    5258    // of valid pixels in the list by one
    5359    //
    54     (*fPixels)[fNbPixels++] = new MCerPhotPix( id, nph, err);
     60    (*fPixels)[fNumPixels++] = new MCerPhotPix( id, nph, err);
    5561}
    5662
     
    6066    // reset counter and delete netries in list.
    6167    //
    62     fNbPixels = 0 ;
     68    fNumPixels = 0 ;
    6369    fPixels->Clear() ;
    6470}
     
    6975
    7076    *fLog << "MCerPhotEvt::Print()" << endl
    71         << "Number of Pixels: " << fNbPixels
     77        << "Number of Pixels: " << fNumPixels
    7278        << "(" << entries << ")"
    7379        << endl ;
     
    276282}
    277283
    278 Float_t MCerPhotEvt::GetMinNumPhotons()
     284Float_t MCerPhotEvt::GetNumPhotonsMin()
    279285{
    280286    //
    281287    // get the minimum number of photons of all valid pixels in the list
    282288    //
    283     if (fNbPixels <= 0)
     289    if (fNumPixels <= 0)
    284290        return -5. ;
    285291
     
    287293
    288294    Float_t testval;
    289     for (Int_t i=1 ; i<fNbPixels; i++ )
     295    for (Int_t i=1 ; i<fNumPixels; i++ )
    290296    {
    291297        testval = (*this)[i].GetNumPhotons();
     
    298304}
    299305
    300 Float_t MCerPhotEvt::GetMaxNumPhotons()
     306Float_t MCerPhotEvt::GetNumPhotonsMax()
    301307{
    302308    //
    303309    // get the maximum number of photons of all valid pixels in the list
    304310    //
    305     if (fNbPixels <= 0)
     311    if (fNumPixels <= 0)
    306312        return 50.;
    307313
     
    309315
    310316    Float_t testval;
    311     for (Int_t i=1; i<fNbPixels; i++)
     317    for (Int_t i=1; i<fNumPixels; i++)
    312318    {
    313319        testval = (*this)[i].GetNumPhotons();
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h

    r653 r695  
    2121private:
    2222
    23     Int_t         fType;
    24     Int_t         fNbPixels;
     23    Int_t         fNumPixels;
    2524    TClonesArray *fPixels;
    2625
     
    3231  void Draw(Option_t* option = "" ) ;
    3332
    34   Int_t    GetNbPixels() ;
     33  Int_t    GetNumPixels() ;
    3534
    3635  void AddPixel(Int_t id, Float_t nph, Float_t err );
     
    4847  Bool_t  IsPixelCore    ( Int_t id ) ;
    4948 
    50   Float_t GetMinNumPhotons();
    51   Float_t GetMaxNumPhotons();
     49  Float_t GetNumPhotonsMin();
     50  Float_t GetNumPhotonsMax();
    5251
    5352  MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
  • trunk/MagicSoft/Mars/manalysis/Makefile

    r665 r695  
    3030SRCFILES = MCT1Pedestals.cc \
    3131           MCT1ReadAscii.cc \
     32           MPedestalCam.cc \
     33           MPedestalPix.cc \
     34           MHillas.cc \
     35           MHillasCalc.cc \
    3236           MCerPhotEvt.cc \
    3337           MCerPhotPix.cc
Note: See TracChangeset for help on using the changeset viewer.