Changeset 7061 for trunk/MagicSoft/Mars
- Timestamp:
- 05/19/05 11:55:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7060 r7061 26 26 - simplified a really cryptical use of the ?:-operator when 27 27 the fLoGainFirst is calculated 28 - fixed a bug introduced in the calculation of the derivatives 29 30 * mmain/MEventDisplay.cc: 31 - removed MC trigger display 28 32 29 33 -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r6856 r7061 83 83 #include "MMcCalibrationUpdate.h" // MMcCalibrationUpdate 84 84 #include "MCalibrateData.h" // MCalibrateData 85 #include "MMcTriggerLvl2Calc.h" // MMcTriggerLvl2Calc85 //#include "MMcTriggerLvl2Calc.h" // MMcTriggerLvl2Calc 86 86 87 87 // … … 100 100 #include "MPedPhotCam.h" // MPedPhotCam 101 101 #include "MCalibrationChargeCam.h" // MCalibrationChargeCam 102 #include "MMcTriggerLvl2.h" // MMcTriggerLvl2102 //#include "MMcTriggerLvl2.h" // MMcTriggerLvl2 103 103 104 104 using namespace std; … … 220 220 MHEvent *evt07 = new MHEvent(MHEvent::kEvtIdxMax); 221 221 MHEvent *evt08 = new MHEvent(MHEvent::kEvtArrTime); 222 MHEvent *evt09 = new MHEvent(MHEvent::kEvtTrigPix);222 //MHEvent *evt09 = new MHEvent(MHEvent::kEvtTrigPix); 223 223 MHEvent *evt10 = new MHEvent(MHEvent::kEvtIslandIndex); 224 224 … … 231 231 evt07->SetName("Max Slice Idx"); 232 232 evt08->SetName("Arrival Time"); 233 evt09->SetName("Trigger");233 //evt09->SetName("Trigger"); 234 234 evt10->SetName("Islands"); 235 235 … … 243 243 plist->AddToList(evt07); 244 244 plist->AddToList(evt08); 245 plist->AddToList(evt09);245 //plist->AddToList(evt09); 246 246 plist->AddToList(evt10); 247 247 … … 262 262 MFillH *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b"); 263 263 MHillasCalc *hcalc = new MHillasCalc; 264 MMcTriggerLvl2Calc *trcal = new MMcTriggerLvl2Calc;265 MFillH *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09");264 //MMcTriggerLvl2Calc *trcal = new MMcTriggerLvl2Calc; 265 //MFillH *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09"); 266 266 MFillH *fill10 = new MFillH(evt10, "MSignalCam", "MFillH10"); 267 267 … … 296 296 // MC 297 297 mcupd->SetFilter(f1); 298 trcal->SetFilter(f1);298 //trcal->SetFilter(f1); 299 299 300 300 // TaskList … … 327 327 tlist->AddToList(fill08); 328 328 329 tlist->AddToList(trcal);330 tlist->AddToList(fill09);329 //tlist->AddToList(trcal); 330 //tlist->AddToList(fill09); 331 331 } 332 332 if (type==1) -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r7057 r7061 369 369 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) 370 370 { 371 372 371 Int_t range = fHiGainLast - fHiGainFirst + 1; 373 372 const Byte_t *end = first + range; … … 442 441 const Float_t pp = fHiGainSecondDeriv[i-1] + 4.; 443 442 fHiGainSecondDeriv[i] = -1.0/pp; 444 fHiGainFirstDeriv [i] = 2*(fHiGainSignal[i+1] - fHiGainSignal[i]);443 fHiGainFirstDeriv [i] = fHiGainSignal[i+1] - 2*fHiGainSignal[i] + fHiGainSignal[i-1]; 445 444 fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp; 446 445 } … … 724 723 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) 725 724 { 726 727 725 Int_t range = fLoGainLast - fLoGainFirst + 1; 728 726 const Byte_t *end = first + range; … … 768 766 const Float_t pp = fLoGainSecondDeriv[i-1] + 4.; 769 767 fLoGainSecondDeriv[i] = -1.0/pp; 770 fLoGainFirstDeriv [i] = 2*(fLoGainSignal[i+1] - fLoGainSignal[i]);768 fLoGainFirstDeriv [i] = fLoGainSignal[i+1] - 2*fLoGainSignal[i] + fLoGainSignal[i-1]; 771 769 fLoGainFirstDeriv [i] = (6.0*fLoGainFirstDeriv[i]-fLoGainFirstDeriv[i-1])/pp; 772 770 }
Note:
See TracChangeset
for help on using the changeset viewer.