Changeset 55 in svn for trunk/src/SmearUtil.cc
- Timestamp:
- Nov 27, 2008, 3:05:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SmearUtil.cc
r51 r55 427 427 pow(ELG_Ccen*energy,2) + 428 428 pow(ELG_Scen*sqrt(energy),2) )); 429 } else { // outside the tracker 429 } 430 if(fabs(electron.Eta()) > MAX_TRACKER && fabs(electron.Eta()) < MAX_CALO_FWD){ 430 431 energyS = gRandom->Gaus(energy, sqrt( 431 432 pow(ELG_Nfwd,2) + … … 478 479 479 480 energyS = ((energyS1>0)?energyS1:0) + ((energyS2>0)?energyS2:0); 480 } else { 481 } 482 if(abs(hadron.Eta()) > MAX_CALO_CEN && fabs(hadron.Eta()) < MAX_CALO_FWD){ 481 483 energyS = gRandom->Gaus(energy, sqrt( 482 484 pow(HAD_Nhf,2) + 483 485 pow(HAD_Chf*energy,2) + 484 486 pow(HAD_Shf*sqrt(energy),2) )); 485 } 487 } 488 486 489 487 490 … … 602 605 } 603 606 604 605 float Charge(const long int pid) { 606 // source: RPP chap 34 Monte Carlo Particle Numbering Scheme 607 /* switch (abs(pid)) { 608 case 1: case 3: case 5: case 7: return (float) sign(pid)*(-1/3); break; // d, s, b, b' 609 case 2: case 4: case 6: case 8: return (float) sign(pid)*2/3; break; // u, c, t, t' 610 611 case 11: case 13: case 15: return (float) sign(pid)*(-1); break; // e, mu, tau 612 case 12: case 14: case 16: return (float) 0; break; // nu_e, nu_mu, nu_tau 613 614 case 9: case 21: case 22: case 23: case 25: 615 case 32: case 33: case 35: case 36: return (float) 0; break; // neutral gauge/higgs bosons 616 case 24: case 34: case 37: return (float) sign(pid); break; // charged gauge/higgs bosons 617 } 618 */ 619 return 0; 620 } 607 int Charge(int pid) 608 { 609 int charge; 610 if( 611 (pid == pGAMMA) || 612 (pid == pPI0) || 613 (pid == pK0L) || 614 (pid == pN) || 615 (pid == pSIGMA0) || 616 (pid == pDELTA0) || 617 (pid == pK0S) // not charged particles : invisible by tracker 618 ) 619 charge = 0; 620 else charge = (sign(pid)); 621 cout<<"charge "<<charge<<endl; 622 return charge; 623 624 }
Note:
See TracChangeset
for help on using the changeset viewer.