Fork me on GitHub

Changeset c61b5ce in git for modules


Ignore:
Timestamp:
Dec 10, 2021, 2:11:26 AM (3 years ago)
Author:
christinaw97 <christina.wang@…>
Children:
3c59f98
Parents:
a09b75f
Message:

cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    ra09b75f rc61b5ce  
    245245    entry->decayZ = DecayPosition.Z();
    246246    entry->decayT = DecayPosition.T()* 1.0E-3 / c_light;
    247     float beta = entry->P/momentum.E();
    248     float gamma = 1./sqrt(1-beta*beta);
    249     entry->ctau = sqrt(pow(entry->decayX-entry->X,2)+pow(entry->decayY-entry->Y,2)+pow(entry->decayZ-entry->Z,2))/(beta*gamma);// in millimeter
    250247  }
    251248}
     
    930927    entry->Phi = momentum.Phi();
    931928
    932 
    933     // entry->Eta = position.Eta();
    934     // entry->Phi = position.Phi();
    935 
    936929    entry->PT = momentum.Pt(); // pt of LLP
    937930    entry->Px = momentum.Px();// px of LLP
     
    940933    entry->E = momentum.E(); // E of LLP
    941934    entry->pid = candidate->PID; // LLP pid
    942     entry->Eem = candidate->Eem; // LLP pid
    943     entry->Ehad = candidate->Ehad; // LLP pid
     935    entry->Eem = candidate->Eem; // LLP Eem
     936    entry->Ehad = candidate->Ehad; // LLP Ehad
    944937    Double_t beta = momentum.P()/momentum.E();
    945938    Double_t gamma = 1.0/sqrt(1-beta*beta);
    946939    Double_t decayDistance = sqrt(pow(position.X(),2)+pow(position.Y(),2)+pow(position.Z(),2)); // mm
    947940    entry->beta = beta; // LLP pid
    948     entry->ctau = decayDistance/(beta * gamma);; // LLP pid
    949 
    950     // entry->T = (position.T()-sqrt(pow(position.X(),2)+pow(position.Y(),2)+pow(position.Z(),2)))* 1.0E-3 / c_light; // LLP decay time-photon travel time
    951 
     941    entry->ctau = decayDistance/(beta * gamma); // LLP travel time in its rest frame
    952942    entry->T = decayDistance*(1./beta-1)* 1.0E-3/c_light*1e9; // ns
    953943    entry->X = position.X(); // LLP decay x
    954944    entry->Y = position.Y(); //  LLP decay y
    955945    entry->Z = position.Z(); //  LLP decay z
    956     // entry->Size = 100;
    957946  }
    958947}
Note: See TracChangeset for help on using the changeset viewer.