Changeset 2314
- Timestamp:
- 08/22/03 12:30:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2311 r2314 1 1 -*-*- END OF LINE -*-*- 2 3 2003/08/22: Wolfgang Wittek 4 5 * mhistmc/MHMcCT1CollectionArea.cc 6 - change selection of theta bin in 'CalcEfficiency()' 7 (to be mored flexible in choosing the theta binnning) 8 9 10 2 11 3 12 2003/08/21: Thomas Bretz … … 46 55 In the loop where fDataRang is set, the local variable v must 47 56 be used with indices n1 and n2. 57 48 58 49 59 -
trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc
r2273 r2314 282 282 283 283 Float_t theta = fHistAll->GetYaxis()->GetBinCenter(thetabin); 284 Float_t thetalo = fHistAll->GetYaxis()->GetBinLowEdge(thetabin); 285 Float_t thetahi = fHistAll->GetYaxis()->GetBinLowEdge(thetabin+1); 284 286 285 287 Float_t emin[4]; // Minimum energy in MC sample … … 311 313 Int_t num_MC_samples = 0; 312 314 313 if (theta > 8 && theta < 9) // 8.75 deg 315 //if (theta > 8 && theta < 9) // 8.75 deg 316 if ( thetalo<8.75 && 8.75<thetahi) // 8.75 deg 314 317 { 315 318 emin[0] = 300.; … … 326 329 num_MC_samples = 2; 327 330 } 328 else if (theta > 20 && theta < 21) // 20.5 deg 331 //else if (theta > 20 && theta < 21) // 20.5 deg 332 else if ( thetalo<20.5 && 20.5<thetahi) // 20.5 deg 329 333 { 330 334 emin[0] = 300.; … … 341 345 num_MC_samples = 2; 342 346 } 343 else if (theta > 26 && theta < 27) // 26.5 degrees 347 //else if (theta > 26 && theta < 27) // 26.5 degrees 348 else if ( thetalo<26.5 && 26.5<thetahi) // 26.5 deg 344 349 { 345 350 emin[0] = 300.; … … 356 361 num_MC_samples = 2; 357 362 } 358 else if (theta > 32 && theta < 33) // 32.5 degrees 363 //else if (theta > 32 && theta < 33) // 32.5 degrees 364 else if ( thetalo<32.5 && 32.5<thetahi) // 32.5 deg 359 365 { 360 366 emin[0] = 300.; … … 366 372 num_MC_samples = 1; 367 373 } 368 else if (theta > 38 && theta < 39) // 38.75 degrees 374 //else if (theta > 38 && theta < 39) // 38.75 degrees 375 else if ( thetalo<38.75 && 38.75<thetahi) // 38.75 deg 369 376 { 370 377 emin[0] = 300.; … … 376 383 num_MC_samples = 1; 377 384 } 378 else if (theta > 45 && theta < 47) // 46 degrees 385 //else if (theta > 45 && theta < 47) // 46 degrees 386 else if ( thetalo<46 && 46<thetahi) // 46 deg 379 387 { 380 388 emin[0] = 300.; … … 386 394 num_MC_samples = 1; 387 395 } 388 else if (theta > 54 && theta < 56) // 55 degrees 396 //else if (theta > 54 && theta < 56) // 55 degrees 397 else if ( thetalo<55 && 55<thetahi) // 55 deg 389 398 { 390 399 // … … 417 426 } 418 427 419 else if (theta > 64 && theta < 66) // 65 degrees 428 //else if (theta > 64 && theta < 66) // 65 degrees 429 else if ( thetalo<65 && 65<thetahi) // 65 deg 420 430 { 421 431 emin[0] = 2000.;
Note:
See TracChangeset
for help on using the changeset viewer.