Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/sPhenixAj/src/JetAnalyzer.hh>
Public Member Functions | |
JetAnalyzer (std::vector< fastjet::PseudoJet > &InOrigParticles, fastjet::JetDefinition &JetDef, fastjet::AreaDefinition &AreaDef, fastjet::Selector selector_bkgd=fastjet::SelectorAbsRapMax(0.6)*(!fastjet::SelectorNHardest(2))) | |
JetAnalyzer (std::vector< fastjet::PseudoJet > &InOrigParticles, fastjet::JetDefinition &JetDef) | |
~JetAnalyzer () | |
fastjet::Subtractor * | GetBackgroundSubtractor () |
fastjet::JetMedianBackgroundEstimator * | GetBackgroundEstimator () |
Static Public Member Functions | |
static double | phimod2pi (double phi) |
Static Public Attributes | |
static const double | pi = 3.141592653589793238462643383279502884 |
Private Attributes | |
std::vector< fastjet::PseudoJet > & | OrigParticles |
bool | CanDoBackground |
fastjet::JetMedianBackgroundEstimator * | bkgd_estimator |
fastjet::Subtractor * | bkgd_subtractor |
fastjet::Selector | selector_bkgd |
fastjet::JetDefinition * | jet_def_bkgd |
fastjet::AreaDefinition * | area_def_bkgd |
The main class.
Definition at line 74 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 74 of file JetAnalyzer.hh
JetAnalyzer::JetAnalyzer | ( | std::vector< fastjet::PseudoJet > & | InOrigParticles, |
fastjet::JetDefinition & | JetDef, | ||
fastjet::AreaDefinition & | AreaDef, | ||
fastjet::Selector | selector_bkgd = fastjet::SelectorAbsRapMax( 0.6 ) * (!fastjet::SelectorNHardest(2)) |
||
) |
Standard constructor. Pass through to Fastjet and set up internal background estimator with default values. Note that initialization as ClusterSequenceArea( pHi, jet_def, 0 ) works fine and skips the area computation. Instead, we provide a second ctor and use this information to determine whether to provide background capability.
InOrigParticles | is the full set of constituent candidates. Passed by reference! |
JetDef | is a fastjet::JetDefinition for the clustering. Passed by reference! |
AreaDef | is a fastjet::AreaDefinition for the clustering |
selector_bkgd | is a fastjet::Selector for background subtraction |
Definition at line 18 of file JetAnalyzer.cxx.
View newest version in sPHENIX GitHub at line 18 of file JetAnalyzer.cxx
References area_def_bkgd, bkgd_estimator, bkgd_subtractor, CanDoBackground, and jet_def_bkgd.
JetAnalyzer::JetAnalyzer | ( | std::vector< fastjet::PseudoJet > & | InOrigParticles, |
fastjet::JetDefinition & | JetDef | ||
) |
Use as ClusterSequence, without area computation and without BG options
InOrigParticles | is the full set of constituent candidates. handed by reference! |
JetDef | is a fastjet::JetDefinition for the clustering |
Definition at line 45 of file JetAnalyzer.cxx.
View newest version in sPHENIX GitHub at line 45 of file JetAnalyzer.cxx
References area_def_bkgd, bkgd_estimator, bkgd_subtractor, CanDoBackground, and jet_def_bkgd.
|
inline |
Destructor. Take care of all the objects created with new.
Definition at line 126 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 126 of file JetAnalyzer.hh
References area_def_bkgd, bkgd_estimator, bkgd_subtractor, and jet_def_bkgd.
|
inline |
Handle to BackgroundEstimator()
Definition at line 162 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 162 of file JetAnalyzer.hh
fastjet::Subtractor * JetAnalyzer::GetBackgroundSubtractor | ( | ) |
Background functionality. Currently, the jet definition is hard-coded to fastjet::kt_algorithm, jet_def().R(), and the area definition is computed internally. Expand and modify as needed.
Definition at line 68 of file JetAnalyzer.cxx.
View newest version in sPHENIX GitHub at line 68 of file JetAnalyzer.cxx
References area_def_bkgd, bkgd_estimator, bkgd_subtractor, CanDoBackground, jet_def_bkgd, kt_algorithm, OrigParticles, Acts::IntegrationTest::R, and selector_bkgd.
Referenced by PHAJMaker::process_event().
Returns an angle between -pi and pi
Definition at line 185 of file JetAnalyzer.cxx.
View newest version in sPHENIX GitHub at line 185 of file JetAnalyzer.cxx
References ActsTests::PropagationDatasets::phi, and pi.
Referenced by SelectorDijetWorker::terminator().
|
private |
Background area definiton
Definition at line 99 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 99 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor(), JetAnalyzer(), and ~JetAnalyzer().
|
private |
For background subtraction. Pointer for now, so that it can be 0 if unused. Default specs and areas will be supplied.
Definition at line 90 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 90 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor(), JetAnalyzer(), and ~JetAnalyzer().
|
private |
Definition at line 92 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 92 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor(), JetAnalyzer(), and ~JetAnalyzer().
|
private |
Determined by whether we have an area definition
Definition at line 84 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 84 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor(), and JetAnalyzer().
|
private |
Background jet definiton
Definition at line 97 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 97 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor(), JetAnalyzer(), and ~JetAnalyzer().
|
private |
Keep a copy of the original constituents. In principle, they should be accessible via this->jets(), but there is extra space allocated in that vector and I'd rather not muck around with it.
Definition at line 81 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 81 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor().
|
static |
The nth version of this important constant.
Definition at line 162 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 162 of file JetAnalyzer.hh
Referenced by phimod2pi(), and SelectorDijetWorker::terminator().
|
private |
Background jet cut
Definition at line 95 of file JetAnalyzer.hh.
View newest version in sPHENIX GitHub at line 95 of file JetAnalyzer.hh
Referenced by GetBackgroundSubtractor().