- Timestamp:
- 02/13/07 11:15:29 (18 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r8304 r8315 218 218 # Use this if you want to change the higain-vs. logain intercalibration 219 219 # ------------------------------------------------------------------------- 220 MJCalibration.HiLoCalibFile: mjobs/hilocalib_sp1.root220 MJCalibration.HiLoCalibFile: resources/hilocalib_sp1.rc 221 221 #MJCalibration.HiLoCalibration: yes 222 222 … … 334 334 # ------------------------------------------------------------------------- 335 335 #MJPedestalY2.PulsePosCheck: yes 336 #MJPedestalY2.ExtractWinLeft: 0.0 336 #MJPedestalY2.ExtractWinLeft: 0.0 337 337 #MJPedestalY2.ExtractWinRight: 0.0 338 338 -
trunk/MagicSoft/Mars/manalysis/MParameterCalc.cc
r8073 r8315 200 200 fData = f; 201 201 202 if (!f Data->IsValid())202 if (!f->HasValidRule()) 203 203 { 204 204 *fLog << err << "MParameterCalc::ReadEnv - ERROR: Inavlid rule from resource file." << endl; -
trunk/MagicSoft/Mars/mbase/MLog.h
r8103 r8315 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MLog.h,v 1.3 6 2006-10-17 14:11:36tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MLog.h,v 1.37 2007-02-13 11:06:53 tbretz Exp $ 3 3 \* ======================================================================== */ 4 4 #ifndef MARS_MLog … … 220 220 const Int_t l = (78-str.Length())/2-3; 221 221 str.Prepend("={ "); 222 str.Prepend('-', l );222 str.Prepend('-', l<1?1:l); 223 223 str.Append(" }="); 224 str.Append('-', l );224 str.Append('-', l<1?1:l); 225 225 } 226 226 if (str.Length()<78) -
trunk/MagicSoft/Mars/mdata/MDataPhrase.h
r8077 r8315 45 45 // MData 46 46 Bool_t IsValid() const; 47 Bool_t HasValidRule() const { return fFormula ? kTRUE : kFALSE; } 47 48 Double_t GetValue() const; 48 49 TString GetRule() const; -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r7430 r8315 33 33 34 34 #include <errno.h> 35 #include <fstream>36 35 37 36 #include <TSystem.h> … … 39 38 #include "structures_rfl.h" 40 39 40 #include "MLog.h" 41 #include "MLogManip.h" 42 43 #include "MZlib.h" 44 41 45 #include "MParList.h" 46 42 47 #include "MRflEvtData.h" 43 48 #include "MRflEvtHeader.h" … … 45 50 #include "MRflSinglePhoton.h" 46 51 47 #include "MLog.h"48 #include "MLogManip.h"49 52 50 53 ClassImp(MReadRflFile); … … 185 188 *fLog << inf << "FIXME: Call ReInit" << endl; 186 189 190 // FIXME: fRunHeader->Read(fIn); 191 // fRunHeader->Print(); 192 187 193 fRunHeader->SetRunNumber((int)rrunh.RunNumber); 188 194 *fLog << underline << "RunHeader:" << endl; 189 *fLog << " Run Number: " << rrunh.RunNumber << endl; 190 *fLog << " Date: " << rrunh.date << endl; 191 *fLog << " Corsika Ver.: " << rrunh.Corsika_version << endl; 192 195 *fLog << " Run Number: " << rrunh.RunNumber << endl; 196 *fLog << " Date: " << rrunh.date << endl; 197 *fLog << " Corsika Ver.: " << rrunh.Corsika_version << endl; 198 *fLog << " Energy Range: " << rrunh.ELowLim << "GeV to " << rrunh.EUppLim << "GeV" << endl; 199 *fLog << " Energy Slope: " << rrunh.SlopeSpec << endl; 200 *fLog << " Wobble Mode: " << rrunh.wobble_mode << endl; 201 *fLog << " Atm. Model: " << rrunh.atmospheric_model << endl; 202 // *fLog << " Theta Range: " << rrunh.ThetaMin << "deg to " << rrunh.ThetaMax << "deg" << endl; 203 // *fLog << " Phi Range: " << rrunh.PhiMin << "deg to " << rrunh.PhiMax << "deg" << endl; 204 // *fLog << " View Cone Rad: " << rrunh.ViewconeRadius << "deg" << endl; 193 205 break; 194 206 } … … 196 208 *fLog << err << "Error! found end of file... But no EOF flag. Exiting." << endl; 197 209 return kError; 198 } 210 }/* 211 else 212 { 213 *fLog << err << "ERROR - Reflector versions <= 0.5 are not supported!" << endl; 214 return kError; 215 }*/ 199 216 return kUndefined; 200 217 … … 299 316 // 300 317 fFileName = file->GetName(); 301 constTString expname = fFileName;318 TString expname = fFileName; 302 319 gSystem->ExpandPathName(expname); 303 320 … … 309 326 *fLog << inf << "Open file: '" << fFileName << "'" << endl; 310 327 311 fIn = new ifstream(expname);328 fIn = new MZlib(expname); 312 329 if (!*fIn) 313 330 { -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.h
r7430 r8315 10 10 #endif 11 11 12 class MZlib; 12 13 class TList; 13 14 class MRflEvtData; … … 28 29 }; 29 30 30 ifstream*fIn; // the inputfile31 TList 31 MZlib *fIn; // the inputfile 32 TList *fFileNames; // Array which stores the \0-terminated filenames 32 33 33 34 MRflEvtData *fEvtData; //! -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8304 r8315 1050 1050 plist.AddToList(&fBadPixels); 1051 1051 1052 //1053 // Read bad pixels from outside1054 //1055 if (!fBadPixelsFile.IsNull())1056 {1057 *fLog << inf << "Excluding: " << fBadPixelsFile << endl;1058 ifstream fin(fBadPixelsFile);1059 fBadPixels.AsciiRead(fin);1060 }1061 1062 1052 MGeomApply geomapl; 1063 1053 MBadPixelsMerge merge(&fBadPixels); … … 1094 1084 fExtractor->Print(); 1095 1085 *fLog << endl; 1086 } 1087 1088 // 1089 // Read bad pixels from outside 1090 // 1091 if (!fBadPixelsFile.IsNull()) 1092 { 1093 *fLog << inf << "Excluding: " << fBadPixelsFile << endl; 1094 ifstream fin(fBadPixelsFile); 1095 fBadPixels.AsciiRead(fin); 1096 1096 } 1097 1097 -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.h
r7744 r8315 52 52 53 53 public: 54 MPointingDevCalc() : fReport(0), fDeviation(0), fSkip( 6), fNumMinStars(8),54 MPointingDevCalc() : fReport(0), fDeviation(0), fSkip(7), fNumMinStars(8), 55 55 fNsbLevel(3), fNsbMin(30), fNsbMax(60), fMaxAbsDev(15), fMaxAge(1), fDx(-7), fDy(16) 56 56 { -
trunk/MagicSoft/Mars/mreflector/Makefile
r3927 r8315 19 19 # connect the include files defined in the config.mk file 20 20 # 21 INCLUDES = -I. -I../mbase -I../mgui -I../mgeom 21 INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../mhbase 22 22 23 23 SRCFILES = MRflEvtData.cc \ 24 24 MRflEvtHeader.cc \ 25 25 MRflRunHeader.cc \ 26 MRflSinglePhoton.cc 26 MRflSinglePhoton.cc \ 27 MHReflector.cc 27 28 28 29 ############################################################ -
trunk/MagicSoft/Mars/mreflector/ReflectorLinkDef.h
r2136 r8315 10 10 #pragma link C++ class MRflSinglePhoton+; 11 11 12 #pragma link C++ class MHReflector+; 13 12 14 #endif -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvtBasic.h
r7880 r8315 91 91 } 92 92 93 static TString GetEnergyStr(Float_t e) 94 { 95 if (e>=1000) 96 return Form("%.1fTeV", e/1000); 97 98 if (e>=10) 99 return Form("%dGeV", (Int_t)(e+.5)); 100 101 if (e>=1) 102 return Form("%.1fGeV", e); 103 104 return Form("%dMeV", (Int_t)(e*1000+.5)); 105 } 106 93 107 TString GetEnergyStr() const 94 108 { 95 if (fEnergy>1000) 96 return Form("%.1fTeV", fEnergy/1000); 97 98 if (fEnergy>10) 99 return Form("%dGeV", (Int_t)(fEnergy+.5)); 100 101 if (fEnergy>1) 102 return Form("%.1fGeV", fEnergy); 103 104 return Form("%dMeV", (Int_t)(fEnergy*1000+.5)); 109 return GetEnergyStr(fEnergy); 105 110 } 106 107 111 108 112 // Setter
Note:
See TracChangeset
for help on using the changeset viewer.