Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SelectorChargeWorker Class Reference

#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
 

Detailed Description

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

Constructor & Destructor Documentation

SelectorChargeWorker::SelectorChargeWorker ( const int  cmin,
const int  cmax 
)
inline

Standard constructor

Parameters
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

Member Function Documentation

std::string SelectorChargeWorker::description ( ) const
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

References cmax, and cmin.

bool SelectorChargeWorker::pass ( const fastjet::PseudoJet &  p) const
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

References cmax, and cmin.

Member Data Documentation

const int SelectorChargeWorker::cmax
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().

const int SelectorChargeWorker::cmin
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().


The documentation for this class was generated from the following file: