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

Prototype4DSTReader save information from DST to an evaluator, which could include hit. particle, vertex, towers and jet (to be activated) More...

#include <analysis/blob/master/EMCTemplateFitting/src/Prototype4DSTReader.h>

+ Inheritance diagram for Prototype4DSTReader:
+ Collaboration diagram for Prototype4DSTReader:

Classes

struct  record
 

Public Member Functions

 Prototype4DSTReader (const std::string &filename)
 
virtual ~Prototype4DSTReader ()
 
int Init (PHCompositeNode *)
 full initialization
 
int process_event (PHCompositeNode *)
 event processing method
 
int End (PHCompositeNode *)
 end of run method
 
void AddTower (const std::string &name)
 
void AddTowerTemperature (const std::string &name)
 
void AddRunInfo (const std::string &name)
 
void AddEventInfo (const std::string &name)
 
double get_tower_zero_sup ()
 zero suppression for all calorimeters
 
void set_tower_zero_sup (double b)
 zero suppression for all calorimeters
 
 Prototype4DSTReader (const std::string &filename)
 
virtual ~Prototype4DSTReader ()
 
int Init (PHCompositeNode *)
 full initialization
 
int process_event (PHCompositeNode *)
 event processing method
 
int End (PHCompositeNode *)
 end of run method
 
void AddTower (const std::string &name)
 
void AddTowerTemperature (const std::string &name)
 
void AddRunInfo (const std::string &name)
 
void AddEventInfo (const std::string &name)
 
double get_tower_zero_sup ()
 zero suppression for all calorimeters
 
void set_tower_zero_sup (double b)
 zero suppression for all calorimeters
 
- 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.
 

Protected Types

typedef std::shared_ptr
< TClonesArray > 
arr_ptr
 
typedef std::vector< recordrecords_t
 
typedef RawTower_Prototype4 RawTower_type
 
typedef RawTower_Temperature RawTowerT_type
 
typedef std::shared_ptr
< TClonesArray > 
arr_ptr
 
typedef std::vector< recordrecords_t
 
typedef RawTower_Prototype4 RawTower_type
 
typedef RawTower_Temperature RawTowerT_type
 

Protected Member Functions

void build_tree ()
 
void build_tree ()
 
- 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::vector< std::string > _tower_postfix
 
std::vector< std::string > _towertemp_postfix
 tower temperature
 
std::vector< std::string > _runinfo_list
 
std::vector< std::string > _eventinfo_list
 
int nblocks
 
records_t _records
 
int _event
 
std::string _out_file_name
 
TTree * _T
 
double _tower_zero_sup
 zero suppression for all calorimeters
 

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

Prototype4DSTReader save information from DST to an evaluator, which could include hit. particle, vertex, towers and jet (to be activated)

Definition at line 33 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 33 of file Prototype4DSTReader.h

Member Typedef Documentation

typedef std::shared_ptr<TClonesArray> Prototype4DSTReader::arr_ptr
protected

Definition at line 79 of file Prototype4DSTReader.h.

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

typedef std::shared_ptr<TClonesArray> Prototype4DSTReader::arr_ptr
protected

Definition at line 79 of file Prototype4DSTReader.h.

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

Definition at line 105 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 105 of file Prototype4DSTReader.h

Definition at line 105 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 105 of file Prototype4DSTReader.h

Definition at line 107 of file Prototype4DSTReader.h.

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

Definition at line 107 of file Prototype4DSTReader.h.

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

typedef std::vector<record> Prototype4DSTReader::records_t
protected

Definition at line 102 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 102 of file Prototype4DSTReader.h

typedef std::vector<record> Prototype4DSTReader::records_t
protected

Definition at line 102 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 102 of file Prototype4DSTReader.h

Constructor & Destructor Documentation

Prototype4DSTReader::Prototype4DSTReader ( const std::string &  filename)

Definition at line 41 of file Prototype4DSTReader.cc.

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

Prototype4DSTReader::~Prototype4DSTReader ( )
virtual

Definition at line 53 of file Prototype4DSTReader.cc.

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

References _records, and _T.

Prototype4DSTReader::Prototype4DSTReader ( const std::string &  filename)
virtual Prototype4DSTReader::~Prototype4DSTReader ( )
virtual

Member Function Documentation

void Prototype4DSTReader::AddEventInfo ( const std::string &  name)
inline

Definition at line 56 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 56 of file Prototype4DSTReader.h

References _eventinfo_list.

void Prototype4DSTReader::AddEventInfo ( const std::string &  name)
inline

Definition at line 56 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 56 of file Prototype4DSTReader.h

References _eventinfo_list.

void Prototype4DSTReader::AddRunInfo ( const std::string &  name)
inline

Definition at line 55 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 55 of file Prototype4DSTReader.h

References _runinfo_list.

void Prototype4DSTReader::AddRunInfo ( const std::string &  name)
inline

Definition at line 55 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 55 of file Prototype4DSTReader.h

References _runinfo_list.

Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().

+ Here is the caller graph for this function:

void Prototype4DSTReader::AddTower ( const std::string &  name)
inline

Definition at line 48 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 48 of file Prototype4DSTReader.h

References _tower_postfix.

Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().

