![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/sPhenixAj/src/JetAnalyzer.hh>
Inheritance diagram for SelectorChargeWorker:
Collaboration diagram for SelectorChargeWorker:Public Member Functions | |
| SelectorChargeWorker (const int cmin, const int cmax) | |
| std::string | description () const |
| the selector's description | |
| bool | pass (const fastjet::PseudoJet &p) const |
| keeps the ones that have cmin <= quarkcharge <= cmax | |
Private Attributes | |
| const int | cmin |
| inclusive lower bound | |
| const int | cmax |
| inclusive upper bound | |
This shows how we can build a Selector that uses the user-defined information to select particles by charge. Charge is in units of e/3!
To create a user-defined Selector, the first step is to create its associated "worker" class, i.e. to derive a class from SelectorWorker. Then (see below), we just write a function that creates a Selector with the appropriate worker class.
Definition at line 322 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 322 of file JetAnalyzer.hh
|
inline |
Standard constructor
| cmin,: | inclusive lower bound |
| cmax,: | inclusive upper bound |
Definition at line 328 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 328 of file JetAnalyzer.hh
|
inline |
the selector's description
Definition at line 331 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 331 of file JetAnalyzer.hh
|
inline |
keeps the ones that have cmin <= quarkcharge <= cmax
Definition at line 339 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 339 of file JetAnalyzer.hh
|
private |
inclusive upper bound
Definition at line 346 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 346 of file JetAnalyzer.hh
Referenced by description(), and pass().
|
private |
inclusive lower bound
Definition at line 342 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 342 of file JetAnalyzer.hh
Referenced by description(), and pass().