Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r9330b7b re55f5b0  
    8686    return;
    8787  }
    88 
    89   fRadiusMax = GetDouble("RadiusMax", fRadius);
    90   fHalfLengthMax = GetDouble("HalfLengthMax", fHalfLength);
    9188
    9289  // import array with output from filter/classifier module
     
    163160
    164161    // check that particle position is inside the cylinder
    165     if(TMath::Hypot(x, y) > fRadiusMax || TMath::Abs(z) > fHalfLengthMax)
     162    if(TMath::Hypot(x, y) > fRadius || TMath::Abs(z) > fHalfLength)
    166163    {
    167164      continue;
     
    180177    }
    181178
    182     if(TMath::Hypot(x, y) > fRadius || TMath::Abs(z) > fHalfLength)
    183     {
    184       mother = candidate;
    185       candidate = static_cast<Candidate*>(candidate->Clone());
    186 
    187       candidate->InitialPosition = candidatePosition;
    188       candidate->Position = candidatePosition;
    189       candidate->L = 0.0;
    190 
    191       candidate->Momentum = candidateMomentum;
    192       candidate->AddCandidate(mother);
    193 
    194       fOutputArray->Add(candidate);
    195     }
    196     else if(TMath::Abs(q) < 1.0E-9 || TMath::Abs(fBz) < 1.0E-9)
     179    if(TMath::Abs(q) < 1.0E-9 || TMath::Abs(fBz) < 1.0E-9)
    197180    {
    198181      // solve pt2*t^2 + 2*(px*x + py*y)*t - (fRadius2 - x*x - y*y) = 0
     
    288271      // momentum, since the orignal particle momentum isn't known
    289272
    290       px = TMath::Sign(1.0, r) * pt * (-y_c / r_c);
    291       py = TMath::Sign(1.0, r) * pt * (x_c / r_c);
     273      px = TMath::Sign(1.0,r) * pt * (-y_c / r_c);
     274      py = TMath::Sign(1.0,r) * pt * (x_c / r_c);
    292275      etap = candidateMomentum.Eta();
    293276      phip = TMath::ATan2(py, px);
     
    297280      // calculate additional track parameters (correct for beamspot position)
    298281
    299       d0        = ((x - bsx) * py - (y - bsy) * px) / pt;
     282      d0        = (  (x - bsx) * py - (y - bsy) * px) / pt;
    300283      dz        = z - ((x - bsx) * px + (y - bsy) * py) / pt * (pz / pt);
    301284      p         = candidateMomentum.P();
    302       ctgTheta  = 1.0 / TMath::Tan (candidateMomentum.Theta());
     285      ctgTheta  = 1.0 / TMath::Tan (candidateMomentum.Theta ());
    303286
    304287
     
    318301      else
    319302      {
    320         asinrho = TMath::ASin((fRadius*fRadius - r_c*r_c - r*r) / (2*TMath::Abs(r)*r_c));
     303        asinrho = TMath::ASin( (fRadius*fRadius - r_c*r_c - r*r) / (2*TMath::Abs(r)*r_c)  );
    321304        delta = phi_0 - phi;
    322305        if(delta <-TMath::Pi()) delta += 2*TMath::Pi();
     
    373356        candidate->Momentum = candidateMomentum;
    374357
    375         candidate->L = l*1.0E3;
    376 
    377         candidate->Xd = xd*1.0E3;
     358            candidate->L  = l*1.0E3;
     359
     360            candidate->Xd = xd*1.0E3;
    378361        candidate->Yd = yd*1.0E3;
    379362        candidate->Zd = zd*1.0E3;
Note: See TracChangeset for help on using the changeset viewer.