+ Here is the caller graph for this function:

void Prototype4DSTReader::AddTower ( const std::string &  name)
inline

Definition at line 48 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 48 of file Prototype4DSTReader.h

References _tower_postfix.

void Prototype4DSTReader::AddTowerTemperature ( const std::string &  name)
inline

Definition at line 50 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 50 of file Prototype4DSTReader.h

References _towertemp_postfix.

void Prototype4DSTReader::AddTowerTemperature ( const std::string &  name)
inline

Definition at line 50 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 50 of file Prototype4DSTReader.h

References _towertemp_postfix.

void Prototype4DSTReader::build_tree ( )
protected

Definition at line 165 of file Prototype4DSTReader.cc.

View newest version in sPHENIX GitHub at line 165 of file Prototype4DSTReader.cc

References Prototype4DSTReader::record::_arr_ptr, Prototype4DSTReader::record::_cnt, Prototype4DSTReader::record::_dvalue, Prototype4DSTReader::record::_name, _out_file_name, _records, _T, Prototype4DSTReader::record::_type, BUFFER_SIZE, PHTFileServer::get(), it, nblocks, PHTFileServer::open(), Prototype4DSTReader::record::typ_eventinfo, Prototype4DSTReader::record::typ_runinfo, Prototype4DSTReader::record::typ_tower, and Prototype4DSTReader::record::typ_towertemp.

Referenced by Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Prototype4DSTReader::build_tree ( )
protected
int Prototype4DSTReader::End ( PHCompositeNode )
virtual

end of run method

Reimplemented from SubsysReco.

Definition at line 411 of file Prototype4DSTReader.cc.

View newest version in sPHENIX GitHub at line 411 of file Prototype4DSTReader.cc

References _out_file_name, _records, _T, PHTFileServer::cd(), and PHTFileServer::get().

+ Here is the call graph for this function:

int Prototype4DSTReader::End ( PHCompositeNode )
virtual

end of run method

Reimplemented from SubsysReco.

double Prototype4DSTReader::get_tower_zero_sup ( )
inline

zero suppression for all calorimeters

Definition at line 62 of file Prototype4DSTReader.h.

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

References _tower_zero_sup.

double Prototype4DSTReader::get_tower_zero_sup ( )
inline

zero suppression for all calorimeters

Definition at line 62 of file Prototype4DSTReader.h.

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

References _tower_zero_sup.

int Prototype4DSTReader::Init ( PHCompositeNode )
virtual

full initialization

Reimplemented from SubsysReco.

int Prototype4DSTReader::Init ( PHCompositeNode )
virtual
int Prototype4DSTReader::process_event ( PHCompositeNode )
virtual

event processing method

Reimplemented from SubsysReco.

void Prototype4DSTReader::set_tower_zero_sup ( double  b)
inline

zero suppression for all calorimeters

Definition at line 65 of file Prototype4DSTReader.h.

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

References _tower_zero_sup, and KFPMath::b.

void Prototype4DSTReader::set_tower_zero_sup ( double  b)
inline

zero suppression for all calorimeters

Definition at line 65 of file Prototype4DSTReader.h.

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

References _tower_zero_sup, and KFPMath::b.

Member Data Documentation

int Prototype4DSTReader::_event
protected

Definition at line 109 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 109 of file Prototype4DSTReader.h

Referenced by process_event().

std::vector< std::string > Prototype4DSTReader::_eventinfo_list
protected

Definition at line 75 of file Prototype4DSTReader.h.

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

Referenced by AddEventInfo(), and Init().

std::string Prototype4DSTReader::_out_file_name
protected

Definition at line 111 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 111 of file Prototype4DSTReader.h

Referenced by build_tree(), and End().

records_t Prototype4DSTReader::_records
protected

Definition at line 103 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 103 of file Prototype4DSTReader.h

Referenced by build_tree(), End(), Init(), process_event(), and ~Prototype4DSTReader().

std::vector< std::string > Prototype4DSTReader::_runinfo_list
protected

Definition at line 74 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 74 of file Prototype4DSTReader.h

Referenced by AddRunInfo(), and Init().

TTree * Prototype4DSTReader::_T
protected

Definition at line 114 of file Prototype4DSTReader.h.

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

Referenced by build_tree(), End(), process_event(), and ~Prototype4DSTReader().

std::vector< std::string > Prototype4DSTReader::_tower_postfix
protected

Definition at line 69 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 69 of file Prototype4DSTReader.h

Referenced by AddTower(), and Init().

double Prototype4DSTReader::_tower_zero_sup
protected

zero suppression for all calorimeters

Definition at line 117 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 117 of file Prototype4DSTReader.h

Referenced by get_tower_zero_sup(), Init(), process_event(), and set_tower_zero_sup().

std::vector< std::string > Prototype4DSTReader::_towertemp_postfix
protected

tower temperature

Definition at line 71 of file Prototype4DSTReader.h.

View newest version in sPHENIX GitHub at line 71 of file Prototype4DSTReader.h

Referenced by AddTowerTemperature(), and Init().

int Prototype4DSTReader::nblocks
protected

Definition at line 77 of file Prototype4DSTReader.h.

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

Referenced by build_tree(), and Init().


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