Analysis Software
Documentation for sPHENIX simulation software
|
Definition of this analysis module class. More...
#include <analysis/blob/master/TowerInfoExample/src/SaveTowerInfo.h>
Public Member Functions | |
SaveTowerInfo (const std::string &name="SaveTowerInfo") | |
Constructor. | |
virtual | ~SaveTowerInfo () |
int | Init (PHCompositeNode *) |
SubsysReco initialize processing method. | |
int | process_event (PHCompositeNode *) |
SubsysReco event processing method. | |
int | End (PHCompositeNode *) |
SubsysReco end processing method. | |
void | CreateNodeTree (PHCompositeNode *topNode) |
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. | |
Private Attributes | |
TowerInfoContainerv1 * | m_EMCalTowerContainer |
String to contain the outfile name containing the trees. | |
PHCompositeNode * | dst_node |
Container. | |
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 of this analysis module class.
Definition at line 13 of file SaveTowerInfo.h.
View newest version in sPHENIX GitHub at line 13 of file SaveTowerInfo.h
SaveTowerInfo::SaveTowerInfo | ( | const std::string & | name = "SaveTowerInfo" | ) |
Constructor.
SaveTowerInfo is a class developed to reconstruct jets containing a D-meson The class can be adapted to tag jets using any kind of particle Author: Antonio Silva (anton) Constructor of module io.s pheni x@gm ail.c om
Initialize variables and trees so we don't accidentally access memory that was never allocated
Definition at line 31 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 31 of file SaveTowerInfo.cc
|
virtual |
Destructor of module
Definition at line 42 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 42 of file SaveTowerInfo.cc
void SaveTowerInfo::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 117 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 117 of file SaveTowerInfo.cc
References PHCompositeNode::addNode(), dst_node, PHNodeIterator::findFirst(), and m_EMCalTowerContainer.
Referenced by Init().
|
virtual |
SubsysReco end processing method.
End the module and finish any data collection. Clean up any remaining loose ends
Reimplemented from SubsysReco.
Definition at line 101 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 101 of file SaveTowerInfo.cc
References Fun4AllBase::Verbosity().
|
virtual |
SubsysReco initialize processing method.
Initialize the module and prepare looping over events
Reimplemented from SubsysReco.
Definition at line 50 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 50 of file SaveTowerInfo.cc
References CreateNodeTree(), and Fun4AllBase::Verbosity().
|
virtual |
SubsysReco event processing method.
Main workhorse function where each event is looped over and data from each event is collected from the node tree for analysis
Reimplemented from SubsysReco.
Definition at line 66 of file SaveTowerInfo.cc.
View newest version in sPHENIX GitHub at line 66 of file SaveTowerInfo.cc
References Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, RawTowerContainer::getTowers(), m_EMCalTowerContainer, TowerInfov1::set_energy(), TowerInfov1::set_time(), and Fun4AllBase::Verbosity().
|
private |
Container.
Definition at line 38 of file SaveTowerInfo.h.
View newest version in sPHENIX GitHub at line 38 of file SaveTowerInfo.h
Referenced by CreateNodeTree().
|
private |
String to contain the outfile name containing the trees.
Definition at line 37 of file SaveTowerInfo.h.
View newest version in sPHENIX GitHub at line 37 of file SaveTowerInfo.h
Referenced by CreateNodeTree(), and process_event().