#include <SphericityTensor.h>
Definition at line 11 of file SphericityTensor.h.
◆ result() [1/3]
map< string, double > SphericityTensor::result |
( |
const fastjet::PseudoJet & |
jet | ) |
const |
|
virtual |
Definition at line 15 of file SphericityTensor.cxx.
24 TMatrixD MomentumTensor(3,3);
27 for(std::vector<fastjet::PseudoJet>::const_iterator Itr=
clusters.begin(); Itr!=
clusters.end(); ++Itr) {
28 MomentumTensor(0,0) += (*Itr).px()*(*Itr).px();
29 MomentumTensor(0,1) += (*Itr).px()*(*Itr).py();
30 MomentumTensor(0,2) += (*Itr).px()*(*Itr).pz();
31 MomentumTensor(1,0) += (*Itr).py()*(*Itr).px();
32 MomentumTensor(1,1) += (*Itr).py()*(*Itr).py();
33 MomentumTensor(1,2) += (*Itr).py()*(*Itr).pz();
34 MomentumTensor(2,0) += (*Itr).pz()*(*Itr).px();
35 MomentumTensor(2,1) += (*Itr).pz()*(*Itr).py();
36 MomentumTensor(2,2) += (*Itr).pz()*(*Itr).pz();
38 P2Sum += (*Itr).px()*(*Itr).px()+(*Itr).py()*(*Itr).py()+(*Itr).pz()*(*Itr).pz();
41 double Aplanarity = -1;
42 double Sphericity = -1;
45 const double inv_P2Sum = 1. / P2Sum;
46 for(
int i=0;
i<3;
i++) {
47 for(
int j=0; j<3; j++) {
48 MomentumTensor(
i,j) *= inv_P2Sum;
52 TDecompSVD * aSVD =
new TDecompSVD(MomentumTensor);
53 TVectorD
Lambda = aSVD->GetSig();
55 Aplanarity = 1.5*
Lambda[2];
◆ result() [2/3]
Definition at line 25 of file SubstructureCalculator.h.
30 std::vector<fastjet::PseudoJet> constit_pseudojets;
32 jet.getConstituents().end(),
33 std::back_inserter(constit_pseudojets),
35 const xAOD::IParticle* ip = c->rawConstituent();
38 fastjet::PseudoJet(ip->p4());
◆ result() [3/3]
Definition at line 25 of file SubstructureCalculator.h.
30 std::vector<fastjet::PseudoJet> constit_pseudojets;
32 jet.getConstituents().end(),
33 std::back_inserter(constit_pseudojets),
35 const xAOD::IParticle* ip = c->rawConstituent();
38 fastjet::PseudoJet(ip->p4());
The documentation for this class was generated from the following files: