19 double& heavyJetMass,
double& lightJetMass,
20 const CLHEP::Hep3Vector&
thrust )
22 if(abs(
thrust.mag()-1)>0.01)
26 CLHEP::Hep3Vector
up(0,0,0);
27 CLHEP::Hep3Vector down(0,0,0);
33 CLHEP::Hep3Vector
c( (*itr)->px(), (*itr)->py(), (*itr)->pz() );
34 Q += sqrt( (*itr)->px()*(*itr)->px()+(*itr)->py()*(*itr)->py() );
44 const double inv_Q2 = 1. / (Q*Q);
45 lightJetMass=down.mag2()*inv_Q2;
46 heavyJetMass=
up.mag2()*inv_Q2;
47 if ( lightJetMass > heavyJetMass )
49 lightJetMass=
up.mag2()*inv_Q2;
50 heavyJetMass=down.mag2()*inv_Q2;