Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HF-Jet/FastSimPP/HFFastSim.h>
Classes | |
class | D02PiK |
class | Lc2pPiK |
Public Member Functions | |
HFFastSim (std::string filename, int flavor=5, int maxevent=INT_MAX) | |
int | Init (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
double | get_eta_max () const |
void | set_eta_max (double etaMax) |
double | get_eta_min () const |
void | set_eta_min (double etaMin) |
double | get_pt_max () const |
void | set_pt_max (double ptMax) |
double | get_pt_min () const |
void | set_pt_min (double ptMin) |
void | set_rejection_action (int action) |
int | get_embedding_id () const |
void | set_embedding_id (int id) |
bool | process_D02PiK (HepMC::GenEvent *theEvent) |
bool | process_Lc2pPiK (HepMC::GenEvent *theEvent) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | InitRun (PHCompositeNode *) |
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 std::pair< int, TString > | quark_trace (const HepMC::GenParticle *p, HepMC::GenEvent *theEvent) |
Private Attributes | |
bool | _verbose |
int | _ievent |
int | _total_pass |
TFile * | _f |
TH2D * | _h2 |
TH2D * | _h2all |
TH2D * | _h2_b |
TH2D * | _h2_c |
TH1D * | m_hNorm |
TH2F * | m_DRapidity |
TTree * | m_tSingleD |
D02PiK * | m_singleD |
TTree * | m_tSingleLc |
Lc2pPiK * | m_singleLc |
std::string | _foutname |
int | _flavor |
int | _maxevent |
double | _pt_min |
double | _pt_max |
double | _eta_min |
double | _eta_max |
std::string | _jet_name |
int | _rejection_action |
action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h> | |
int | _embedding_id |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 30 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 30 of file HFFastSim.h
HFFastSim::HFFastSim | ( | std::string | filename, |
int | flavor = 5 , |
||
int | maxevent = INT_MAX |
||
) |
Definition at line 37 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 37 of file HFFastSim.cc
References _eta_max, _eta_min, _flavor, _foutname, _maxevent, _pt_max, _pt_min, _rejection_action, Fun4AllReturnCodes::DISCARDEVENT, and filename.
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 551 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 551 of file HFFastSim.cc
References _f, _total_pass, assert, PHGenIntegral::get_Integrated_Lumi(), PHObject::identify(), m_hNorm, Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
|
inline |
The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 100 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 100 of file HFFastSim.h
References _embedding_id.
|
inline |
Definition at line 40 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 40 of file HFFastSim.h
References _eta_max.
|
inline |
Definition at line 52 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 52 of file HFFastSim.h
References _eta_min.
|
inline |
Definition at line 64 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 64 of file HFFastSim.h
References _pt_max.
|
inline |
Definition at line 76 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 76 of file HFFastSim.h
References _pt_min.
|
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 70 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 70 of file HFFastSim.cc
References _f, _foutname, _h2, _h2_b, _h2_c, _h2all, _ievent, _total_pass, _verbose, i, m_DRapidity, m_hNorm, m_singleD, m_singleLc, m_tSingleD, and m_tSingleLc.
bool HFFastSim::process_D02PiK | ( | HepMC::GenEvent * | theEvent | ) |
Definition at line 167 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 167 of file HFFastSim.cc
References _eta_max, _eta_min, assert, HFFastSim::D02PiK::Clear(), HFFastSim::D02PiK::decayChain, HFFastSim::D02PiK::decayL, eta, HFFastSim::D02PiK::hadron_origion_qpid, m_DRapidity, m_hNorm, m_singleD, m_tSingleD, merge_hashes::p, pdg, HFFastSim::D02PiK::pid, HFFastSim::D02PiK::prodL, HFFastSim::D02PiK::pt, quark_trace(), Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_MORE, and HFFastSim::D02PiK::y.
Referenced by process_event().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 448 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 448 of file HFFastSim.cc
References _embedding_id, _h2_b, _h2_c, _ievent, _maxevent, _rejection_action, _total_pass, Fun4AllReturnCodes::ABORTRUN, assert, Fun4AllReturnCodes::EVENT_OK, PHHepMCGenEventMap::get(), PHHepMCGenEvent::getEvent(), PHHepMCGenEventMap::identify(), m_hNorm, merge_hashes::p, PHWHERE, process_D02PiK(), process_Lc2pPiK(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_MORE.
bool HFFastSim::process_Lc2pPiK | ( | HepMC::GenEvent * | theEvent | ) |
Definition at line 308 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 308 of file HFFastSim.cc
References _eta_max, _eta_min, assert, HFFastSim::Lc2pPiK::Clear(), HFFastSim::Lc2pPiK::decayChain, HFFastSim::Lc2pPiK::decayL, eta, HFFastSim::Lc2pPiK::hadron_origion_qpid, m_DRapidity, m_hNorm, m_singleLc, m_tSingleLc, merge_hashes::p, pdg, HFFastSim::Lc2pPiK::pid, HFFastSim::Lc2pPiK::prodL, HFFastSim::Lc2pPiK::pt, quark_trace(), Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_MORE, and HFFastSim::Lc2pPiK::y.
Referenced by process_event().
|
static |
Definition at line 116 of file HFFastSim.cc.
View newest version in sPHENIX GitHub at line 116 of file HFFastSim.cc
Referenced by process_D02PiK(), and process_Lc2pPiK().
|
inline |
The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 107 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 107 of file HFFastSim.h
References _embedding_id, and train_ambiguity_solver::id.
|
inline |
Definition at line 46 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 46 of file HFFastSim.h
References _eta_max.
|
inline |
Definition at line 58 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 58 of file HFFastSim.h
References _eta_min.
|
inline |
Definition at line 70 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 70 of file HFFastSim.h
References _pt_max.
|
inline |
Definition at line 82 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 82 of file HFFastSim.h
References _pt_min.
|
inline |
action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h> Default action is DISCARDEVENT for DST level filtering, one can further choose ABORTEVENT to use it as processing level filtering
Definition at line 90 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 90 of file HFFastSim.h
References _rejection_action, and parse_cmake_options::action.
|
private |
The embedding ID for the HepMC subevent to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 211 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 211 of file HFFastSim.h
Referenced by get_embedding_id(), process_event(), and set_embedding_id().
|
private |
Definition at line 200 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 200 of file HFFastSim.h
Referenced by get_eta_max(), HFFastSim(), process_D02PiK(), process_Lc2pPiK(), and set_eta_max().
|
private |
Definition at line 199 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 199 of file HFFastSim.h
Referenced by get_eta_min(), HFFastSim(), process_D02PiK(), process_Lc2pPiK(), and set_eta_min().
|
private |
Definition at line 175 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 175 of file HFFastSim.h
|
private |
Definition at line 193 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 193 of file HFFastSim.h
Referenced by HFFastSim().
|
private |
Definition at line 191 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 191 of file HFFastSim.h
Referenced by HFFastSim(), and Init().
|
private |
Definition at line 177 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 177 of file HFFastSim.h
Referenced by Init().
|
private |
Definition at line 179 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 179 of file HFFastSim.h
Referenced by Init(), and process_event().
|
private |
Definition at line 180 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 180 of file HFFastSim.h
Referenced by Init(), and process_event().
|
private |
Definition at line 178 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 178 of file HFFastSim.h
Referenced by Init().
|
private |
Definition at line 172 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 172 of file HFFastSim.h
Referenced by Init(), and process_event().
|
private |
Definition at line 202 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 202 of file HFFastSim.h
|
private |
Definition at line 194 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 194 of file HFFastSim.h
Referenced by HFFastSim(), and process_event().
|
private |
Definition at line 197 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 197 of file HFFastSim.h
Referenced by get_pt_max(), HFFastSim(), and set_pt_max().
|
private |
Definition at line 196 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 196 of file HFFastSim.h
Referenced by get_pt_min(), HFFastSim(), and set_pt_min().
|
private |
action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h>
Definition at line 205 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 205 of file HFFastSim.h
Referenced by HFFastSim(), process_event(), and set_rejection_action().
|
private |
Definition at line 173 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 173 of file HFFastSim.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 170 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 170 of file HFFastSim.h
Referenced by Init().
|
private |
Definition at line 183 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 183 of file HFFastSim.h
Referenced by Init(), process_D02PiK(), and process_Lc2pPiK().
|
private |
Definition at line 182 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 182 of file HFFastSim.h
Referenced by End(), Init(), process_D02PiK(), process_event(), and process_Lc2pPiK().
|
private |
Definition at line 186 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 186 of file HFFastSim.h
Referenced by Init(), and process_D02PiK().
|
private |
Definition at line 189 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 189 of file HFFastSim.h
Referenced by Init(), and process_Lc2pPiK().
|
private |
Definition at line 185 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 185 of file HFFastSim.h
Referenced by Init(), and process_D02PiK().
|
private |
Definition at line 188 of file HFFastSim.h.
View newest version in sPHENIX GitHub at line 188 of file HFFastSim.h
Referenced by Init(), and process_Lc2pPiK().