Changeset 5427
- Timestamp:
- 11/18/04 11:11:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5425 r5427 30 30 - set version number by one higher because of new data member 31 31 "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" 32 40 33 41 -
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r5307 r5427 70 70 using namespace std; 71 71 72 const TString MExtractTime::fgNameTimeCam = "MArrivalTimeCam"; 72 73 // -------------------------------------------------------------------------- 73 74 // … … 78 79 // - all variables to 0 79 80 // - fSaturationLimit to fgSaturationLimit 81 // - fNameTimeCam to fgNameTimeCam 80 82 // 81 83 // Call: … … 86 88 { 87 89 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(); 91 94 } 92 95 … … 122 125 123 126 124 fArrTime = (MArrivalTimeCam*)pList->FindCreateObj( AddSerialNumber("MArrivalTimeCam"));127 fArrTime = (MArrivalTimeCam*)pList->FindCreateObj("MArrivalTimeCam",AddSerialNumber(fNameTimeCam)); 125 128 if (!fArrTime) 126 return kFALSE; 127 129 { 130 *fLog << err << fNameTimeCam.Data() << " could not be found nor created... aborting" << endl; 131 return kFALSE; 132 } 128 133 129 134 fPedestals = (MPedestalCam*)pList->FindObject( AddSerialNumber(fNamePedestalCam), "MPedestalCam"); -
trunk/MagicSoft/Mars/msignal/MExtractTime.h
r5328 r5427 13 13 protected: 14 14 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 16 19 17 20 virtual void FindTimeHiGain(Byte_t *firstused, Float_t &time, Float_t &dtime, … … 30 33 void Print(Option_t *o) const; 31 34 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 33 38 }; 34 39
Note:
See TracChangeset
for help on using the changeset viewer.