Fork me on GitHub

Changeset 94 in svn for trunk/src/VeryForward.cc


Ignore:
Timestamp:
Dec 12, 2008, 5:32:29 PM (16 years ago)
Author:
severine ovyn
Message:

Add frog plus cleaning + bugs remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VeryForward.cc

    r65 r94  
    6262  TLorentzVector genMomentum;
    6363  // 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 ) {
    6565    genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E);
    6666    // !!!!!!!!! vérifier que particle->Z est bien en micromÚtres!!!
     
    7575    //double theta = (1E-6)*sqrt( pow(tx,2) + pow(ty,2) );
    7676    //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));
    7878    // assumes also that the emission angle is so small that 1/(cos theta) = 1
    7979    elementZdc->T = 0*particle->T + flight_distance/speed_of_light; // assumes highly relativistic particles
     
    9595  genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E);
    9696  // 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) )
    9898    {
    9999      // !!!!!!!! put here particle->CHARGE and particle->MASS
     
    112112      if(p1.stopped(beamline)) {
    113113        if (p1.getStoppingElement()->getName()=="rp220_1" || p1.getStoppingElement()->getName()=="rp220_2") {
    114           p1.propagate(RP220_S);
     114          p1.propagate(RP_220_s);
    115115          elementRP220 = (TRootRomanPotHits*) branchRP220->NewEntry();
    116116          elementRP220->X  = (1E-6)*p1.getX();  // [m]
     
    125125         
    126126        } else if (p1.getStoppingElement()->getName()=="rp420_1" || p1.getStoppingElement()->getName()=="rp420_2") {
    127           p1.propagate(FP420_S);
     127          p1.propagate(RP_420_s);
    128128          elementFP420 = (TRootRomanPotHits*) branchFP420->NewEntry();
    129129          elementFP420->X  = (1E-6)*p1.getX();  // [m]
Note: See TracChangeset for help on using the changeset viewer.