Changeset 8361 for trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
- Timestamp:
- 03/04/07 12:01:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8347 r8361 95 95 #include "MPedestalCam.h" 96 96 #include "MPedestalPix.h" 97 #include "MPedestalSubtract.h" 97 98 98 99 ClassImp(MJPedestal); … … 211 212 TString title = fDisplay->GetTitle(); 212 213 title += "-- Pedestal "; 213 title += fSequence.Get Name();214 title += fSequence.GetFileName(); 214 215 title += " --"; 215 216 fDisplay->SetTitle(title); … … 914 915 915 916 // 917 // This is for data without lo-gains 918 // 919 const Bool_t haslo = ext->HasLoGain(); 920 921 // 916 922 // Get the ranges for the new extractor setting. The window 917 923 // size is always rounded to the next higher integer. … … 940 946 } 941 947 942 if ( poslo+wslogain+fExtractWinRight > lo1-0.5)948 if (haslo && poslo+wslogain+fExtractWinRight > lo1-0.5) 943 949 { 944 950 *fLog << err; … … 959 965 } 960 966 961 if ( poslo2-fExtractWinLeft < lo0+0.5)967 if (haslo && poslo2-fExtractWinLeft < lo0+0.5) 962 968 { 963 969 *fLog << warn; … … 1064 1070 hpedcam.SetRenorm(kTRUE); 1065 1071 1066 MFillH fillpul("MHCalibrationPulseTimeCam", "MPedestalSubtractedEvt", "FillPulseTime"); 1072 // To have it in the parlist! 1073 MHCalibrationPulseTimeCam pulcam; 1074 plist.AddToList(&pulcam); 1075 MFillH fillpul(&pulcam, "MPedestalSubtractedEvt", "FillPulseTime"); 1067 1076 fillpul.SetBit(MFillH::kDoNotDisplay); 1068 1077 … … 1103 1112 MFTriggerPattern fcalib("CalibFilter"); 1104 1113 fcalib.SetDefault(kFALSE); 1105 fcalib. RequireCalibration();1106 fcalib. SetInverted();1114 fcalib.DenyCalibration(); 1115 fcalib.DenyPedestal(); 1107 1116 1108 1117 tlist.AddToList(&decode); … … 1127 1136 // ---------------------------------------------------------------------- 1128 1137 MTaskEnv taskenv("ExtractPedestal"); 1138 1139 //------------------------------ 1140 MFTriggerPattern ftp2("PedestalFilter"); 1141 ftp2.SetDefault(kTRUE); 1142 ftp2.DenyCalibration(); 1143 // ftp2.RequirePedestal(); 1144 1145 if (!IsUseMC()) 1146 { 1147 taskenv.SetFilter(&ftp2); 1148 tlist.AddToList(&ftp2); 1149 } 1150 //------------------------------ 1151 1129 1152 switch (fExtractType) 1130 1153 { … … 1166 1189 pedlogain.SetPedestalsOut(&fPedestalCamOut); 1167 1190 1168 1191 // kFundamental 1169 1192 if (fExtractor) 1170 1193 { … … 1181 1204 else 1182 1205 { 1183 // The window size of the extractor is not yet initialized, 1184 // so we have to stick to the extraction range 1185 const Int_t f = fExtractor->GetHiGainFirst(); 1186 const Int_t l = fExtractor->GetHiGainLast(); 1187 const Int_t w = (l-f+1)&~1; 1188 1189 // Setup to use the hi-gain extraction window in the lo-gain 1190 // range (the start of the lo-gain range is added automatically 1191 // by MPedCalcFromLoGain) 1192 pedcalc.SetExtractWindow(f, w); 1193 pedlogain.SetExtractWindow(f, w); 1206 pedcalc.SetRangeFromExtractor(*fExtractor); 1207 pedlogain.SetRangeFromExtractor(*fExtractor); 1194 1208 } 1195 1209
Note:
See TracChangeset
for help on using the changeset viewer.