Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HF-Jet/SoftLeptonTagging/SoftLeptonTaggingTruth.h>
Public Types | |
enum | enu_flags { kProcessTruthSpectrum = 1 << 1, kDefaultFlag = kProcessTruthSpectrum } |
Public Member Functions | |
SoftLeptonTaggingTruth (const std::string &truth_jet, enu_flags flags=kDefaultFlag) | |
virtual | ~SoftLeptonTaggingTruth () |
int | add_reco_jet (const std::string &reco_jet) |
uint32_t | get_flags () const |
void | set_flags (enu_flags flags) |
void | set_flag (enu_flags flag) |
bool | flag (enu_flags flag) |
void | reset_flag (enu_flags flag) |
double | get_jet_match_E_Ratio () const |
Energy ratio difference cut from 1 for matched jets. | |
void | set_jet_match_E_Ratio (double jetMatchDERatio) |
Energy ratio difference cut from 1 for matched jets. | |
double | get_jet_match_dR () const |
Eta difference cut for matched jets. | |
void | set_jet_match_dR (double jetMatchDEta) |
Eta difference cut for matched jets. | |
double | get_jet_match_dca () const |
Phi difference cut for matched jets. | |
void | set_jet_match_dca (double jetMatchDPhi) |
Phi difference cut for matched jets. | |
void | set_eta_range (double low, double high) |
set eta range | |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Static Public Member Functions | |
static Fun4AllHistoManager * | getHistoManager () |
Get a pointer to the default hist manager for QA modules. | |
Private Types | |
typedef std::map< std::string, std::shared_ptr< JetEvalStack > > | jetevalstacks_map |
cache the jet evaluation modules | |
Private Member Functions | |
void | useLogBins (TAxis *axis) |
utility function to | |
int | Init_Spectrum (PHCompositeNode *topNode, const std::string &jet_name) |
int | process_Spectrum (PHCompositeNode *topNode, const std::string &jet_name, const bool is_reco_jet) |
std::string | get_histo_prefix (const std::string &src_jet_name="", const std::string &reco_jet_name="") |
common prefix for QA histograms | |
TString | get_eta_range_str (const char *eta_name="#eta_{Jet}") const |
bool | jet_acceptance_cut (const Jet *jet) const |
acceptance cut on jet object | |
Private Attributes | |
jetevalstacks_map | _jetevalstacks |
std::shared_ptr< JetTruthEval > | _jettrutheval |
std::string | _truth_jet |
truth jet name | |
std::set< std::string > | _reco_jets |
list of reco jet | |
PHG4TruthInfoContainer * | _truth_container |
uint32_t | _flags |
std::pair< double, double > | eta_range |
eta range | |
double | _jet_match_dR |
Eta difference cut for matched jets. | |
double | _jet_match_dca |
Phi difference cut for matched jets. | |
double | _jet_match_E_Ratio |
Energy ratio difference cut from 1 for matched jets. | |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 28 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 28 of file SoftLeptonTaggingTruth.h
|
private |
cache the jet evaluation modules
Definition at line 162 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 162 of file SoftLeptonTaggingTruth.h
Definition at line 33 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 33 of file SoftLeptonTaggingTruth.h
SoftLeptonTaggingTruth::SoftLeptonTaggingTruth | ( | const std::string & | truth_jet, |
enu_flags | flags = kDefaultFlag |
||
) |
Definition at line 42 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 42 of file SoftLeptonTaggingTruth.C
|
virtual |
Definition at line 53 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 53 of file SoftLeptonTaggingTruth.C
|
inline |
add reco jet to the process list
Definition at line 49 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 49 of file SoftLeptonTaggingTruth.h
References _reco_jets.
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 84 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 84 of file SoftLeptonTaggingTruth.C
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 74 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 74 of file SoftLeptonTaggingTruth.h
References _flags.
Referenced by Init(), InitRun(), and process_event().
|
private |
string description of eta range
Definition at line 151 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 151 of file SoftLeptonTaggingTruth.C
References assert, and eta_range.
Referenced by Init_Spectrum().
|
inline |
Definition at line 56 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 56 of file SoftLeptonTaggingTruth.h
References _flags.
|
private |
common prefix for QA histograms
Definition at line 169 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 169 of file SoftLeptonTaggingTruth.C
Referenced by Init_Spectrum(), and process_Spectrum().
|
inline |
Phi difference cut for matched jets.
Definition at line 115 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 115 of file SoftLeptonTaggingTruth.h
References _jet_match_dca.
|
inline |
Eta difference cut for matched jets.
Definition at line 101 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 101 of file SoftLeptonTaggingTruth.h
References _jet_match_dR.
|
inline |
Energy ratio difference cut from 1 for matched jets.
Definition at line 87 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 87 of file SoftLeptonTaggingTruth.h
References _jet_match_E_Ratio.
|
static |
Get a pointer to the default hist manager for QA modules.
Definition at line 615 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 615 of file SoftLeptonTaggingTruth.C
References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().
Referenced by Fun4All_G4_sPHENIX(), Init(), Init_Spectrum(), and process_Spectrum().
|
virtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 91 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 91 of file SoftLeptonTaggingTruth.C
References _truth_jet, assert, Fun4AllReturnCodes::EVENT_OK, flag(), getHistoManager(), Init_Spectrum(), kProcessTruthSpectrum, and verbosity.
|
private |
Definition at line 189 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 189 of file SoftLeptonTaggingTruth.C
References assert, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, get_eta_range_str(), get_histo_prefix(), getHistoManager(), h, h2, i, Fun4AllHistoManager::registerHisto(), and useLogBins().
Referenced by Init().
|
virtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Definition at line 58 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 58 of file SoftLeptonTaggingTruth.C
References _jettrutheval, _truth_container, _truth_jet, assert, Fun4AllReturnCodes::EVENT_OK, flag(), kProcessTruthSpectrum, and verbosity.
|
private |
acceptance cut on jet object
Definition at line 160 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 160 of file SoftLeptonTaggingTruth.C
References assert, eta_range, and Jet::get_eta().
Referenced by process_Spectrum().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 109 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 109 of file SoftLeptonTaggingTruth.C
References _jetevalstacks, _jettrutheval, _truth_jet, assert, Fun4AllReturnCodes::EVENT_OK, flag(), kProcessTruthSpectrum, process_Spectrum(), and verbosity.
|
private |
Definition at line 343 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 343 of file SoftLeptonTaggingTruth.C
References _jet_match_dca, _jet_match_dR, _jet_match_E_Ratio, _jetevalstacks, _jettrutheval, _truth_container, assert, JetMap::begin(), Jet::CEMC_CLUSTER, cemc_e, Jet::CEMC_TOWER, autodiff::detail::copysign(), dR(), JetMap::end(), Fun4AllReturnCodes::EVENT_OK, Jet::get_e(), JetRecoEval::get_energy_contribution(), Jet::get_et(), Jet::get_eta(), get_histo_prefix(), Jet::get_mass(), Jet::get_phi(), PHG4Particle::get_pid(), PHG4Particle::get_px(), Jet::get_px(), PHG4Particle::get_py(), Jet::get_py(), PHG4Particle::get_pz(), Jet::get_pz(), PHG4HitDefs::get_volume_id(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), Fun4AllHistoManager::getHisto(), getHistoManager(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetPrimaryVtx(), Jet::HCALIN_CLUSTER, Jet::HCALIN_TOWER, PHG4Particle::identify(), Jet::identify(), it, jet_acceptance_cut(), particle, JetMap::size(), Jet::size_comp(), and verbosity.
Referenced by process_event().
|
inline |
Definition at line 80 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 80 of file SoftLeptonTaggingTruth.h
References _flags.
set eta range
Definition at line 137 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 137 of file SoftLeptonTaggingTruth.C
References assert, eta_range, and swap().
|
inline |
Definition at line 68 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 68 of file SoftLeptonTaggingTruth.h
References _flags.
|
inline |
Definition at line 62 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 62 of file SoftLeptonTaggingTruth.h
References _flags.
|
inline |
Phi difference cut for matched jets.
Definition at line 122 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 122 of file SoftLeptonTaggingTruth.h
References _jet_match_dca.
|
inline |
Eta difference cut for matched jets.
Definition at line 108 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 108 of file SoftLeptonTaggingTruth.h
References _jet_match_dR.
|
inline |
Energy ratio difference cut from 1 for matched jets.
Definition at line 94 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 94 of file SoftLeptonTaggingTruth.h
References _jet_match_E_Ratio.
|
private |
utility function to
Definition at line 637 of file SoftLeptonTaggingTruth.C.
View newest version in sPHENIX GitHub at line 637 of file SoftLeptonTaggingTruth.C
References assert, bins, i, and width.
Referenced by Init_Spectrum().
|
private |
Definition at line 175 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 175 of file SoftLeptonTaggingTruth.h
Referenced by flag(), get_flags(), reset_flag(), set_flag(), and set_flags().
|
private |
Phi difference cut for matched jets.
Definition at line 193 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 193 of file SoftLeptonTaggingTruth.h
Referenced by get_jet_match_dca(), process_Spectrum(), and set_jet_match_dca().
|
private |
Eta difference cut for matched jets.
Definition at line 190 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 190 of file SoftLeptonTaggingTruth.h
Referenced by get_jet_match_dR(), process_Spectrum(), and set_jet_match_dR().
|
private |
Energy ratio difference cut from 1 for matched jets.
Definition at line 196 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 196 of file SoftLeptonTaggingTruth.h
Referenced by get_jet_match_E_Ratio(), process_Spectrum(), and set_jet_match_E_Ratio().
|
private |
Definition at line 163 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 163 of file SoftLeptonTaggingTruth.h
Referenced by process_event(), and process_Spectrum().
|
private |
Definition at line 164 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 164 of file SoftLeptonTaggingTruth.h
Referenced by InitRun(), process_event(), and process_Spectrum().
|
private |
list of reco jet
Definition at line 171 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 171 of file SoftLeptonTaggingTruth.h
Referenced by add_reco_jet().
|
private |
Definition at line 173 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 173 of file SoftLeptonTaggingTruth.h
Referenced by InitRun(), and process_Spectrum().
|
private |
truth jet name
Definition at line 168 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 168 of file SoftLeptonTaggingTruth.h
Referenced by Init(), InitRun(), and process_event().
eta range
Definition at line 178 of file SoftLeptonTaggingTruth.h.
View newest version in sPHENIX GitHub at line 178 of file SoftLeptonTaggingTruth.h
Referenced by get_eta_range_str(), jet_acceptance_cut(), and set_eta_range().