Changeset 1546 for trunk


Ignore:
Timestamp:
10/16/02 20:36:50 (22 years ago)
Author:
bigongia
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1545 r1546  
    77     - Now the default pixel treatment is the same as originally: add
    88       all FADC slices
     9
     10   * macros/MagicHillas.C
     11     - changed accordingly to changes above.
    912
    1013 2002/10/16: Thomas Bretz
  • trunk/MagicSoft/Mars/macros/MagicHillas.C

    r1543 r1546  
    101101    //  Example: use only 2nd to 6th FADC slices for photon calculation:
    102102    //
    103     //    MCerPhotCalc2 ncalc;
    104103    //    const Float_t x[15]={0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0};
    105104    //    TArrayF w(15,x);
  • trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h

    r1524 r1546  
    99#pragma link C++ class MCerPhotAnal+;
    1010#pragma link C++ class MCerPhotCalc+;
    11 #pragma link C++ class MCerPhotCalc2+;
    1211
    1312#pragma link C++ class MImgCleanStd+;
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.h

    r1291 r1546  
    66// MCerPhotCalc                                                            //
    77//                                                                         //
    8 // Integrates the time slices of one pixel and substracts the pedestal     //
    9 // (offset) value                                                          //
     8// Integrates the desired ADC time slices of one pixel and substracts the  //
     9// pedestal (offset) value                                                 //
    1010//                                                                         //
    1111/////////////////////////////////////////////////////////////////////////////
     
    1515#endif
    1616
     17#include <TArrayF.h>
     18
    1719class MRawEvtData;
    1820class MPedestalCam;
    1921class MCerPhotEvt;
    2022class MRawRunHeader;
     23class TArrayF;
    2124
    2225class MCerPhotCalc : public MTask
    2326{
    24     MPedestalCam  *fPedestals;  // Pedestals of all pixels in the camera
    25     MRawEvtData   *fRawEvt;     // raw event data (time slices)
    26     MCerPhotEvt   *fCerPhotEvt; // Cerenkov Photon Event used for calculation
    27     MRawRunHeader *fRunHeader;  //  RunHeader information
     27    MPedestalCam   *fPedestals;  // Pedestals of all pixels in the camera
     28    MRawEvtData    *fRawEvt;     // raw event data (time slices)
     29    MCerPhotEvt    *fCerPhotEvt; // Cerenkov Photon Event used for calculation
     30    MRawRunHeader  *fRunHeader;  // RunHeader information
     31 
     32    Bool_t          fEnableFix;  // fix for a bug in files from older camera versions (<=40)
    2833
    29     Bool_t         fEnableFix;  // fix for a bug in files from older camera versions (<=40)
     34    TArrayF         fWeight;  // Weights for adding up the ADC slices
     35    Float_t         fSumQuadWeights;
     36
     37    void SetDefaultWeights();
    3038
    3139public:
     
    3442    Bool_t PreProcess(MParList *pList);
    3543    Bool_t Process();
     44    Bool_t ReInit(MParList *pList);
    3645
    37     Bool_t ReInit(MParList *pList);
     46    void   SetWeights(TArrayF w) {fWeight.Set(w.GetSize(),w.GetArray());}
    3847
    3948    ClassDef(MCerPhotCalc, 0)   // Task to calculate cerenkov photons from raw data
    4049};
     50 
    4151
    4252#endif
Note: See TracChangeset for help on using the changeset viewer.