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

RawTowerCombiner module that joints multiple RawTower together to form a single readout in a separate node Use this class to simulate ganged readout or trigger channels that combined multiple towers Should be called after RawTowerBuilder but before RawTowerDigitizer. More...

#include <coresoftware/blob/master/offline/packages/CaloReco/RawTowerCombiner.h>

+ Inheritance diagram for RawTowerCombiner:
+ Collaboration diagram for RawTowerCombiner:

Public Member Functions

 RawTowerCombiner (const std::string &name="RawTowerCombiner")
 
 ~RawTowerCombiner () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void Detector (const std::string &d)
 
std::string get_tower_node_prefix () const
 prefix to the tower node
 
void set_tower_node_prefix (const std::string &simTowerNodePrefix)
 prefix to the tower node
 
unsigned int get_combine_eta () const
 number of eta towers to be merged into a new tower
 
void set_combine_eta (unsigned int combineEta)
 number of eta towers to be merged into a new tower
 
unsigned int get_combine_phi () const
 number of eta towers to be merged into a new tower
 
void set_combine_phi (unsigned int combinePhi)
 number of eta towers to be merged into a new tower
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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.
 

Protected Member Functions

int get_output_bin_eta (int input_bin) const
 get the new ieta from the old
 
int get_output_bin_phi (int input_bin) const
 get the new iphi from the old
 
void CreateNodes (PHCompositeNode *topNode)
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

Protected Attributes

std::string _tower_node_prefix
 prefix to the tower node
 
unsigned int _n_combine_eta
 number of eta towers to be merged into a new tower
 
unsigned int _n_combine_phi
 number of phi towers to be merged into a new tower
 
RawTowerContainer_towers
 
std::string detector
 

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
}
 

Detailed Description

RawTowerCombiner module that joints multiple RawTower together to form a single readout in a separate node Use this class to simulate ganged readout or trigger channels that combined multiple towers Should be called after RawTowerBuilder but before RawTowerDigitizer.

Definition at line 65 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 65 of file RawTowerCombiner.h

Constructor & Destructor Documentation

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

Definition at line 31 of file RawTowerCombiner.cc.

View newest version in sPHENIX GitHub at line 31 of file RawTowerCombiner.cc

RawTowerCombiner::~RawTowerCombiner ( )
inlineoverride

Definition at line 70 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 70 of file RawTowerCombiner.h

Member Function Documentation

void RawTowerCombiner::Detector ( const std::string &  d)
inline

Definition at line 79 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 79 of file RawTowerCombiner.h

int RawTowerCombiner::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 190 of file RawTowerCombiner.cc.

View newest version in sPHENIX GitHub at line 190 of file RawTowerCombiner.cc

References Fun4AllReturnCodes::EVENT_OK.

unsigned int RawTowerCombiner::get_combine_eta ( ) const
inline

number of eta towers to be merged into a new tower

Definition at line 100 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 100 of file RawTowerCombiner.h

References _n_combine_eta.

unsigned int RawTowerCombiner::get_combine_phi ( ) const
inline

number of eta towers to be merged into a new tower

Definition at line 114 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 114 of file RawTowerCombiner.h

References _n_combine_phi.

int RawTowerCombiner::get_output_bin_eta ( int  input_bin) const
inlineprotected

get the new ieta from the old

Definition at line 136 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 136 of file RawTowerCombiner.h

References _n_combine_eta.

Referenced by process_event().

+ Here is the caller graph for this function:

int RawTowerCombiner::get_output_bin_phi ( int  input_bin) const
inlineprotected

get the new iphi from the old

Definition at line 138 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 138 of file RawTowerCombiner.h

References _n_combine_phi.

Referenced by process_event().

+ Here is the caller graph for this function:

std::string RawTowerCombiner::get_tower_node_prefix ( ) const
inline

prefix to the tower node

Definition at line 86 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 86 of file RawTowerCombiner.h

References _tower_node_prefix.

int RawTowerCombiner::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 41 of file RawTowerCombiner.cc.

View newest version in sPHENIX GitHub at line 41 of file RawTowerCombiner.cc

References _n_combine_eta, _n_combine_phi, CreateNodes(), Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, and PHNodeIterator::findFirst().

+ Here is the call graph for this function:

void RawTowerCombiner::set_combine_eta ( unsigned int  combineEta)
inline

number of eta towers to be merged into a new tower

Definition at line 107 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 107 of file RawTowerCombiner.h

References _n_combine_eta.

void RawTowerCombiner::set_combine_phi ( unsigned int  combinePhi)
inline

number of eta towers to be merged into a new tower

Definition at line 121 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 121 of file RawTowerCombiner.h

References _n_combine_phi.

void RawTowerCombiner::set_tower_node_prefix ( const std::string &  simTowerNodePrefix)
inline

prefix to the tower node

Definition at line 93 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 93 of file RawTowerCombiner.h

References _tower_node_prefix.

Member Data Documentation

unsigned int RawTowerCombiner::_n_combine_eta
protected

number of eta towers to be merged into a new tower

Definition at line 131 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 131 of file RawTowerCombiner.h

Referenced by CreateNodes(), get_combine_eta(), get_output_bin_eta(), InitRun(), and set_combine_eta().

unsigned int RawTowerCombiner::_n_combine_phi
protected

number of phi towers to be merged into a new tower

Definition at line 133 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 133 of file RawTowerCombiner.h

Referenced by CreateNodes(), get_combine_phi(), get_output_bin_phi(), InitRun(), and set_combine_phi().

std::string RawTowerCombiner::_tower_node_prefix
protected

prefix to the tower node

Definition at line 128 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 128 of file RawTowerCombiner.h

Referenced by CreateNodes(), get_tower_node_prefix(), and set_tower_node_prefix().

RawTowerContainer* RawTowerCombiner::_towers
protected

Definition at line 143 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 143 of file RawTowerCombiner.h

Referenced by CreateNodes(), and process_event().

std::string RawTowerCombiner::detector
protected

Definition at line 145 of file RawTowerCombiner.h.

View newest version in sPHENIX GitHub at line 145 of file RawTowerCombiner.h

Referenced by CreateNodes().


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