Changeset 3360
- Timestamp:
- 02/29/04 04:21:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3359 r3360 7 7 8 8 * mjobs/MJPedestal.cc 9 * mjobs/MJCalibration.cc 10 * macros/calibration.C 9 11 10 12 - put in call to MHCamera::Projection the name of teh calling -
trunk/MagicSoft/Mars/macros/calibration.C
r3323 r3360 28 28 { 29 29 30 const char *inpath = "/remote/home/pc2/operator/Crab20040214/"; 30 // const char *inpath = "/remote/home/pc2/operator/NewCalBoxTest/"; 31 // const char *inpath = "/remote/home/pc2/operator/Crab20040214/"; 32 const char *inpath = "./"; 31 33 //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_02_10/"; 32 34 //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_01_26/"; … … 36 38 MRunIter cruns; 37 39 38 pruns.AddRuns(15487,15494,inpath); 39 cruns.AddRuns(15495,15508,inpath); 40 pruns.AddRun(14400,inpath); 41 cruns.AddRuns(14401,14409,inpath); 42 // pruns.AddRuns(15487,15494,inpath); 43 // cruns.AddRuns(15495,15508,inpath); 44 // pruns.AddRun(19816,inpath); // CalboxTest 45 // cruns.AddRun(19820,inpath); // 3blue 46 // cruns.AddRun(19820,inpath); // 1blue 40 47 41 48 gStyle->SetOptStat(1111); … … 43 50 44 51 MStatusDisplay *display = new MStatusDisplay; 45 display->SetUpdateTime( 500);52 display->SetUpdateTime(3000); 46 53 display->Resize(850,700); 47 54 … … 95 102 MHCalibrationChargePINDiode histpin; 96 103 MHCalibrationChargeBlindPix histblind; 104 // histblind.SetSinglePheCut(80); 97 105 // 98 106 // As long, as we don't have digital modules, … … 110 118 plist.AddToList(&histtime); 111 119 plist.AddToList(&histcharge); 112 plist.AddToList(&histpin);120 // plist.AddToList(&histpin); 113 121 plist.AddToList(&histblind); 114 122 … … 120 128 MExtractPINDiode pincalc; 121 129 MExtractBlindPixel blindcalc; 130 // blindcalc.SetRange(11,16); 131 122 132 MArrivalTimeCalc2 timecalc; 123 133 MCalibrationChargeCalc calcalc; … … 125 135 126 136 MFillH filltime( "MHCalibrationRelTimeCam" , "MArrivalTimeCam"); 127 137 // MFillH fillpin ("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode"); 128 138 MFillH fillblind("MHCalibrationChargeBlindPix", "MExtractedSignalBlindPixel"); 129 139 MFillH fillcam ("MHCalibrationChargeCam" , "MExtractedSignalCam"); … … 139 149 // 140 150 MFCosmics cosmics; 151 cosmics.SetMaxEmptyPixels(0.4); 141 152 MContinue cont(&cosmics); 142 153 … … 145 156 tlist.AddToList(&sigcalc2); 146 157 tlist.AddToList(&blindcalc); 147 tlist.AddToList(&pincalc);158 // tlist.AddToList(&pincalc); 148 159 // 149 160 // In case, you want to skip the cosmics rejection, … … 189 200 // 190 201 histblind.DrawClone("all"); 191 histcharge[5].DrawClone("time"); 202 histcharge[5].DrawClone("all"); 203 histcharge(5).DrawClone("all"); 192 204 histtime[5].DrawClone("fourierevents"); 193 205 … … 469 481 c.cd(i+2*j); 470 482 gPad->SetBorderMode(0); 471 TH1D *obj2 = (TH1D*)obj1->Projection( );483 TH1D *obj2 = (TH1D*)obj1->Projection(obj1.GetName()); 472 484 473 485 // obj2->Sumw2(); … … 558 570 } 559 571 572 // Just to get the right (maximum) binning 573 TH1D *half[2]; 574 half[0] = obj1->Projection("Sector 6-1-2"); 575 half[1] = obj1->Projection("Sector 3-4-5"); 576 577 half[0]->Reset(); 578 half[1]->Reset(); 579 580 TH1D *dummy = obj1->Projection("Dummy"); 581 582 for (int i=1; i<7/*obj1->GetGeomCam().GetNumSectors()*/; i++) 583 half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy")); 584 585 for (int i=0; i<2; i++) 586 { 587 half[i]->SetLineColor(kRed+i); 588 half[i]->SetDirectory(0); 589 half[i]->SetBit(kCanDelete); 590 half[i]->Draw("same"); 591 } 592 593 delete dummy; 594 560 595 gPad->Modified(); 561 596 gPad->Update(); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3323 r3360 78 78 { 79 79 80 TH1D *obj2 = (TH1D*)obj1->Projection( );80 TH1D *obj2 = (TH1D*)obj1->Projection(obj1->GetName()); 81 81 obj2->Draw(); 82 82 obj2->SetBit(kCanDelete);
Note:
See TracChangeset
for help on using the changeset viewer.