Changeset 4578
- Timestamp:
- 08/11/04 13:42:50 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4577 r4578 34 34 - added new commandline options to support different CC files 35 35 - changed help-output 36 - temporarily removed SQL option 36 37 37 38 * readraw.cc: … … 64 65 * msql/MSQLServer.[h,cc]: 65 66 - small changes to interface 67 68 * mimage/MHillasCalc.[h,cc]: 69 - changed names of TString data members 66 70 67 71 -
trunk/MagicSoft/Mars/merpp.cc
r4575 r4578 60 60 gLog << all << endl; 61 61 gLog << "Sorry the usage is:" << endl; 62 gLog << " merpp [-h] [-?] [-a] [-vn] [-cn] [-u, -f]" << endl; 63 gLog << " inputfile[.rep,[.raw],[.txt]] [outputfile[.root]]" << endl << endl; 64 gLog << " inputfile.raw: Magic DAQ binary file." << endl; 65 gLog << " inputfile.rep: Magic Central Control report file." << endl; 66 gLog << " inputfile.txt: Magic DC currents file." << endl; 67 gLog << " ouputfile.root: Merpped root file." << endl; 68 gLog << " -c# Compression level #=1..9 [default=2]" << endl; 69 gLog << " -v# Verbosity level # [default=2]" << endl; 70 gLog << " -u, --update Update file" << endl; 71 gLog << " -a, --no-colors Do not use Ansii color codes" << endl; 72 gLog << " -f Force overwrite of an existing file" << endl; 73 gLog << " -ff Force merpp to ignore broken events <raw data only>" << endl; 74 gLog << " --interleave=# Process only each i-th event [default=1] <raw data only>" << endl; 75 gLog << " --sql=mysql://user:password@url Insert run into database <raw data only>" << endl; 76 gLog << " --start=yyyy-mm-dd/hh:mm:ss.mmm Start event time for merpping report files" << endl; 77 gLog << " --stop=yyyy-mm-dd/hh:mm:ss.mmm Stop event time for merpping report files" << endl; 78 gLog << " --run=# Only data corresponding to this run number (from RUN-REPORT)" << endl; 79 gLog << " --runfile=# Check that CC file corresponds to this run (from .rep header)" << endl; 80 gLog << " --sumfile Check that CC file is a all night summary (from .rep header)" << endl; 81 gLog << " --allfiles Don't check file type for CC files <default>" << endl; 82 gLog << " --debug[=n] Enable root debugging (Default: gDebug=1)" << endl; 83 gLog << " -?, -h, --help This help" << endl << endl; 84 gLog << " REMARK: At the moment you can process a .raw _or_ a .rep file, only!" << endl << endl; 62 gLog << " merpp [-h] [-?] [-a] [-vn] [-cn] [-u, -f]" << endl; 63 gLog << " inputfile[.rep,[.raw],[.txt]] [outputfile[.root]]" << endl << endl; 64 gLog << " Arguments:" << endl; 65 gLog << " inputfile.raw: Magic DAQ binary file." << endl; 66 gLog << " inputfile.rep: Magic Central Control report file." << endl; 67 gLog << " inputfile.txt: Magic DC currents file." << endl; 68 gLog << " ouputfile.root: Merpped root file." << endl << endl; 69 gLog << " Options:" << endl; 70 gLog << " -c# Compression level #=1..9 [default=2]" << endl; 71 gLog << " -v# Verbosity level # [default=2]" << endl; 72 gLog << " -u, --update Update file" << endl; 73 gLog << " -a, --no-colors Do not use Ansii color codes" << endl; 74 gLog << " -f Force overwrite of an existing file" << endl; 75 gLog << " --debug[=n] Enable root debugging (Default: gDebug=1)" << endl; 76 gLog << " -?, -h, --help This help" << endl << endl; 77 gLog << " Raw Data Options:" << endl; 78 gLog << " -ff Force merpp to ignore broken events" << endl; 79 gLog << " --interleave=# Process only each i-th event [default=1]" << endl << endl; 80 // gLog << " --sql=mysql://user:password@url Insert run into database" << endl << endl; 81 gLog << " Report File Options:" << endl; 82 gLog << " --start=date/time Start event time" << endl; 83 gLog << " --stop=date/time Stop event time" << endl; 84 gLog << " --run=# Only data corresponding to this run number" << endl; 85 gLog << " (from RUN-REPORT)" << endl; 86 gLog << " --runfile=# Allow only run-control files" << endl; 87 gLog << " (from .rep header)" << endl; 88 gLog << " --sumfile Check for an all night summary file" << endl; 89 gLog << " (from .rep header)" << endl; 90 gLog << " --allfiles Don't check file type <default>" << endl << endl; 91 gLog << " REMARK: - At the moment you can process a .raw _or_ a .rep file, only!" << endl; 92 gLog << " - 'date/time' has the format 'yyyy-mm-dd/hh:mm:ss.mmm'" << endl << endl; 85 93 } 86 94 … … 134 142 135 143 const Int_t kRunNumber = arg.HasOption("--run=") ? arg.GetIntAndRemove("--run=") : -1; 136 const TString kSqlDataBase(arg.GetStringAndRemove("--sql="));144 // const TString kSqlDataBase(arg.GetStringAndRemove("--sql=")); 137 145 138 146 Int_t kRunFile = arg.HasOption("--runfile=") ? arg.GetIntAndRemove("--runfile=") : -1; … … 180 188 kNameout += ".root"; 181 189 182 if (!kSqlDataBase.IsNull() && !israw)183 gLog << warn << "WARNING - Option '--sql=' only valid for raw-files... ignored." << endl;190 // if (!kSqlDataBase.IsNull() && !israw) 191 // gLog << warn << "WARNING - Option '--sql=' only valid for raw-files... ignored." << endl; 184 192 185 193 // … … 326 334 if (filter) 327 335 tasks.AddToList(filter); 336 /* 328 337 if (israw && !kSqlDataBase.IsNull()) 329 338 { … … 331 340 ins->SetUpdate(); 332 341 tasks.AddToList(ins); 333 } 342 }*/ 334 343 tasks.AddToList(write); 335 344 -
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r3682 r4578 80 80 // 81 81 MHillasCalc::MHillasCalc(const char *name, const char *title) 82 : f HilName("MHillas"), fHilExtName("MHillasExt"),83 f ImgParName("MNewImagePar"), fConcName("MConcentration"),82 : fNameHillas("MHillas"), fNameHillasExt("MHillasExt"), 83 fNameNewImgPar("MNewImagePar"), fNameConc("MConcentration"), 84 84 fFlags(0xff), fErrors(5) 85 85 { … … 115 115 // depend on whether MHillas is an in- or output container 116 116 if (TestFlag(kCalcHillas)) 117 fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(f HilName));117 fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fNameHillas)); 118 118 else 119 119 { 120 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(f HilName), "MHillas");121 *fLog << err << f HilName<< " [MHillas] not found... aborting." << endl;120 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fNameHillas), "MHillas"); 121 *fLog << err << fNameHillas << " [MHillas] not found... aborting." << endl; 122 122 } 123 123 if (!fHillas) … … 127 127 if (TestFlag(kCalcHillasExt)) 128 128 { 129 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(f HilExtName));129 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fNameHillasExt)); 130 130 if (!fHillasExt) 131 131 return kFALSE; … … 135 135 if (TestFlag(kCalcNewImagePar)) 136 136 { 137 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(f ImgParName));137 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fNameNewImgPar)); 138 138 if (!fNewImgPar) 139 139 return kFALSE; … … 143 143 if (TestFlag(kCalcConc)) 144 144 { 145 fConc = (MConcentration*)pList->FindCreateObj("MConcentration", f ConcName);145 fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fNameConc); 146 146 if (!fConc) 147 147 return kFALSE; 148 148 } 149 149 150 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());150 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize()); 151 151 152 152 return kTRUE; -
trunk/MagicSoft/Mars/mimage/MHillasCalc.h
r3526 r4578 29 29 const MCerPhotEvt *fCerPhotEvt; //! Cerenkov Photon Event used for calculation 30 30 31 MHillas *fHillas;//! output container to store result32 MHillasExt *fHillasExt;//! output container to store result33 MNewImagePar *fNewImgPar;//! output container to store result34 MConcentration *fConc;//! output container to store result31 MHillas *fHillas; //! output container to store result 32 MHillasExt *fHillasExt; //! output container to store result 33 MNewImagePar *fNewImgPar; //! output container to store result 34 MConcentration *fConc; //! output container to store result 35 35 36 TString fHilName;// name of the 'MHillas' container37 TString fHilExtName;// name of the 'MHillasExt' container38 TString fImgParName;// name of the 'MNewImagePar' container39 TString fConcName;// name of the 'MConcentration' container36 TString fNameHillas; // name of the 'MHillas' container 37 TString fNameHillasExt; // name of the 'MHillasExt' container 38 TString fNameNewImgPar; // name of the 'MNewImagePar' container 39 TString fNameConc; // name of the 'MConcentration' container 40 40 41 Int_t fFlags;// Flags defining the behaviour of MHillasCalc41 Int_t fFlags; // Flags defining the behaviour of MHillasCalc 42 42 43 TArrayL fErrors;//! Error counter. Do we have to change to Double?43 TArrayL fErrors; //! Error counter. Do we have to change to Double? 44 44 45 void PrintSkipped(int i, const char *str) const;45 void PrintSkipped(int i, const char *str) const; 46 46 47 47 Int_t PreProcess(MParList *pList); … … 60 60 MHillasCalc(const char *name=NULL, const char *title=NULL); 61 61 62 void SetNameHillas(const char *name) { fHilName= name; }63 void SetNameHillasExt(const char *name) { fHilExtName= name; }64 void SetNameNewImgPar(const char *name) { fImgParName= name; }65 void SetNameConc(const char *name) { fConcName = name;}62 void SetNameHillas(const char *name) { fNameHillas = name; } 63 void SetNameHillasExt(const char *name) { fNameHillasExt = name; } 64 void SetNameNewImgPar(const char *name) { fNameNewImgPar = name; } 65 void SetNameConc(const char *name) { fNameConc = name; } 66 66 67 void SetFlags(Int_t f) { fFlags = f; }68 void Enable(Int_t f) { fFlags |= f; }69 void Disable(Int_t f) { fFlags &= ~f; }67 void SetFlags(Int_t f) { fFlags = f; } 68 void Enable(Int_t f) { fFlags |= f; } 69 void Disable(Int_t f) { fFlags &= ~f; } 70 70 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; } 71 71
Note:
See TracChangeset
for help on using the changeset viewer.