Changeset 5427


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5425 r5427  
    3030     - set version number by one higher because of new data member
    3131       "fNameSignalCam"
     32
     33   * msignal/MExtractTime.[h,cc]
     34     - introduce possibility to choose name of MArrivalTimeCam. Need
     35       access to different MArrivalTimeCams for comparative extractor
     36       studies. Analogues to MPedestalCam in MPedCalcFromLoGain. Default
     37       is "MArrivalTimeCam", like before.
     38     - set version number by one higher because of new data member
     39       "fNameTimeCam"
    3240
    3341
  • trunk/MagicSoft/Mars/msignal/MExtractTime.cc

    r5307 r5427  
    7070using namespace std;
    7171
     72const TString MExtractTime::fgNameTimeCam   = "MArrivalTimeCam";
    7273// --------------------------------------------------------------------------
    7374//
     
    7879// - all variables to 0
    7980// - fSaturationLimit to fgSaturationLimit
     81// - fNameTimeCam to fgNameTimeCam
    8082//
    8183// Call:
     
    8688{
    8789
    88     fName  = name  ? name  : "MExtractTime";
    89     fTitle = title ? title : "Base class for signal extractors";
    90 
     90  fName  = name  ? name  : "MExtractTime";
     91  fTitle = title ? title : "Base class for signal extractors";
     92 
     93  SetNameTimeCam();
    9194}
    9295
     
    122125 
    123126 
    124   fArrTime = (MArrivalTimeCam*)pList->FindCreateObj(AddSerialNumber("MArrivalTimeCam"));
     127  fArrTime = (MArrivalTimeCam*)pList->FindCreateObj("MArrivalTimeCam",AddSerialNumber(fNameTimeCam));
    125128  if (!fArrTime)
    126     return kFALSE;
    127  
     129    {
     130      *fLog << err << fNameTimeCam.Data() << " could not be found nor created... aborting" << endl;
     131      return kFALSE;
     132    }
    128133
    129134  fPedestals = (MPedestalCam*)pList->FindObject( AddSerialNumber(fNamePedestalCam), "MPedestalCam");
  • trunk/MagicSoft/Mars/msignal/MExtractTime.h

    r5328 r5427  
    1313protected:
    1414 
    15   MArrivalTimeCam *fArrTime; //! Container with the photons arrival times
     15  static const TString fgNameTimeCam; //! "MArrivalTimeCam"
     16  TString  fNameTimeCam;              // Name of the 'MArrivalTimeCam' container
     17 
     18  MArrivalTimeCam *fArrTime;          //! Container with the photons arrival times
    1619 
    1720  virtual void FindTimeHiGain(Byte_t *firstused, Float_t &time, Float_t &dtime,
     
    3033  void Print(Option_t *o) const;
    3134
    32   ClassDef(MExtractTime, 2)   // Arrival Time Extractor Base Class
     35  void SetNameTimeCam   ( const char *name=fgNameTimeCam.Data()) { fNameTimeCam = name; }
     36 
     37  ClassDef(MExtractTime, 3)   // Arrival Time Extractor Base Class
    3338};
    3439
Note: See TracChangeset for help on using the changeset viewer.