Changeset 938 for trunk


Ignore:
Timestamp:
09/20/01 16:26:50 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

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

    r937 r938  
    88class MCerPhotPix : public TObject
    99{
    10  private:
    11  
    12   Int_t    fPixId     ;  // the pixel Id
    13   Bool_t   fIsUsed    ;  // the pixel is used for calculations --> kTRUE
    14   Bool_t   fIsCore    ;  // the pixel is a Core pixel          --> kTRUE
    15   Float_t  fPhot      ;  // The number of Cerenkov photons
    16   Float_t  fErrPhot   ;  // the error of fPhot
    17  
    18  public:
    19  
    20   MCerPhotPix(Int_t pix = -1, Float_t phot=0. , Float_t errphot=0.) ;
     10private:
    2111
    22   void Print(Option_t *opt = NULL) ;
    23              
    24   Int_t   GetPixId() const      { return fPixId ;    }
    25   Float_t GetNumPhotons() const { return fPhot ;     }
    26   Float_t GetErrorPhot() const  { return fErrPhot ;  }
     12    Int_t   fPixId;       // the pixel Id
     13    Bool_t  fIsUsed;      // the pixel is used for calculations --> kTRUE
     14    Bool_t  fIsCore;      // the pixel is a Core pixel          --> kTRUE
     15    Float_t fPhot;        // The number of Cerenkov photons
     16    Float_t fErrPhot;     // the error of fPhot
    2717
    28   void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
     18public:
    2919
    30   Bool_t IsPixelUsed() const    { return fIsUsed ;   }
    31   void   SetPixelUnused()       { fIsUsed = kFALSE ; }
    32   void   SetPixelUsed()         { fIsUsed = kTRUE ;  }
     20    MCerPhotPix(Int_t pix = -1, Float_t phot=0., Float_t errphot=0.);
    3321
    34   void   SetCorePixel()         { fIsCore = kTRUE ;  }
    35   Bool_t IsCorePixel() const    { return fIsCore ;   }
     22    void Print(Option_t *opt = NULL) ;
    3623
    37   void SetNumPhotons(Float_t f) { fPhot    = f; }
    38   void SetErrorPhot(Float_t f)  { fErrPhot = f; }
    39  
    40   ClassDef(MCerPhotPix, 1)  // class containing information about the Cerenkov Photons in a pixel
    41 } ;
     24    Int_t   GetPixId() const      { return fPixId;   }
     25    Float_t GetNumPhotons() const { return fPhot;    }
     26    Float_t GetErrorPhot() const  { return fErrPhot; }
     27
     28    void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
     29
     30    Bool_t IsPixelUsed() const    { return fIsUsed;   }
     31    void   SetPixelUnused()       { fIsUsed = kFALSE; }
     32    void   SetPixelUsed()         { fIsUsed = kTRUE;  }
     33
     34    void   SetCorePixel()         { fIsCore = kTRUE; }
     35    Bool_t IsCorePixel() const    { return fIsCore;  }
     36
     37    void SetNumPhotons(Float_t f) { fPhot    = f; }
     38    void SetErrorPhot(Float_t f)  { fErrPhot = f; }
     39
     40    ClassDef(MCerPhotPix, 1)  // class containing information about the Cerenkov Photons in a pixel
     41};
    4242
    4343#endif
  • trunk/MagicSoft/Mars/mdatacheck/DataCheckLinkDef.h

    r710 r938  
    66
    77#pragma link C++ class MShowSpect;
     8#pragma link C++ class MViewAdcSpectra;
    89#pragma link C++ class MDumpEvtHeader;
    910
  • trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc

    r749 r938  
    4444#include "MHFadcCam.h"
    4545
     46ClassImp(MViewAdcSpectra);
     47
     48// ================================================================================
     49//
     50// default constructor
     51//
    4652MViewAdcSpectra::MViewAdcSpectra()
    4753{
    48   // default constructor 
    49 } 
     54   fHistosAdc = new MHFadcCam;
     55}
    5056
     57// ================================================================================
     58//
     59// default destructor
     60//
    5161MViewAdcSpectra::~MViewAdcSpectra()
    5262{
    53     // default destructor
    5463    delete fHistosAdc;
    5564}
     
    5766
    5867// ================================================================================
    59 Bool_t MViewAdcSpectra::AdcSpectra ( Char_t *inputfile, Char_t *treeName )
     68//
     69//   This job reads in the FADC data from all events and fills
     70//   the spectrum for each pmt pixel.
     71//
     72Bool_t MViewAdcSpectra::AdcSpectra(Char_t *inputfile, Char_t *treeName)
    6073{
    61   //   This job reads in the FADC data from all events and fills
    62   //   the spectrum for each pmt pixel.
    63   //
     74    cout << "MViewAdcSpectra:: Analyse the tree '" << treeName << "'";
     75    cout << "in the file '" << inputfile << "'" << endl;
    6476
    65   cout << "PedAdcSpectra:: Analyse the tree " << treeName
    66        << "in the file  " << inputfile << endl ;
    67  
    68   // create a (empty) list of parameters which can be used by the tasks
    69   // and an (empty) list of tasks which should be executed
    70   // connect them in the required way.
    71  
    72   //
    73   //   create the data containers for the raw data
    74   //
    75   MParList plist;
    76  
    77   MRawRunHeader runheader;
    78   plist.AddToList(&runheader);
     77    //
     78    // create a (empty) list of parameters which can be used by the tasks
     79    // and an (empty) list of tasks which should be executed
     80    // connect them in the required way.
     81    //
    7982
    80   MRawEvtHeader evtheader;
    81   plist.AddToList(&evtheader);
    82  
    83   MRawEvtData evtdata;
    84   plist.AddToList(&evtdata);
    85  
    86   MRawCrateArray cratearray;
    87   plist.AddToList(&cratearray);
    88  
    89   MTime evttime("MTime");
    90   plist.AddToList(&evttime);
     83    //
     84    //   create the data containers for the raw data
     85    //
     86    MParList plist;
    9187
    92   fHistosAdc= new MHFadcCam;
    93   plist.AddToList( fHistosAdc ) ;
     88    MRawRunHeader runheader;
     89    plist.AddToList(&runheader);
    9490
    95   //
    96   //    set up the tasks for this job
    97   //
    98   MTaskList tasks;
    99   plist.AddToList(&tasks);
     91    MRawEvtHeader evtheader;
     92    plist.AddToList(&evtheader);
    10093
    101   MReadTree readin ( treeName, inputfile ) ;
    102   tasks.AddToList( &readin ) ;
     94    MRawEvtData evtdata;
     95    plist.AddToList(&evtdata);
    10396
    104   //  MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ;
    105   //  tasks->AddToList( dumpheader ) ;
    106  
    107   MFillHFadc fillspect;
    108   tasks.AddToList( &fillspect ) ;
     97    MRawCrateArray cratearray;
     98    plist.AddToList(&cratearray);
    10999
    110   MShowSpect showspect( "MHFadcCam" ) ;
    111   tasks.AddToList( &showspect ) ;
     100    MTime evttime("MTime");
     101    plist.AddToList(&evttime);
    112102
    113   //    set up the loop for the processing
    114  
    115   MEvtLoop magic;
    116   magic.SetParList(&plist);
     103    plist.AddToList(fHistosAdc);
    117104
    118   //    start the loop running
     105    //
     106    // set up the tasks for this job
     107    //
     108    MTaskList tasks;
     109    plist.AddToList(&tasks);
    119110
    120   magic.Eventloop() ;
    121  
    122   return kTRUE ;
     111    MReadTree readin(treeName, inputfile);
     112    tasks.AddToList(&readin);
    123113
    124 }
     114    //
     115    //  MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ;
     116    //  tasks->AddToList( dumpheader ) ;
     117    //
     118    MFillHFadc fillspect;
     119    tasks.AddToList(&fillspect);
     120
     121    MShowSpect showspect("MHFadcCam");
     122    tasks.AddToList(&showspect);
     123
     124    //
     125    // set up the loop for the processing
     126    //
     127    MEvtLoop magic;
     128    magic.SetParList(&plist);
     129
     130    //
     131    // start the loop running
     132    //
     133    magic.Eventloop();
     134
     135    return kTRUE;
     136}
  • trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h

    r698 r938  
    88class MHFadcCam;
    99
    10 class MViewAdcSpectra {
     10class MViewAdcSpectra
     11{
     12private:
     13    MHFadcCam *fHistosAdc;
    1114
    12  private:
     15public:
    1316
    14      MHFadcCam *fHistosAdc;
     17     MViewAdcSpectra();
     18     virtual ~MViewAdcSpectra();
     19 
     20     Bool_t AdcSpectra(Char_t *inputFile, Char_t *treeName);
    1521
    16  public:
    17  
    18      MViewAdcSpectra() ;
    19  
    20      ~MViewAdcSpectra() ;
    21  
    22      Bool_t AdcSpectra( Char_t *inputFile , Char_t *treeName ) ;
     22     //  Bool_t CrAdcSpectra ( Char_t *inputFile ) ;
     23     //  Bool_t PedTdcSpectra( Char_t *inputFile ) ;
     24     //  Bool_t CrTdcSpectra ( Char_t *inputFile ) ;
    2325
    24   //  Bool_t CrAdcSpectra ( Char_t *inputFile ) ;
    25 
    26   //  Bool_t PedTdcSpectra( Char_t *inputFile ) ;
    27   //  Bool_t CrTdcSpectra ( Char_t *inputFile ) ;
    28 
    29 } ;
     26     ClassDef(MViewAdcSpectra, 0) // Part of the gui, displays Adc Spectras
     27};
    3028
    3129#endif
  • trunk/MagicSoft/Mars/mmain/MBrowser.cc

    r749 r938  
    3939
    4040#include <iostream.h>
     41
     42ClassImp(MBrowser);
    4143
    4244enum {
  • trunk/MagicSoft/Mars/mmain/MBrowser.h

    r719 r938  
    9191
    9292     virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
     93
     94     ClassDef(MBrowser, 0)   // Base class for the gui
    9395} ;
    9496
  • trunk/MagicSoft/Mars/mmain/MainLinkDef.h

    r714 r938  
    44#pragma link off all classes;
    55#pragma link off all functions;
     6
     7#pragma link C++ class MBrowser;
    68
    79#pragma link C++ class MMars;
Note: See TracChangeset for help on using the changeset viewer.