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

Subtracts reco jets using multiplicity method. More...

#include <analysis/blob/master/JS-Jet/JetMultSub/src/JetMultSub.h>

+ Inheritance diagram for JetMultSub:
+ Collaboration diagram for JetMultSub:

Public Member Functions

 JetMultSub (const std::string &name="JetMultSub")
 
 ~JetMultSub () override
 
void setEtaRange (double low, double high)
 
void setPtRange (double low, double high)
 
void add_reco_input (const std::string &recoinput)
 
void add_kt_input (const std::string &ktinput)
 
void set_output_name (const std::string &outputname)
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up after each event.
 
int EndRun (const int runnumber) override
 Called at the end of each run.
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
int Reset (PHCompositeNode *) override
 Reset.
 
void Print (const std::string &what="ALL") const override
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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 Member Functions

int CreateNode (PHCompositeNode *topNode)
 private methods
 
float EstimateRho (PHCompositeNode *topNode)
 
float GetMultiplicityCorrection (float pt)
 

Private Attributes

std::string m_reco_input
 
std::string m_kt_input
 
std::string m_subtracted_output
 
std::pair< double, doublem_etaRange
 
std::pair< double, doublem_ptRange
 

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

Subtracts reco jets using multiplicity method.

Definition at line 16 of file JetMultSub.h.

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

Constructor & Destructor Documentation

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

Definition at line 53 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 53 of file JetMultSub.cc

JetMultSub::~JetMultSub ( )
override

Definition at line 66 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 66 of file JetMultSub.cc

Member Function Documentation

void JetMultSub::add_kt_input ( const std::string &  ktinput)
inline

Definition at line 39 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 39 of file JetMultSub.h

References m_kt_input.

Referenced by Fun4All_JetSub().

+ Here is the caller graph for this function:

void JetMultSub::add_reco_input ( const std::string &  recoinput)
inline

Definition at line 38 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 38 of file JetMultSub.h

References m_reco_input.

Referenced by Fun4All_JetSub().

+ Here is the caller graph for this function:

int JetMultSub::CreateNode ( PHCompositeNode topNode)
private

private methods

Definition at line 199 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 199 of file JetMultSub.cc

References Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_subtracted_output, PHWHERE, and Fun4AllBase::Verbosity().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int JetMultSub::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 169 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 169 of file JetMultSub.cc

References Fun4AllReturnCodes::EVENT_OK.

int JetMultSub::EndRun ( const int  )
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 162 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 162 of file JetMultSub.cc

References Fun4AllReturnCodes::EVENT_OK.

float JetMultSub::EstimateRho ( PHCompositeNode topNode)
private

Definition at line 246 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 246 of file JetMultSub.cc

References JetMap::begin(), JetMap::end(), eta, Jet::get_eta(), Jet::get_id(), Jet::get_pt(), m_etaRange, m_kt_input, physmon_track_finding_ttbar::pt, JetMap::size(), Jet::size_comp(), Acts::Experimental::detail::BlueprintHelper::sort(), and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float JetMultSub::GetMultiplicityCorrection ( float  pt)
private

Definition at line 342 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 342 of file JetMultSub.cc

References i, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int JetMultSub::Init ( PHCompositeNode )
overridevirtual

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 73 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 73 of file JetMultSub.cc

References Fun4AllReturnCodes::EVENT_OK.

int JetMultSub::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 81 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 81 of file JetMultSub.cc

References CreateNode(), and Fun4AllReturnCodes::EVENT_OK.

+ Here is the call graph for this function:

void JetMultSub::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllBase.

Definition at line 188 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 188 of file JetMultSub.cc

References Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int JetMultSub::process_event ( PHCompositeNode )
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 89 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 89 of file JetMultSub.cc

References Fun4AllReturnCodes::ABORTRUN, JetMap::begin(), JetMap::end(), EstimateRho(), Fun4AllReturnCodes::EVENT_OK, Jet::get_e(), Jet::get_eta(), Jet::get_phi(), Jet::get_pt(), Jet::get_px(), Jet::get_py(), Jet::get_pz(), GetMultiplicityCorrection(), m_reco_input, m_subtracted_output, rho, Jet::set_e(), Jet::set_px(), Jet::set_py(), Jet::set_pz(), Jet::size_comp(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int JetMultSub::Reset ( PHCompositeNode )
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 177 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 177 of file JetMultSub.cc

References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int JetMultSub::ResetEvent ( PHCompositeNode )
overridevirtual

Clean up after each event.

Reimplemented from SubsysReco.

Definition at line 155 of file JetMultSub.cc.

View newest version in sPHENIX GitHub at line 155 of file JetMultSub.cc

References Fun4AllReturnCodes::EVENT_OK.

void JetMultSub::set_output_name ( const std::string &  outputname)
inline

Definition at line 41 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 41 of file JetMultSub.h

References m_subtracted_output.

Referenced by Fun4All_JetSub().

+ Here is the caller graph for this function:

void JetMultSub::setEtaRange ( double  low,
double  high 
)
inline

Definition at line 26 of file JetMultSub.h.

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

References m_etaRange.

Referenced by Fun4All_JetSub().

+ Here is the caller graph for this function:

void JetMultSub::setPtRange ( double  low,
double  high 
)
inline

Definition at line 31 of file JetMultSub.h.

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

References m_ptRange.

Referenced by Fun4All_JetSub().

+ Here is the caller graph for this function:

Member Data Documentation

std::pair<double, double> JetMultSub::m_etaRange
private

Definition at line 61 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 61 of file JetMultSub.h

Referenced by EstimateRho(), and setEtaRange().

std::string JetMultSub::m_kt_input
private

Definition at line 59 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 59 of file JetMultSub.h

Referenced by add_kt_input(), and EstimateRho().

std::pair<double, double> JetMultSub::m_ptRange
private

Definition at line 62 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 62 of file JetMultSub.h

Referenced by setPtRange().

std::string JetMultSub::m_reco_input
private

Definition at line 58 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 58 of file JetMultSub.h

Referenced by add_reco_input(), and process_event().

std::string JetMultSub::m_subtracted_output
private

Definition at line 60 of file JetMultSub.h.

View newest version in sPHENIX GitHub at line 60 of file JetMultSub.h

Referenced by CreateNode(), process_event(), and set_output_name().


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