Changeset c61b5ce in git for modules/TreeWriter.cc
- Timestamp:
- Dec 10, 2021, 2:11:26 AM (3 years ago)
- Children:
- 3c59f98
- Parents:
- a09b75f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
ra09b75f rc61b5ce 245 245 entry->decayZ = DecayPosition.Z(); 246 246 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 millimeter250 247 } 251 248 } … … 930 927 entry->Phi = momentum.Phi(); 931 928 932 933 // entry->Eta = position.Eta();934 // entry->Phi = position.Phi();935 936 929 entry->PT = momentum.Pt(); // pt of LLP 937 930 entry->Px = momentum.Px();// px of LLP … … 940 933 entry->E = momentum.E(); // E of LLP 941 934 entry->pid = candidate->PID; // LLP pid 942 entry->Eem = candidate->Eem; // LLP pid943 entry->Ehad = candidate->Ehad; // LLP pid935 entry->Eem = candidate->Eem; // LLP Eem 936 entry->Ehad = candidate->Ehad; // LLP Ehad 944 937 Double_t beta = momentum.P()/momentum.E(); 945 938 Double_t gamma = 1.0/sqrt(1-beta*beta); 946 939 Double_t decayDistance = sqrt(pow(position.X(),2)+pow(position.Y(),2)+pow(position.Z(),2)); // mm 947 940 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 952 942 entry->T = decayDistance*(1./beta-1)* 1.0E-3/c_light*1e9; // ns 953 943 entry->X = position.X(); // LLP decay x 954 944 entry->Y = position.Y(); // LLP decay y 955 945 entry->Z = position.Z(); // LLP decay z 956 // entry->Size = 100;957 946 } 958 947 }
Note:
See TracChangeset
for help on using the changeset viewer.