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

#include <coresoftware/blob/master/offline/packages/jetbase/JetProbeMaker.h>

+ Inheritance diagram for JetProbeMaker:
+ Collaboration diagram for JetProbeMaker:

Classes

class  Deleter
 

Public Member Functions

 JetProbeMaker (const std::string &name="JetProbeMaker")
 
 ~JetProbeMaker () override
 
int process_event (PHCompositeNode *) override
 
int InitRun (PHCompositeNode *topNode) override
 
void set_abs_eta (float val)
 
void set_eta_min (float val)
 
void set_eta_max (float val)
 
void set_phi_min (float val)
 
void set_phi_max (float val)
 
void set_pt (float val)
 
void set_pt_min (float val)
 
void set_pt_max (float val)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (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.
 

Private Attributes

std::unique_ptr< gsl_rng, Deleterm_rng
 
float _eta_min = -0.7
 
float _eta_max = 0.7
 
float _eta_range = 1.4
 
float _phi_min = -M_PI
 
float _phi_max = M_PI
 
float _pt_min = 30.
 
float _pt_max = 30.
 
float _pt_range = 0.
 
JetContainer_jets = nullptr
 

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")
 

Detailed Description

Definition at line 16 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 16 of file JetProbeMaker.h

Constructor & Destructor Documentation

JetProbeMaker::JetProbeMaker ( const std::string &  name = "JetProbeMaker")

Definition at line 42 of file JetProbeMaker.cc.

View newest version in sPHENIX GitHub at line 42 of file JetProbeMaker.cc

References gsl_rng_set(), m_rng, and seed.

+ Here is the call graph for this function:

JetProbeMaker::~JetProbeMaker ( )
inlineoverride

Definition at line 19 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 19 of file JetProbeMaker.h

Member Function Documentation

int JetProbeMaker::InitRun ( PHCompositeNode )
overridevirtual

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 51 of file JetProbeMaker.cc.

View newest version in sPHENIX GitHub at line 51 of file JetProbeMaker.cc

References _jets, Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.

+ Here is the call graph for this function:

int JetProbeMaker::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 20 of file JetProbeMaker.cc.

View newest version in sPHENIX GitHub at line 20 of file JetProbeMaker.cc

References _eta_min, _eta_range, _jets, _pt_min, _pt_range, JetContainer::add_jet(), eta, Fun4AllReturnCodes::EVENT_OK, fjet(), Jetv2::insert_comp(), m_rng, ActsTests::PropagationDatasets::phi, physmon_track_finding_ttbar::pt, Jetv2::set_e(), Jetv2::set_px(), Jetv2::set_py(), and Jetv2::set_pz().

+ Here is the call graph for this function:

void JetProbeMaker::set_abs_eta ( float  val)
inline

Definition at line 24 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 24 of file JetProbeMaker.h

References _eta_max, _eta_min, and _eta_range.

void JetProbeMaker::set_eta_max ( float  val)
inline

Definition at line 26 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 26 of file JetProbeMaker.h

References _eta_max, _eta_min, and _eta_range.

void JetProbeMaker::set_eta_min ( float  val)
inline

Definition at line 25 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 25 of file JetProbeMaker.h

References _eta_max, _eta_min, and _eta_range.

void JetProbeMaker::set_phi_max ( float  val)
inline

Definition at line 29 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 29 of file JetProbeMaker.h

References _phi_max.

void JetProbeMaker::set_phi_min ( float  val)
inline

Definition at line 28 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 28 of file JetProbeMaker.h

References _phi_min.

void JetProbeMaker::set_pt ( float  val)
inline

Definition at line 31 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 31 of file JetProbeMaker.h

References _pt_max, _pt_min, and _pt_range.

void JetProbeMaker::set_pt_max ( float  val)
inline

Definition at line 33 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 33 of file JetProbeMaker.h

References _pt_max, _pt_min, and _pt_range.

void JetProbeMaker::set_pt_min ( float  val)
inline

Definition at line 32 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 32 of file JetProbeMaker.h

References _pt_max, _pt_min, and _pt_range.

Member Data Documentation

float JetProbeMaker::_eta_max = 0.7
private

Definition at line 46 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 46 of file JetProbeMaker.h

Referenced by set_abs_eta(), set_eta_max(), and set_eta_min().

float JetProbeMaker::_eta_min = -0.7
private

Definition at line 45 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 45 of file JetProbeMaker.h

Referenced by process_event(), set_abs_eta(), set_eta_max(), and set_eta_min().

float JetProbeMaker::_eta_range = 1.4
private

Definition at line 47 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 47 of file JetProbeMaker.h

Referenced by process_event(), set_abs_eta(), set_eta_max(), and set_eta_min().

JetContainer* JetProbeMaker::_jets = nullptr
private

Definition at line 53 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 53 of file JetProbeMaker.h

Referenced by InitRun(), and process_event().

float JetProbeMaker::_phi_max = M_PI
private

Definition at line 49 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 49 of file JetProbeMaker.h

Referenced by set_phi_max().

float JetProbeMaker::_phi_min = -M_PI
private

Definition at line 48 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 48 of file JetProbeMaker.h

Referenced by set_phi_min().

float JetProbeMaker::_pt_max = 30.
private

Definition at line 51 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 51 of file JetProbeMaker.h

Referenced by set_pt(), set_pt_max(), and set_pt_min().

float JetProbeMaker::_pt_min = 30.
private

Definition at line 50 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 50 of file JetProbeMaker.h

Referenced by process_event(), set_pt(), set_pt_max(), and set_pt_min().

float JetProbeMaker::_pt_range = 0.
private

Definition at line 52 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 52 of file JetProbeMaker.h

Referenced by process_event(), set_pt(), set_pt_max(), and set_pt_min().

std::unique_ptr<gsl_rng, Deleter> JetProbeMaker::m_rng
private

Definition at line 43 of file JetProbeMaker.h.

View newest version in sPHENIX GitHub at line 43 of file JetProbeMaker.h

Referenced by JetProbeMaker(), and process_event().


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