#include <SelectionDefinitions.h>
Definition at line 200 of file SelectionDefinitions.h.
leading_costheta::leading_costheta |
( |
int |
pdg | ) |
|
|
inline |
double leading_costheta::operator() |
( |
const double & |
Px, |
|
|
const double & |
Py, |
|
|
const double & |
Pz, |
|
|
const std::vector< int > & |
dPDGs, |
|
|
const std::vector< double > & |
dPx, |
|
|
const std::vector< double > & |
dPy, |
|
|
const std::vector< double > & |
dPz |
|
) |
| |
|
inline |
Definition at line 206 of file SelectionDefinitions.h.
212 double costheta = -999.;
213 double max_p = -999.;
214 double P = sqrt(Px*Px + Py*Py + Pz*Pz);
215 for (
size_t i = 0; i < dPDGs.size(); ++i) {
216 if (dPDGs[i] !=
fPDG)
continue;
218 double dP = sqrt(dPx[i]*dPx[i] + dPy[i]*dPy[i] + dPz[i]*dPz[i]);
220 costheta = (dPx[i]*Px + dPy[i]*Py + dPz[i]*Pz)/(dP*P);
std::pair< float, std::string > P
int leading_costheta::fPDG |
|
private |
The documentation for this class was generated from the following file: