Skip to content
Snippets Groups Projects

Draft: Resolve "Add Roman Pots Reconstruction Matrix"

Open Alex Jentsch requested to merge 70-add-roman-pots-reconstruction-matrix into master
1 file
+ 10
2
Compare changes
  • Side-by-side
  • Inline
@@ -48,9 +48,17 @@ auto momentum = [](std::vector<ROOT::Math::PxPyPzMVector> const& in) {
@@ -48,9 +48,17 @@ auto momentum = [](std::vector<ROOT::Math::PxPyPzMVector> const& in) {
};
};
auto theta = [](std::vector<ROOT::Math::PxPyPzMVector> const& in) {
auto theta = [](std::vector<ROOT::Math::PxPyPzMVector> const& in) {
std::vector<double> result;
std::vector<double> result;
 
ROOT::Math::PxPyPzMVector transFourVect;
for (size_t i = 0; i < in.size(); ++i) {
for (size_t i = 0; i < in.size(); ++i) {
in[i].RotationY(-crossingAngle);
Double_t s = std::sin(-crossingAngle);
result.push_back(in[i].Theta()*1000);
Double_t c = std::cos(-crossingAngle);
 
Double_t zz = in[i].Pz();
 
Double_t xx = in[i].Px();
 
pz = c*zz - s*xx;
 
px = s*zz + c*xx;
 
transFourVect.SetPxPyPzE(in[i].Px(), in[i].Py(), in[i].Pz, in[i].E());
 
 
result.push_back(transFourVect.Theta()*1000);
}
}
return result;
return result;
};
};
Loading