Changeset 8439 for trunk/MagicSoft
- Timestamp:
- 04/24/07 13:24:05 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r8415 r8439 469 469 #MMoviePrepare.FirstSlice: 0 470 470 #MMoviePrepare.LastSlice: 15 471 #MMoviePrepare.TargetLength: 5472 #MMoviePrepare.NumEvents: 500473 #MMoviePrepare.Threshold: 3474 #MMoviePrepare.Filename: filename.mpg475 471 #MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms 476 472 #MImgCleanStd.CleanLevel1: 8.0 … … 478 474 #MFEvtNumber.FileName: ganymed00001218.root 479 475 #MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5 476 #MMovieWrite.TargetLength: 5 477 #MMovieWrite.NumEvents: 500 478 #MMovieWrite.Threshold: 3 479 #MMovieWrite.FileName: filename.mpg 480 480 481 481 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/callisto_MarApr05.rc
r8415 r8439 465 465 #MMoviePrepare.FirstSlice: 0 466 466 #MMoviePrepare.LastSlice: 15 467 #MMoviePrepare.TargetLength: 5468 #MMoviePrepare.NumEvents: 500469 #MMoviePrepare.Threshold: 3470 #MMoviePrepare.Filename: filename.mpg471 467 #MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms 472 468 #MImgCleanStd.CleanLevel1: 8.0 … … 474 470 #MFEvtNumber.FileName: ganymed00001218.root 475 471 #MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5 472 #MMovieWrite.TargetLength: 5 473 #MMovieWrite.NumEvents: 500 474 #MMovieWrite.Threshold: 3 475 #MMovieWrite.FileName: filename.mpg 476 476 477 477 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/callisto_mux.rc
r8415 r8439 470 470 #MMoviePrepare.FirstSlice: 10 471 471 #MMoviePrepare.LastSlice: 50 472 #MMoviePrepare.TargetLength: 5473 #MMoviePrepare.NumEvents: 500474 #MMoviePrepare.Threshold: 3475 #MMoviePrepare.Filename: filename.mpg476 472 #MovieFilter.Condition: MMovieData.fMax>5*MMovieData.fMedianPedestalRms 477 473 #MImgCleanStd.CleanLevel1: 8.0 … … 479 475 #MFEvtNumber.FileName: ganymed00001218.root 480 476 #MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5 477 #MMovieWrite.TargetLength: 5 478 #MMovieWrite.NumEvents: 500 479 #MMovieWrite.Threshold: 3 480 #MMovieWrite.FileName: filename.mpg 481 481 482 482 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MJCalib.h
r8369 r8439 11 11 { 12 12 public: 13 enum DataType_t14 {15 kIsUseRootData,16 kIsUseRawData,17 kIsUseMC18 };19 13 20 14 private: 21 15 22 16 static const Int_t fgCheckedPixId; //! Default for fCheckedPixId 23 24 Byte_t fDataFlag; // Bit-field to store the data type25 17 26 18 enum Storage_t // Possible devices for calibration … … 29 21 kHistsStorage 30 22 }; // Possible flags for the storage of results 31 23 32 24 Byte_t fStorage; // Bit-field for chosen storage type 33 25 … … 46 38 47 39 Bool_t fIsPulsePosCheck; // Check pulse position? 48 //Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains 49 40 50 41 Bool_t CheckEnvLocal(); 51 Byte_t GetDataFlag() { return fDataFlag; }52 42 53 43 Bool_t IsNoStorage () const { return TESTBIT(fStorage,kNoStorage); } 54 44 Bool_t IsHistsStorage () const { return TESTBIT(fStorage,kHistsStorage); } 55 45 56 46 public: 57 58 47 MJCalib(); 59 60 Bool_t IsUseRawData() const { return fDataFlag==kIsUseRawData; }61 Bool_t IsUseRootData() const { return fDataFlag==kIsUseRootData; }62 Bool_t IsUseMC() const { return fDataFlag==kIsUseMC; }63 48 64 49 Bool_t IsUseBlindPixel() const { return TESTBIT(fDevices,kUseBlindPixel); } 65 50 Bool_t IsUsePINDiode () const { return TESTBIT(fDevices,kUsePINDiode); } 66 51 67 void SetUseRawData () { fDataFlag=kIsUseRawData; }68 void SetUseRootData() { fDataFlag=kIsUseRootData; }69 void SetUseMC () { fDataFlag=kIsUseMC; }70 71 void SetDataType(DataType_t type) { fDataFlag=type; }72 73 52 void SetCheckedPixId ( const Int_t i=fgCheckedPixId ) { fCheckedPixId = i; } 74 53 … … 76 55 void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); } 77 56 78 //void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; }79 57 void SetPixelCheck ( const Bool_t b=kTRUE ) { fIsPixelCheck = b; } 80 58 void SetPulsePosCheck ( const Bool_t b=kTRUE ) { fIsPulsePosCheck = b; } -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8369 r8439 768 768 fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun; 769 769 770 if ( IsUseMC() && fExtractType==kUseData)770 if (fSequence.IsMonteCarlo() && fExtractType==kUseData) 771 771 { 772 772 // The reason is, that the standard data files contains empty … … 870 870 Float_t rmspulsetime = 1.0; 871 871 872 if (! IsUseMC())872 if (!fSequence.IsMonteCarlo()) 873 873 { 874 874 if (fIsPixelCheck) … … 899 899 } 900 900 901 *fLog << all << "Mean pulse time (" << ( IsUseMC()?"MC":"cosmics") << "): ";901 *fLog << all << "Mean pulse time (" << (fSequence.IsMonteCarlo()?"MC":"cosmics") << "): "; 902 902 *fLog << meanpulsetime << "+-" << rmspulsetime << endl; 903 903 … … 1033 1033 { 1034 1034 const Int_t n0 = IsUseData() 1035 ? fSequence.SetupDatRuns(iter, 0, IsUseRawData())1036 : fSequence.SetupPedRuns(iter, 0, IsUseRawData());1035 ? fSequence.SetupDatRuns(iter, 0, !fSequence.IsMonteCarlo()) 1036 : fSequence.SetupPedRuns(iter, 0, !fSequence.IsMonteCarlo()); 1037 1037 1038 1038 if (n0<=0) … … 1040 1040 } 1041 1041 1042 if ( IsUseRawData())1042 if (!fSequence.IsMonteCarlo()) 1043 1043 { 1044 1044 rawread.AddFiles(iter); … … 1132 1132 } 1133 1133 1134 //MFillH fillC("MHPedestalCor", "MPedestalSubtractedEvt", "FillAcor"); 1135 //fillC.SetNameTab("Acor"); 1136 //if (fExtractor && fExtractionType==kWithExtractorRndm) 1137 // tlist.AddToList(&fillC); 1138 1134 1139 // ---------------------------------------------------------------------- 1135 1140 // Now we make sure, that in all cases the ranges are setup correctly … … 1143 1148 ftp2.RequirePedestal(); 1144 1149 1145 if (! IsUseMC() && (!fExtractor || !fExtractor->HasLoGain()))1150 if (!fSequence.IsMonteCarlo() && (!fExtractor || !fExtractor->HasLoGain())) 1146 1151 { 1147 1152 taskenv.SetFilter(&ftp2); … … 1224 1229 } 1225 1230 1231 1232 /* 1233 MHCamEvent evt0(0, "Ped", "Pedestal;;P [cnts/sl]"); 1234 MHCamEvent evt1(2, "PedRms", "Pedestal RMS;;\\sigma_{p} [cnts/sl]"); 1235 1236 MFillH fill0(&evt0, &fPedestalCamOut, "FillPedestal"); 1237 MFillH fill1(&evt1, &fPedestalCamOut, "FillPedRms"); 1238 1239 tlist.AddToList(&fill0); 1240 tlist.AddToList(&fill1); 1241 */ 1242 1226 1243 // 1227 1244 // Execute the eventloop -
trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc
r8438 r8439 839 839 // MMovieWrite.NumEvents: 500 840 840 // MMovieWrite.Threshold: 2 <rms> 841 // MMovieWrite.File name: movie.mpg841 // MMovieWrite.FileName: movie.mpg 842 842 // 843 843 Int_t MMovieWrite::ReadEnv(const TEnv &env, TString prefix, Bool_t print) … … 859 859 rc = kTRUE; 860 860 } 861 if (IsEnvDefined(env, prefix, "File name", print))862 { 863 fFilename = GetEnvValue(env, prefix, "File name", fFilename);861 if (IsEnvDefined(env, prefix, "FileName", print)) 862 { 863 fFilename = GetEnvValue(env, prefix, "FileName", fFilename); 864 864 rc = kTRUE; 865 865 }
Note:
See TracChangeset
for help on using the changeset viewer.