Changeset 3140 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 02/13/04 15:28:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPedestalWorkaround.cc
r2746 r3140 51 51 #include "MGeomCam.h" 52 52 53 #include "MPedestalCam.h"54 #include "MPedestalPix.h"55 53 #include "MPedPhotCam.h" 54 #include "MPedPhotPix.h" 56 55 #include "MMcEvt.hxx" 57 56 #include "MRawRunHeader.h" … … 73 72 Int_t MPedestalWorkaround::PreProcess(MParList *pList) 74 73 { 74 /* 75 75 fPed = (MPedestalCam*)pList->FindObject("MPedestalCam"); 76 76 if (!fPed) … … 79 79 return kFALSE; 80 80 } 81 */ 81 82 82 83 fPedPhot = (MPedPhotCam*)pList->FindObject("MPedPhotCam"); … … 101 102 } 102 103 103 fMcEvt = (MMcEvt*)pList->Find Object("MMcEvt");104 fMcEvt = (MMcEvt*)pList->FindCreateObj("MMcEvt"); 104 105 if (!fMcEvt) 105 106 { … … 119 120 // from MPedPhotCam into MPedestalCam 120 121 122 // set pedestalRMS = 0 if it is too high 121 123 UInt_t imaxnumpix = fCam->GetNumPixels(); 122 123 124 for (UInt_t i=0; i<imaxnumpix; i++) 124 125 { 125 Int_t type = 0; 126 Double_t val; 127 Float_t valout; 128 fPedPhot->GetPixelContent( val, i, *fCam, type); 129 valout = (*fPed)[i].GetPedestal(); 130 (*fPed)[i].SetPedestal(val); 131 *fLog << "i, val, valout : " << i <<", "<< val<<", " << valout << endl; 132 type = 1; 133 fPedPhot->GetPixelContent( val, i, *fCam, type); 134 valout = (*fPed)[i].GetPedestalRms(); 135 (*fPed)[i].SetPedestalRms(val); 136 *fLog << "RMS : i, val, valout : " << i <<", "<< val<<", " << valout 137 << endl; 126 Double_t val = (*fPedPhot)[i].GetRms(); 127 if (val < 0.0 || val > 10.0) 128 (*fPedPhot)[i].SetRms(0.0); 138 129 } 139 130 … … 142 133 // put the zenith angle into MMcEvt 143 134 144 Int_t run = fRun->GetRunNumber();145 135 Double_t thetadeg; 146 136 Double_t thetarad; 137 138 139 /* 140 Int_t run = fRun->GetRunNumber(); 147 141 148 142 if (run == 3127) thetadeg = 27.2; // Crab … … 537 531 538 532 thetarad = thetadeg / kRad2Deg; 533 */ 534 535 thetadeg = 10.0; 536 thetarad = thetadeg / kRad2Deg; 539 537 fMcEvt->SetTelescopeTheta(thetarad); 540 538 -
trunk/MagicSoft/Mars/manalysis/MSupercuts.cc
r2663 r3140 74 74 { 75 75 //--------------------------------------------------- 76 // these are Daniel's original values for Mkn 42177 78 fLengthUp[0] = 0. 315585;79 fLengthUp[1] = 0.0 01455;80 fLengthUp[2] = 0. 203198;81 fLengthUp[3] = 0.0 05532;82 fLengthUp[4] = -0.001670;83 fLengthUp[5] = -0.020362;84 fLengthUp[6] = 0.0 07388;85 fLengthUp[7] = -0.013463;86 87 fLengthLo[0] = 0. 151530;88 fLengthLo[1] = 0. 028323;89 fLengthLo[2] = 0. 510707;90 fLengthLo[3] = 0. 053089;91 fLengthLo[4] = 0. 013708;92 fLengthLo[5] = 2.357993;93 fLengthLo[6] = 0. 000080;94 fLengthLo[7] = -0.007157;95 96 fWidthUp[0] = 0.1 45412;97 fWidthUp[1] = -0.001771;98 fWidthUp[2] = 0.0 54462;99 fWidthUp[3] = 0.0 22280;100 fWidthUp[4] = -0.009893;101 fWidthUp[5] = 0.0 56353;102 fWidthUp[6] = 0.0 20711;103 fWidthUp[7] = -0.016703;104 105 fWidthLo[0] = 0. 089187;106 fWidthLo[1] = -0.006430;107 fWidthLo[2] = 0. 074442;108 fWidthLo[3] = 0. 003738;109 fWidthLo[4] = -0.004256;110 fWidthLo[5] = -0.014101;111 fWidthLo[6] = 0. 006126;112 fWidthLo[7] = -0.002849;113 114 fDistUp[0] = 1. 787943;115 fDistUp[1] = 0 ;116 fDistUp[2] = 2.942310;117 fDistUp[3] = 0. 199815;118 fDistUp[4] = 0 ;119 fDistUp[5] = 0. 249909;120 fDistUp[6] = 0. 189697;121 fDistUp[7] = 0 ;122 123 fDistLo[0] = 0. 589406;124 fDistLo[1] = 0 ;125 fDistLo[2] = -0.083964;126 fDistLo[3] = -0.007975;127 fDistLo[4] = 0 ;128 fDistLo[5] = 0.0 45374;129 fDistLo[6] = -0.001750;130 fDistLo[7] = 0 ;76 // these are the default values 77 78 fLengthUp[0] = 0.2; 79 fLengthUp[1] = 0.0; 80 fLengthUp[2] = 0.0; 81 fLengthUp[3] = 0.0; 82 fLengthUp[4] = 0.0; 83 fLengthUp[5] = 0.0; 84 fLengthUp[6] = 0.0; 85 fLengthUp[7] = 0.0; 86 87 fLengthLo[0] = 0.; 88 fLengthLo[1] = 0.; 89 fLengthLo[2] = 0.; 90 fLengthLo[3] = 0.; 91 fLengthLo[4] = 0.; 92 fLengthLo[5] = 0.; 93 fLengthLo[6] = 0.; 94 fLengthLo[7] = 0.; 95 96 fWidthUp[0] = 0.1; 97 fWidthUp[1] = 0.0; 98 fWidthUp[2] = 0.0; 99 fWidthUp[3] = 0.0; 100 fWidthUp[4] = 0.0; 101 fWidthUp[5] = 0.0; 102 fWidthUp[6] = 0.0; 103 fWidthUp[7] = 0.0; 104 105 fWidthLo[0] = 0.; 106 fWidthLo[1] = 0.; 107 fWidthLo[2] = 0.; 108 fWidthLo[3] = 0.; 109 fWidthLo[4] = 0.; 110 fWidthLo[5] = 0.; 111 fWidthLo[6] = 0.; 112 fWidthLo[7] = 0.; 113 114 fDistUp[0] = 1.e10; 115 fDistUp[1] = 0.0; 116 fDistUp[2] = 0.0; 117 fDistUp[3] = 0.0; 118 fDistUp[4] = 0.0; 119 fDistUp[5] = 0.0; 120 fDistUp[6] = 0.0; 121 fDistUp[7] = 0.0; 122 123 fDistLo[0] = 0.0; 124 fDistLo[1] = 0.0; 125 fDistLo[2] = 0.0; 126 fDistLo[3] = 0.0; 127 fDistLo[4] = 0.0; 128 fDistLo[5] = 0.0; 129 fDistLo[6] = 0.0; 130 fDistLo[7] = 0.0; 131 131 132 132 … … 202 202 203 203 // LengthUp 204 fStepsizes[0] = 0.0 3;205 fStepsizes[1] = 0.0 002;206 fStepsizes[2] = 0.0 2;207 fStepsizes[3] = 0.0 006;208 fStepsizes[4] = 0.0 002;209 fStepsizes[5] = 0.0 02;210 fStepsizes[6] = 0.0 008;211 fStepsizes[7] = 0.0 02;204 fStepsizes[0] = 0.02; 205 fStepsizes[1] = 0.0; 206 fStepsizes[2] = 0.0; 207 fStepsizes[3] = 0.0; 208 fStepsizes[4] = 0.0; 209 fStepsizes[5] = 0.0; 210 fStepsizes[6] = 0.0; 211 fStepsizes[7] = 0.0; 212 212 213 213 // LengthLo 214 fStepsizes[8] = 0.0 2;215 fStepsizes[9] = 0.0 03;216 fStepsizes[10] = 0.0 5;217 fStepsizes[11] = 0.0 06;218 fStepsizes[12] = 0.0 02;219 fStepsizes[13] = 0. 3;220 fStepsizes[14] = 0.0 001;221 fStepsizes[15] = 0.0 008;214 fStepsizes[8] = 0.0; 215 fStepsizes[9] = 0.0; 216 fStepsizes[10] = 0.0; 217 fStepsizes[11] = 0.0; 218 fStepsizes[12] = 0.0; 219 fStepsizes[13] = 0.0; 220 fStepsizes[14] = 0.0; 221 fStepsizes[15] = 0.0; 222 222 223 223 // WidthUp 224 fStepsizes[16] = 0.0 2;225 fStepsizes[17] = 0.0 002;226 fStepsizes[18] = 0.0 06;227 fStepsizes[19] = 0.0 03;228 fStepsizes[20] = 0.0 02;229 fStepsizes[21] = 0.0 06;230 fStepsizes[22] = 0.0 02;231 fStepsizes[23] = 0.0 02;224 fStepsizes[16] = 0.01; 225 fStepsizes[17] = 0.0; 226 fStepsizes[18] = 0.0; 227 fStepsizes[19] = 0.0; 228 fStepsizes[20] = 0.0; 229 fStepsizes[21] = 0.0; 230 fStepsizes[22] = 0.0; 231 fStepsizes[23] = 0.0; 232 232 233 233 // WidthLo 234 fStepsizes[24] = 0.0 09;235 fStepsizes[25] = 0.0 007;236 fStepsizes[26] = 0.0 08;237 fStepsizes[27] = 0.0 004;238 fStepsizes[28] = 0.0 005;239 fStepsizes[29] = 0.0 02;240 fStepsizes[30] = 0.0 007;241 fStepsizes[31] = 0.0 03;234 fStepsizes[24] = 0.0; 235 fStepsizes[25] = 0.0; 236 fStepsizes[26] = 0.0; 237 fStepsizes[27] = 0.0; 238 fStepsizes[28] = 0.0; 239 fStepsizes[29] = 0.0; 240 fStepsizes[30] = 0.0; 241 fStepsizes[31] = 0.0; 242 242 243 243 // DistUp 244 fStepsizes[32] = 0. 2;244 fStepsizes[32] = 0.0; 245 245 fStepsizes[33] = 0.0; 246 fStepsizes[34] = 0. 3;247 fStepsizes[35] = 0.0 2;246 fStepsizes[34] = 0.0; 247 fStepsizes[35] = 0.0; 248 248 fStepsizes[36] = 0.0; 249 fStepsizes[37] = 0.0 3;250 fStepsizes[38] = 0.0 2;249 fStepsizes[37] = 0.0; 250 fStepsizes[38] = 0.0; 251 251 fStepsizes[39] = 0.0; 252 252 253 253 // DistLo 254 fStepsizes[40] = 0.0 6;254 fStepsizes[40] = 0.0; 255 255 fStepsizes[41] = 0.0; 256 fStepsizes[42] = 0.0 09;257 fStepsizes[43] = 0.0 008;256 fStepsizes[42] = 0.0; 257 fStepsizes[43] = 0.0; 258 258 fStepsizes[44] = 0.0; 259 fStepsizes[45] = 0.0 05;260 fStepsizes[46] = 0.0 002;259 fStepsizes[45] = 0.0; 260 fStepsizes[46] = 0.0; 261 261 fStepsizes[47] = 0.0; 262 262 -
trunk/MagicSoft/Mars/manalysis/MSupercutsCalc.cc
r2663 r3140 157 157 // define cut-function 158 158 // 159 // dNOMLOGSIZE = 4.1 (=log(60.0)159 // dNOMLOGSIZE = 5.0 (=log(150.0) 160 160 // dNOMCOSZA = 1.0 161 161 //
Note:
See TracChangeset
for help on using the changeset viewer.