Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JetAnalyzer.cxx File Reference

Light FastJet wrapper for Heavy Ion analysis program file and the functions in that file. More...

#include "JetAnalyzer.hh"
+ Include dependency graph for JetAnalyzer.cxx:

Go to the source code of this file.

Functions

fastjet::Selector SelectorDijets (const double dPhi)
 
bool IsMatched (const std::vector< fastjet::PseudoJet > &jetset1, const std::vector< fastjet::PseudoJet > &jetset2, const double Rmax)
 
bool IsMatched (const std::vector< fastjet::PseudoJet > &jetset1, const fastjet::PseudoJet &reference, const double Rmax)
 
bool IsMatched (const fastjet::PseudoJet &jet1, const fastjet::PseudoJet &jet2, const double Rmax)
 
TLorentzVector MakeTLorentzVector (const fastjet::PseudoJet &pj)
 
fastjet::PseudoJet MakePseudoJet (const TLorentzVector *const lv)
 
fastjet::Selector SelectorChargeRange (const int cmin, const int cmax)
 
fastjet::JetAlgorithm AlgoFromString (std::string s)
 

Detailed Description

Light FastJet wrapper for Heavy Ion analysis program file and the functions in that file.

Author
Kauder:Kolja
Version
Revision 0.1
Date
Mar 04, 2015

Definition in file JetAnalyzer.cxx.

Function Documentation

fastjet::JetAlgorithm AlgoFromString ( std::string  s)

Helper to get an enum from a string we'll allow some more generous spellings and abbreviations

Definition at line 281 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 281 of file JetAnalyzer.cxx

References antikt_algorithm, cambridge_algorithm, kt_algorithm, Acts::Test::transform, and undefined_jet_algorithm.

bool IsMatched ( const std::vector< fastjet::PseudoJet > &  jetset1,
const std::vector< fastjet::PseudoJet > &  jetset2,
const double  Rmax 
)

Determines whether two vector sets are matched 1 to 1. Could return something like lists of matches, but for now it's using a primitive 1-to-1 matching. Enforcing 1-to-1 to avoid pathologies. For dijet A_J, the implementation is already overkill, but I want to lay the groundwork for more complex tasks

Definition at line 204 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 204 of file JetAnalyzer.cxx

bool IsMatched ( const std::vector< fastjet::PseudoJet > &  jetset1,
const fastjet::PseudoJet &  reference,
const double  Rmax 
)

Check if one of the jets in jetset1 matches the reference. TODO: Could use this in the vector-vector version

Definition at line 241 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 241 of file JetAnalyzer.cxx

bool IsMatched ( const fastjet::PseudoJet &  jet1,
const fastjet::PseudoJet &  jet2,
const double  Rmax 
)

Check if jet and jet2 are matched TODO: Could use this in the vector versions

Definition at line 253 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 253 of file JetAnalyzer.cxx

fastjet::PseudoJet MakePseudoJet ( const TLorentzVector *const  lv)

The best way to interface vector<PseudoJet> with ROOT seems to be via TClonesArray<TLorentzVector>, so we'll provide some ways to go back and forth between them. Pretty redundant, PseudoJet is a smart class and does all the work.

Definition at line 268 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 268 of file JetAnalyzer.cxx

TLorentzVector MakeTLorentzVector ( const fastjet::PseudoJet &  pj)

The best way to interface vector<PseudoJet> with ROOT seems to be via TClonesArray<TLorentzVector>, so we'll provide some ways to go back and forth between them.

Definition at line 259 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 259 of file JetAnalyzer.cxx

fastjet::Selector SelectorChargeRange ( const int  cmin = -999,
const int  cmax = 999 
)

the function that allows to write simply

Selector sel = SelectorChargeRange( cmin, cmax );

Definition at line 276 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 276 of file JetAnalyzer.cxx

fastjet::Selector SelectorDijets ( const double  dPhi = 0.4)

Determines whether two vector sets are matched 1 to 1. Actual Dijet selector

Parameters
dPhi,:Dijet acceptance angle Δφ

Definition at line 176 of file JetAnalyzer.cxx.

View newest version in sPHENIX GitHub at line 176 of file JetAnalyzer.cxx

Referenced by PHAJMaker::process_event().

+ Here is the caller graph for this function: