Fork me on GitHub

Changeset acd0621 in git for modules


Ignore:
Timestamp:
May 4, 2016, 5:29:47 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
0e2f49b
Parents:
76c2a3b
Message:

including tracking variables

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r76c2a3b racd0621  
    283283      p         = candidateMomentum.P();
    284284      ctgTheta  = 1.0 / TMath::Tan (candidateMomentum.Theta ());
    285          
     285          
    286286      // 3. time evaluation t = TMath::Min(t_r, t_z)
    287287      //    t_r : time to exit from the sides
     
    337337      if(r_t > 0.0)
    338338      {
     339       
     340        // store these variables before cloning
     341           
     342        candidate->D0 = d0*1.0E3;
     343        candidate->DZ = dz*1.0E3;
     344        candidate->P  = p;
     345        candidate->PT = pt;
     346        candidate->CtgTheta = ctgTheta;
     347        candidate->Phi = phip;
     348     
    339349        mother = candidate;
    340350        candidate = static_cast<Candidate*>(candidate->Clone());
     
    344354        candidate->Momentum = candidateMomentum;
    345355       
    346         candidate->L =  l*1.0E3;
    347         candidate->D0 = d0*1.0E3;
    348         candidate->DZ = dz*1.0E3;
    349         candidate->P = p;
    350         candidate->PT = pt;
    351         candidate->CtgTheta = ctgTheta;
    352         candidate->Phi = phi;
    353 
    354         candidate->Xd = xd*1.0E3;
     356            candidate->L  =  l*1.0E3;
     357       
     358            candidate->Xd = xd*1.0E3;
    355359        candidate->Yd = yd*1.0E3;
    356360        candidate->Zd = zd*1.0E3;
  • modules/TreeWriter.cc

    r76c2a3b racd0621  
    215215    entry->Pz = momentum.Pz();
    216216
     217    entry->D0            = candidate->D0;
     218    entry->DZ            = candidate->DZ;
     219    entry->P             = candidate->P;
     220    entry->PT            = candidate->PT;
     221    entry->CtgTheta      = candidate->CtgTheta;
     222    entry->Phi           = candidate->Phi;
     223
    217224    entry->Eta = eta;
    218225    entry->Phi = momentum.Phi();
     
    291298    entry->ZOuter = position.Z();
    292299    entry->TOuter = position.T()*1.0E-3/c_light;
    293 
    294     entry->D0 = candidate->D0;
    295     entry->ErrorD0 = candidate->ErrorD0 ;
     300 
     301    entry->L = candidate->L;
     302 
     303    entry->D0            = candidate->D0;
     304    entry->ErrorD0       = candidate->ErrorD0;
     305    entry->DZ            = candidate->DZ;
     306    entry->ErrorDZ       = candidate->ErrorDZ;
     307    entry->P             = candidate->P;
     308    entry->ErrorP        = candidate->ErrorP;
     309    entry->PT            = candidate->PT;
     310    entry->ErrorPT       = candidate->ErrorPT;
     311    entry->CtgTheta      = candidate->CtgTheta;
     312    entry->ErrorCtgTheta = candidate->ErrorCtgTheta;
     313    entry->Phi           = candidate->Phi;
     314    entry->ErrorPhi      = candidate->ErrorPhi;
     315   
    296316    entry->Xd = candidate->Xd;
    297317    entry->Yd = candidate->Yd;
     
    307327
    308328    entry->Eta = eta;
    309     entry->Phi = momentum.Phi();
    310     entry->PT = pt;
    311 
     329   
    312330    particle = static_cast<Candidate*>(candidate->GetCandidates()->At(0));
    313331    const TLorentzVector &initialPosition = particle->Position;
Note: See TracChangeset for help on using the changeset viewer.