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

you get started More...

#include <analysis/blob/master/Prototype4/HCal/SampleFrac/Proto4SampleFrac.h>

+ Inheritance diagram for Proto4SampleFrac:
+ Collaboration diagram for Proto4SampleFrac:

Public Member Functions

 Proto4SampleFrac (const std::string &calo_name, const std::string &filename)
 constructor
 
virtual ~Proto4SampleFrac ()
 destructor
 
int Init (PHCompositeNode *topNode)
 Standard function called at initialization.
 
int InitRun (PHCompositeNode *topNode)
 Standard function called when a new run is processed.
 
int process_event (PHCompositeNode *topNode)
 Standard function called at each event.
 
int End (PHCompositeNode *topNode)
 Standard function called at the end of processing. Save your stuff here.
 
void is_sim (bool b)
 Is processing simulation files?
 
std::string get_histo_prefix ()
 common prefix for QA histograms
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
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 Types

enum  { n_size = 8 }
 

Private Member Functions

Fun4AllHistoManagerget_HistoManager ()
 get manager of histograms
 
std::pair< int, int > find_max (RawTowerContainer *towers, int cluster_size)
 

Private Attributes

bool _is_sim
 is processing simulation files?
 
std::string _filename
 output root file name
 
std::string _calo_name
 
PHG4HitContainer_calo_hit_container
 
PHG4HitContainer_calo_abs_hit_container
 
PHG4TruthInfoContainer_truth_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

you get started

Definition at line 24 of file Proto4SampleFrac.h.

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

Member Enumeration Documentation

anonymous enum
private
Enumerator:
n_size 

Definition at line 57 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 57 of file Proto4SampleFrac.h

Constructor & Destructor Documentation

Proto4SampleFrac::Proto4SampleFrac ( const std::string &  calo_name,
const std::string &  filename 
)

constructor

Definition at line 49 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 49 of file Proto4SampleFrac.C

References Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Proto4SampleFrac::~Proto4SampleFrac ( )
virtual

destructor

Definition at line 59 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 59 of file Proto4SampleFrac.C

Member Function Documentation

int Proto4SampleFrac::End ( PHCompositeNode topNode)
virtual

Standard function called at the end of processing. Save your stuff here.

Reimplemented from SubsysReco.

Definition at line 136 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 136 of file Proto4SampleFrac.C

References _filename, assert, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), Fun4AllHistoManager::getHisto(), i, and Fun4AllHistoManager::nHistos().

+ Here is the call graph for this function:

pair< int, int > Proto4SampleFrac::find_max ( RawTowerContainer towers,
int  cluster_size 
)
private

Definition at line 448 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 448 of file Proto4SampleFrac.C

References assert, col, energy, RawTower::get_energy(), RawTowerContainer::getTower(), n_size, and t.

+ Here is the call graph for this function:

string Proto4SampleFrac::get_histo_prefix ( )

common prefix for QA histograms

Definition at line 83 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 83 of file Proto4SampleFrac.C

References _calo_name.

Referenced by Init(), and process_event().

+ Here is the caller graph for this function:

Fun4AllHistoManager * Proto4SampleFrac::get_HistoManager ( )
private

get manager of histograms

Definition at line 63 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 63 of file Proto4SampleFrac.C

References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().

Referenced by End(), Init(), and process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Proto4SampleFrac::Init ( PHCompositeNode topNode)
virtual

Standard function called at initialization.

Reimplemented from SubsysReco.

Definition at line 152 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 152 of file Proto4SampleFrac.C

References _calo_name, _filename, assert, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_histo_prefix(), get_HistoManager(), h, i, PHTFileServer::open(), and Fun4AllHistoManager::registerHisto().

+ Here is the call graph for this function:

int Proto4SampleFrac::InitRun ( PHCompositeNode topNode)
virtual

Standard function called when a new run is processed.

Reimplemented from SubsysReco.

Definition at line 88 of file Proto4SampleFrac.C.

View newest version in sPHENIX GitHub at line 88 of file Proto4SampleFrac.C

References _calo_abs_hit_container, _calo_hit_container, _calo_name, _truth_container, assert, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHWHERE, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void Proto4SampleFrac::is_sim ( bool  b)
inline

Is processing simulation files?

Definition at line 47 of file Proto4SampleFrac.h.

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

References _is_sim, and KFPMath::b.

Member Data Documentation

PHG4HitContainer* Proto4SampleFrac::_calo_abs_hit_container
private

Definition at line 76 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 76 of file Proto4SampleFrac.h

Referenced by InitRun(), and process_event().

PHG4HitContainer* Proto4SampleFrac::_calo_hit_container
private

Definition at line 75 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 75 of file Proto4SampleFrac.h

Referenced by InitRun(), and process_event().

std::string Proto4SampleFrac::_calo_name
private

Definition at line 73 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 73 of file Proto4SampleFrac.h

Referenced by get_histo_prefix(), Init(), InitRun(), and process_event().

std::string Proto4SampleFrac::_filename
private

output root file name

Definition at line 72 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 72 of file Proto4SampleFrac.h

Referenced by End(), and Init().

bool Proto4SampleFrac::_is_sim
private

is processing simulation files?

Definition at line 63 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 63 of file Proto4SampleFrac.h

Referenced by is_sim().

PHG4TruthInfoContainer* Proto4SampleFrac::_truth_container
private

Definition at line 77 of file Proto4SampleFrac.h.

View newest version in sPHENIX GitHub at line 77 of file Proto4SampleFrac.h

Referenced by InitRun(), and process_event().


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