Changeset 94 in svn for trunk/src/VeryForward.cc
- Timestamp:
- Dec 12, 2008, 5:32:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VeryForward.cc
r65 r94 62 62 TLorentzVector genMomentum; 63 63 // Zero degree calorimeter, for forward neutrons and photons 64 if (particle->Status ==1 && (pid == pN || pid == pGAMMA ) && eta > MIN_ZDC) {64 if (particle->Status ==1 && (pid == pN || pid == pGAMMA ) && eta > VFD_min_zdc ) { 65 65 genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E); 66 66 // !!!!!!!!! vérifier que particle->Z est bien en micromÚtres!!! … … 75 75 //double theta = (1E-6)*sqrt( pow(tx,2) + pow(ty,2) ); 76 76 //double flight_distance = (DET->ZDC_S - particle->Z*(1E-6))/cos(theta) ; // assumes that Z is in micrometers 77 double flight_distance = ( ZDC_S- particle->Z*(1E-6));77 double flight_distance = (VFD_s_zdc - particle->Z*(1E-6)); 78 78 // assumes also that the emission angle is so small that 1/(cos theta) = 1 79 79 elementZdc->T = 0*particle->T + flight_distance/speed_of_light; // assumes highly relativistic particles … … 95 95 genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E); 96 96 // if forward proton 97 if( (pid == pP) && (particle->Status == 1) && (fabs(genMomentum.Eta()) > MAX_CALO_FWD) )97 if( (pid == pP) && (particle->Status == 1) && (fabs(genMomentum.Eta()) > CEN_max_calo_fwd) ) 98 98 { 99 99 // !!!!!!!! put here particle->CHARGE and particle->MASS … … 112 112 if(p1.stopped(beamline)) { 113 113 if (p1.getStoppingElement()->getName()=="rp220_1" || p1.getStoppingElement()->getName()=="rp220_2") { 114 p1.propagate(RP 220_S);114 p1.propagate(RP_220_s); 115 115 elementRP220 = (TRootRomanPotHits*) branchRP220->NewEntry(); 116 116 elementRP220->X = (1E-6)*p1.getX(); // [m] … … 125 125 126 126 } else if (p1.getStoppingElement()->getName()=="rp420_1" || p1.getStoppingElement()->getName()=="rp420_2") { 127 p1.propagate( FP420_S);127 p1.propagate(RP_420_s); 128 128 elementFP420 = (TRootRomanPotHits*) branchFP420->NewEntry(); 129 129 elementFP420->X = (1E-6)*p1.getX(); // [m]
Note:
See TracChangeset
for help on using the changeset viewer.