ATLAS Offline Software
|
MomentumFilter can filter objects upon their four-momentum properties. More...
#include <MomentumFilter.h>
Public Member Functions | |
MomentumFilter () | |
Default constructor: More... | |
MomentumFilter (const MomentumFilter< T > &filter) | |
Copy constructor: More... | |
virtual | ~MomentumFilter () |
Destructor: More... | |
MomentumFilter< T > & | operator= (const MomentumFilter< T > &rhs) |
Assignment operator: More... | |
virtual bool | isAccepted (const T *element) const |
Main filter method. More... | |
double | pxMin () const |
Returns the minimum px required by the filter. More... | |
double | pxMax () const |
Returns the maximum px required by the filter. More... | |
double | pyMin () const |
Returns the minimum py required by the filter. More... | |
double | pyMax () const |
Returns the maximum py required by the filter. More... | |
double | pzMin () const |
Returns the minimum pz required by the filter. More... | |
double | pzMax () const |
Returns the maximum pz required by the filter. More... | |
double | eneMin () const |
Returns the minimum energy required by the filter. More... | |
double | eneMax () const |
Returns the maximum energy required by the filter. More... | |
double | etaMin () const |
Returns the minimum eta required by the filter. More... | |
double | etaMax () const |
Returns the maximum eta required by the filter. More... | |
double | phiMin () const |
Returns the minimum phi required by the filter. More... | |
double | phiMax () const |
Returns the maximum phi required by the filter. More... | |
double | massMin () const |
Returns the minimum mass required by the filter. More... | |
double | massMax () const |
Returns the maximum mass required by the filter. More... | |
double | ptMin () const |
Returns the minimum pt required by the filter. More... | |
double | ptMax () const |
Returns the maximum pt required by the filter. More... | |
double | atlasPhi (const double phi) const |
Convert a phi angle in the ATLAS conventional range -PI->PI inspired from FourMom package (could also use CaloPhiRange) More... | |
void | setFilter (const IFilterCuts *filter) |
Copies the IFilterCuts properties of the given object to the current IFilterCuts object (ie: it copies all the ranges in px,py,... More... | |
void | setPxMin (const double pxMin) |
Sets the minimum px required by the filter. More... | |
void | setPxMax (const double pxMax) |
Sets the maximum px required by the filter. More... | |
void | setPyMin (const double pyMin) |
Sets the minimum py required by the filter. More... | |
void | setPyMax (const double pyMax) |
Sets the maximum py required by the filter. More... | |
void | setPzMin (const double pzMin) |
Sets the minimum pz required by the filter. More... | |
void | setPzMax (const double pzMax) |
Sets the maximum pz required by the filter. More... | |
void | setEneMin (const double eneMin) |
Sets the minimum energy required by the filter. More... | |
void | setEneMax (const double eneMax) |
Sets the maximum energy required by the filter. More... | |
void | setEtaMin (const double etaMin) |
Sets the minimum eta required by the filter. More... | |
void | setEtaMax (const double etaMax) |
Sets the maximum eta required by the filter. More... | |
void | setPhiMin (const double phiMin) |
Sets the minimum phi required by the filter. More... | |
void | setPhiMax (const double phiMax) |
Sets the maximum phi required by the filter. More... | |
void | setMassMin (const double massMin) |
Sets the minimum mass required by the filter. More... | |
void | setMassMax (const double massMax) |
Sets the maximum mass required by the filter. More... | |
void | setPtMin (const double ptMin) |
Sets the minimum pt required by the filter. More... | |
void | setPtMax (const double ptMax) |
Sets the maximum pt required by the filter. More... | |
void | setRange (const std::string &name, const double min, const double max) |
Set range for a given momentum component (by name) More... | |
bool | operator() (const T *element) const |
Protected Attributes | |
FilterRange | m_pxRange |
The range in px required by the filter. More... | |
FilterRange | m_pyRange |
The range in py required by the filter. More... | |
FilterRange | m_pzRange |
The range in pz required by the filter. More... | |
FilterRange | m_eneRange |
The range in energy required by the filter. More... | |
FilterRange | m_etaRange |
The range in eta required by the filter. More... | |
PhiFilterRange | m_phiRange |
The range in phi required by the filter. More... | |
FilterRange | m_massRange |
The range in mass required by the filter. More... | |
FilterRange | m_ptRange |
The range in pt required by the filter. More... | |
MomentumFilter can filter objects upon their four-momentum properties.
It can select particles based on their px,py,pz and energy as well as their mass, pt, eta or phi. One can requires minimum or maximum cuts (or both).
Definition at line 30 of file MomentumFilter.h.
|
inline |
|
inline |
|
virtual |
|
inline |
Convert a phi angle in the ATLAS conventional range -PI->PI inspired from FourMom package (could also use CaloPhiRange)
Definition at line 457 of file MomentumFilter.h.
|
inline |
Returns the maximum energy required by the filter.
Definition at line 403 of file MomentumFilter.h.
|
inline |
Returns the minimum energy required by the filter.
Definition at line 397 of file MomentumFilter.h.
|
inline |
Returns the maximum eta required by the filter.
Definition at line 415 of file MomentumFilter.h.
|
inline |
Returns the minimum eta required by the filter.
Definition at line 409 of file MomentumFilter.h.
|
virtual |
Main filter method.
This method takes the decision whether or not the filter has to accept the element. It returns true or false accordingly if all the thresholds defined by the set_xyzMin or set_xyzMax are met. If no threshold has been defined, it returns true by default. Ex: a particle will be accepted if its px is as : pxMin() <= px <= pxMax()
Warning : it will not complain if you require a non-consistent set of cuts ( eg: ptMin < 10.*GeV and ptMax < 5.*GeV )
Implements IFilter< T >.
Definition at line 328 of file MomentumFilter.h.
|
inline |
Returns the maximum mass required by the filter.
Definition at line 439 of file MomentumFilter.h.
|
inline |
Returns the minimum mass required by the filter.
Definition at line 433 of file MomentumFilter.h.
|
inline |
|
inline |
Returns the maximum phi required by the filter.
Definition at line 427 of file MomentumFilter.h.
|
inline |
Returns the minimum phi required by the filter.
Definition at line 421 of file MomentumFilter.h.
|
inline |
Returns the maximum pt required by the filter.
Definition at line 451 of file MomentumFilter.h.
|
inline |
Returns the minimum pt required by the filter.
Definition at line 445 of file MomentumFilter.h.
|
inline |
Returns the maximum px required by the filter.
Definition at line 367 of file MomentumFilter.h.
|
inline |
Returns the minimum px required by the filter.
Definition at line 361 of file MomentumFilter.h.
|
inline |
Returns the maximum py required by the filter.
Definition at line 379 of file MomentumFilter.h.
|
inline |
Returns the minimum py required by the filter.
Definition at line 373 of file MomentumFilter.h.
|
inline |
Returns the maximum pz required by the filter.
Definition at line 391 of file MomentumFilter.h.
|
inline |
Returns the minimum pz required by the filter.
Definition at line 385 of file MomentumFilter.h.
|
inline |
Sets the maximum energy required by the filter.
Definition at line 534 of file MomentumFilter.h.
|
inline |
Sets the minimum energy required by the filter.
Definition at line 528 of file MomentumFilter.h.
|
inline |
Sets the maximum eta required by the filter.
Definition at line 546 of file MomentumFilter.h.
|
inline |
Sets the minimum eta required by the filter.
Definition at line 540 of file MomentumFilter.h.
|
virtual |
Copies the IFilterCuts properties of the given object to the current IFilterCuts object (ie: it copies all the ranges in px,py,...
to the current object)
Implements IFilterCuts.
Definition at line 466 of file MomentumFilter.h.
|
inline |
Sets the maximum mass required by the filter.
Definition at line 572 of file MomentumFilter.h.
|
inline |
Sets the minimum mass required by the filter.
Definition at line 566 of file MomentumFilter.h.
|
inline |
Sets the maximum phi required by the filter.
Phi range convention -PI,PI is enforced within the PhiFilterRange
Definition at line 559 of file MomentumFilter.h.
|
inline |
Sets the minimum phi required by the filter.
Phi range convention -PI,PI is enforced within the PhiFilterRange
Definition at line 552 of file MomentumFilter.h.
|
inline |
Sets the maximum pt required by the filter.
Definition at line 584 of file MomentumFilter.h.
|
inline |
Sets the minimum pt required by the filter.
Definition at line 578 of file MomentumFilter.h.
|
inline |
Sets the maximum px required by the filter.
Definition at line 498 of file MomentumFilter.h.
|
inline |
Sets the minimum px required by the filter.
Definition at line 492 of file MomentumFilter.h.
|
inline |
Sets the maximum py required by the filter.
Definition at line 510 of file MomentumFilter.h.
|
inline |
Sets the minimum py required by the filter.
Definition at line 504 of file MomentumFilter.h.
|
inline |
Sets the maximum pz required by the filter.
Definition at line 522 of file MomentumFilter.h.
|
inline |
Sets the minimum pz required by the filter.
Definition at line 516 of file MomentumFilter.h.
void MomentumFilter< T >::setRange | ( | const std::string & | name, |
const double | min, | ||
const double | max | ||
) |
|
protected |
The range in energy required by the filter.
Definition at line 243 of file MomentumFilter.h.
|
protected |
The range in eta required by the filter.
Definition at line 247 of file MomentumFilter.h.
|
protected |
The range in mass required by the filter.
Definition at line 255 of file MomentumFilter.h.
|
protected |
The range in phi required by the filter.
Definition at line 251 of file MomentumFilter.h.
|
protected |
The range in pt required by the filter.
Definition at line 259 of file MomentumFilter.h.
|
protected |
The range in px required by the filter.
Definition at line 231 of file MomentumFilter.h.
|
protected |
The range in py required by the filter.
Definition at line 235 of file MomentumFilter.h.
|
protected |
The range in pz required by the filter.
Definition at line 239 of file MomentumFilter.h.