Changeset 7719
- Timestamp:
- 05/19/06 13:57:47 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7718 r7719 19 19 -*-*- END OF LINE -*-*- 20 20 21 2006/05/19 Thomas Bretz 22 23 * mbase/MMath.h: 24 - added default to second argument of GaussProb 25 26 * mcamera/MCameraTD.[h,cc], mcamera/MCameraTH.[h,cc]: 27 - added a data member fIsValid giving the status of the arrays 28 in case the CC reports contained nonsense (mainly for files 29 before summer 2005) 30 - increased class version by 1 31 32 * mhflux/MHAlpha.h: 33 - made SetOffData virtual 34 35 * mreport/MReport.cc: 36 - small changes to some comments 37 38 * mreport/MReportCC.[h,cc]: 39 - better handling of problems with the TH and TD part of the 40 CC-REPORT for files older than 200507190 and 200412210 41 respectively 42 43 * mreport/MReportFileReadCC.cc: 44 - always output the file format version 45 46 47 21 48 2006/05/18 Thomas Bretz 22 49 … … 27 54 - made fHillas data member protected 28 55 - increased size of fMap 29 - made SetOffData virtual30 56 31 57 * mhflux/MHThetaSq.[h,cc]: -
trunk/MagicSoft/Mars/NEWS
r7706 r7719 3 3 *** Version <cvs> 4 4 5 - merpp: better handling of problems with the TH and TD part of the 6 CC-REPORT for files older than 200507190 and 200412210 7 respectively 5 8 6 9 -
trunk/MagicSoft/Mars/mbase/MMath.h
r7409 r7719 17 17 inline Double_t HorToRad() { return 15/TMath::RadToDeg(); } 18 18 19 Double_t GaussProb(Double_t x, Double_t sigma , Double_t mean=0);19 Double_t GaussProb(Double_t x, Double_t sigma=1, Double_t mean=0); 20 20 21 21 Double_t Significance(Double_t s, Double_t b); -
trunk/MagicSoft/Mars/mcamera/MCameraTD.cc
r7446 r7719 19 19 ! Author(s): Florian Goebel 11/2005 <mailto:fgoebel@mppmu.mpg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 521 ! Copyright: MAGIC Software Development, 2000-2006 22 22 ! 23 23 ! … … 27 27 // 28 28 // MCameraTD 29 // 30 // Class Version 2: 31 // ---------------- 32 // + Bool_t fIsValid; // fTD contains valid information 29 33 // 30 34 ///////////////////////////////////////////////////////////////////////////// … … 45 49 // 46 50 MCameraTD::MCameraTD(Int_t size, const char *name, const char *title) 47 : fTD(size) 51 : fTD(size), fIsValid(kTRUE) 48 52 { 49 53 fName = name ? name : "MCameraTD"; -
trunk/MagicSoft/Mars/mcamera/MCameraTD.h
r7489 r7719 17 17 friend class MReportCC; 18 18 private: 19 TArrayC fTD; // [au] discriminator delays 19 TArrayC fTD; // [au] discriminator delays 20 Bool_t fIsValid; // fTD contains valid information 20 21 21 22 public: … … 28 29 29 30 void Print(Option_t *opt=NULL) const; 31 32 void Invalidate() { fTD.Reset(); fIsValid=kFALSE; } 33 34 void SetValid(Bool_t v=kTRUE) { fIsValid=v; } 35 Bool_t IsValid() const { return fIsValid; } 30 36 31 37 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const … … 41 47 } 42 48 43 ClassDef(MCameraTD, 1) // Storage Container for Discriminator Delays49 ClassDef(MCameraTD, 2) // Storage Container for Discriminator Delays 44 50 }; 45 51 -
trunk/MagicSoft/Mars/mcamera/MCameraTH.cc
r7446 r7719 19 19 ! Author(s): Florian Goebel 11/2005 <mailto:fgoebel@mppmu.mpg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 521 ! Copyright: MAGIC Software Development, 2000-2006 22 22 ! 23 23 ! … … 26 26 ///////////////////////////////////////////////////////////////////////////// 27 27 // 28 // MCameraTH (PRELIMINARY) 28 // MCameraTH 29 // 30 // Class Version 2: 31 // ---------------- 32 // + Bool_t fIsValid; // fTH contains valid information 29 33 // 30 34 ///////////////////////////////////////////////////////////////////////////// … … 45 49 // 46 50 MCameraTH::MCameraTH(Int_t size, const char *name, const char *title) 47 : fTH(size) 51 : fTH(size), fIsValid(kTRUE) 48 52 { 49 53 fName = name ? name : "MCameraTH"; -
trunk/MagicSoft/Mars/mcamera/MCameraTH.h
r7489 r7719 17 17 friend class MReportCC; 18 18 private: 19 TArrayC fTH; // [au] discriminator thresholds 19 TArrayC fTH; // [au] discriminator thresholds 20 Bool_t fIsValid; // fTH contains valid information 20 21 21 22 public: … … 28 29 29 30 void Print(Option_t *opt=NULL) const; 31 32 void Invalidate() { fTH.Reset(); fIsValid=kFALSE; } 33 34 void SetValid(Bool_t v=kTRUE) { fIsValid=v; } 35 Bool_t IsValid() const { return fIsValid; } 30 36 31 37 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const … … 41 47 } 42 48 43 ClassDef(MCameraTH, 1) // Storage Container for the discriminator thresholds49 ClassDef(MCameraTH, 2) // Storage Container for the discriminator thresholds 44 50 }; 45 51 -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r7712 r7719 102 102 // Setter 103 103 void SetNameParameter(const char *name) { fNameParameter=name; } 104 v oid SetOffData(const MHAlpha &h)104 virtual void SetOffData(const MHAlpha &h) 105 105 { 106 106 fOffData = &h.fHist; -
trunk/MagicSoft/Mars/mreport/MReport.cc
r7639 r7719 36 36 // Old Version | MjdMin | MjdMax | New Version 37 37 // -------------+---------+---------+------------- 38 // 200504130 | 53548.0 | 53567.0 | 200506300 39 // 200503170 | 53446.5 | 53447.5 | 200502240 40 // 38 // see MReport::Interprete() 41 39 // 42 40 // Be carefull: The class name of all classes derived from this class -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r7487 r7719 136 136 // Interprete the TH (discriminator thresholds) part of the report 137 137 // 138 Bool_t MReportCC::InterpreteTH(TString &str )138 Bool_t MReportCC::InterpreteTH(TString &str, Int_t ver) 139 139 { 140 140 if (!CheckTag(str, "TH ")) 141 141 return kFALSE; 142 143 // Skip the TH (discriminator thresholds) part of the report (for old 144 // CC files with wrong or nonsense number of TH-Bytes) 145 if (ver<200507190) 146 { 147 Ssiz_t pr = str.First(' '); 148 if (pr<0) 149 { 150 *fLog << warn << "WARNING - No TH information found at all." << endl; 151 return kFALSE; 152 } 153 if (pr!=1154) 154 { 155 fTD->Invalidate(); 156 157 str.Remove(0, pr); 158 str=str.Strip(TString::kLeading); 159 return kTRUE; 160 } 161 } 142 162 143 163 const char *pos = str.Data(); … … 158 178 } 159 179 180 fTH->SetValid(); 181 160 182 str.Remove(0, end-str.Data()); // Remove TH 161 183 str=str.Strip(TString::kLeading); … … 170 192 { 171 193 if (!CheckTag(str, "TD ")) 172 return kFALSE; 173 194 return kTRUE; 195 196 // Skip the TD (discriminator delays) part of the report (for old 197 // CC files with wrong or nonsense number of TD-Bytes) 198 if (ver<200412210) 199 { 200 Ssiz_t pr = str.First(' '); 201 if (pr<0) 202 { 203 *fLog << warn << "WARNING - No TD information found at all." << endl; 204 return kFALSE; 205 } 206 if (pr!=1000) 207 { 208 fTD->Invalidate(); 209 210 str.Remove(0, pr); 211 str=str.Strip(TString::kLeading); 212 return kTRUE; 213 } 214 } 215 216 // Older files have less bytes (pixels) stored 174 217 const Int_t numpix = ver<200510250 ? 500 : 577; 175 218 … … 191 234 } 192 235 236 fTD->SetValid(); 237 193 238 str.Remove(0, end-str.Data()); // Remove TD 194 239 str=str.Strip(TString::kLeading); 240 195 241 return kTRUE; 196 242 } … … 238 284 return kCONTINUE; 239 285 240 if (!InterpreteTH(str)) 241 return kCONTINUE; 242 243 if (!InterpreteTD(str, ver)) 244 return kCONTINUE; 286 if (str.BeginsWith("RECEIVERS-COM-ERROR")) 287 { 288 fTD->Invalidate(); 289 fTH->Invalidate(); 290 str.Remove(0, 19); 291 } 292 else 293 { 294 if (!InterpreteTH(str, ver)) 295 return kCONTINUE; 296 297 if (!InterpreteTD(str, ver)) 298 return kCONTINUE; 299 } 245 300 246 301 if (ver>=200510250) -
trunk/MagicSoft/Mars/mreport/MReportCC.h
r7430 r7719 30 30 31 31 Bool_t InterpreteCC(TString &str, Int_t ver); 32 Bool_t InterpreteTH(TString &str );32 Bool_t InterpreteTH(TString &str, Int_t ver); 33 33 Bool_t InterpreteTD(TString &str, Int_t ver); 34 34 Bool_t InterpreteRecTemp(TString &str); -
trunk/MagicSoft/Mars/mreport/MReportFileReadCC.cc
r4732 r7719 127 127 const Int_t ver = atoi(str.Data()); 128 128 129 *fLog << dbg<< "Report File version: <" << ver << ">" << endl;129 *fLog << all << "Report File version: <" << ver << ">" << endl; 130 130 131 131 SetVersion(ver);
Note:
See TracChangeset
for help on using the changeset viewer.