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

Definition of this analysis module class. More...

#include <analysis/blob/master/TowerInfoExample/src/SaveTowerInfo.h>

+ Inheritance diagram for SaveTowerInfo:
+ Collaboration diagram for SaveTowerInfo:

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

TowerInfoContainerv1m_EMCalTowerContainer
 String to contain the outfile name containing the trees.
 
PHCompositeNodedst_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")
 

Detailed Description

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

Constructor & Destructor Documentation

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.nosp@m.io.s.nosp@m.pheni.nosp@m.x@gm.nosp@m.ail.c.nosp@m.om) Constructor of module

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

SaveTowerInfo::~SaveTowerInfo ( )
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

Member Function Documentation

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int SaveTowerInfo::End ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int SaveTowerInfo::Init ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

int SaveTowerInfo::process_event ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

Member Data Documentation

PHCompositeNode* SaveTowerInfo::dst_node
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().

TowerInfoContainerv1* SaveTowerInfo::m_EMCalTowerContainer
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().


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