Changeset 5425 for trunk


Ignore:
Timestamp:
11/18/04 10:57:29 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5423 r5425  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2004/11/18: Markus Gaug
     24
     25   * msignal/MExtractor.[h,cc]
     26     - introduce possibility to choose name of MExtractedSignalCam. Need
     27       access to different MExtractedSignalCams for comparative extractor
     28       studies. Analogues to MPedestalCam in MPedCalcFromLoGain. Default
     29       is "MExtractedSignalCam", like before.
     30     - set version number by one higher because of new data member
     31       "fNameSignalCam"
     32
    2233
    2334 2004/11/17: Abelardo Moralejo
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r5387 r5425  
    9898// - fSaturationLimit to fgSaturationLimit
    9999// - fNamePedestalCam to fgNamePedestalCam
     100// - fNameSignalCam to fgNameSignalCam
    100101// - fNoiseCalculation to kFALSE
    101102//
     
    113114
    114115    SetNamePedestalCam();
     116    SetNameSignalCam();
    115117    SetOffsetLoGain();
    116118    SetRange();
     
    160162    if (!fPedestals)
    161163    {
    162         *fLog << err << AddSerialNumber("MPedestalCam") << " not found... aborting" << endl;
     164        *fLog << err << fNamePedestalCam.Data() << " not found... aborting" << endl;
    163165        return kFALSE;
    164166    }
    165167
    166     fSignals = (MExtractedSignalCam*)pList->FindCreateObj(AddSerialNumber("MExtractedSignalCam"));
     168    fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam));
    167169    if (!fSignals)
     170    {
     171        *fLog << err << fNameSignalCam.Data() << " could not be found nor created... aborting" << endl;
    168172        return kFALSE;
     173    }
    169174
    170175    return kTRUE;
  • trunk/MagicSoft/Mars/msignal/MExtractor.h

    r5381 r5425  
    2626  static const Float_t fgOffsetLoGain;     //! Default for fOffsetLoGain (now set to 1.51 (= 5ns)
    2727 
    28   Bool_t  fNoiseCalculation;      // Flag if the extractor is used to determine the noise contribution from a pedestal file.
     28  Bool_t  fNoiseCalculation;               // Flag if extractor determines noise contribution from pedestal file.
    2929 
    3030protected:
     
    3232  static const Byte_t  fgSaturationLimit;  //! Default for fSaturationLimit (now set to: 254)
    3333  static const TString fgNamePedestalCam;  //! "MPedestalCam"
    34 
    35   Float_t fOffsetLoGain;                  // Offset of the low-gain signal w.r.t. the High-Gain slices
     34  static const TString fgNameSignalCam;    //! "MExtractedSignalCam"
     35 
     36  Float_t fOffsetLoGain;                   // Offset of the low-gain signal w.r.t. the High-Gain slices
    3637
    3738  MPedestalCam        *fPedestals;         //! Pedestals of all pixels in the camera
     
    5556                                           
    5657  Byte_t   fSaturationLimit;               // Highest FADC slice value until being declared saturated
    57   TString  fNamePedestalCam;              // Name of the 'MPedestalCam' container
     58  TString  fNamePedestalCam;               // Name of the 'MPedestalCam' container
     59  TString  fNameSignalCam;                 // Name of the 'MExtractedSignalCam' container
    5860
    5961  virtual void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const { }
    6062  virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { }
    6163 
    62   Int_t   PreProcess(MParList *pList);
    63   Bool_t  ReInit(MParList *pList);
    64   Int_t   Process();
     64  Int_t   PreProcess( MParList *pList );
     65  Bool_t  ReInit    ( MParList *pList );
     66  Int_t   Process   ();
    6567  void    StreamPrimitive(ofstream &out) const;
    6668  Int_t   ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     
    8082  virtual void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
    8183
    82   void SetOffsetLoGain(const Float_t f=fgOffsetLoGain)  { fOffsetLoGain = f; }
    83   void SetSaturationLimit(Byte_t lim=fgSaturationLimit) { fSaturationLimit  = lim; }
    84   void SetNamePedestalCam(const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; }
    85   void SetNoiseCalculation(const Bool_t b=kTRUE)        { fNoiseCalculation = b; }
     84  void SetOffsetLoGain    ( const Float_t  f=fgOffsetLoGain          ) { fOffsetLoGain     = f;    }
     85  void SetSaturationLimit ( const Byte_t lim=fgSaturationLimit       ) { fSaturationLimit  = lim;  }
     86  void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam  = name; }
     87  void SetNameSignalCam   ( const char *name=fgNameSignalCam.Data()  ) { fNameSignalCam    = name; }
     88  void SetNoiseCalculation( const Bool_t   b=kTRUE                   ) { fNoiseCalculation = b;    }
    8689
    8790  void Print(Option_t *o="") const;
    8891
    89   ClassDef(MExtractor, 3) // Signal Extractor Base Class
     92  ClassDef(MExtractor, 4) // Signal Extractor Base Class
    9093};
    9194
Note: See TracChangeset for help on using the changeset viewer.