Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCTemplateFitting/src/EventInfoSummary.h>
Classes | |
class | channel_info |
Public Member Functions | |
EventInfoSummary () | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
void | add_channel (const std::string &name, const int packet_id, const unsigned int offset, const double calibration_const=+1) |
add stuff to be unpacked | |
EventInfoSummary () | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
void | add_channel (const std::string &name, const int packet_id, const unsigned int offset, const double calibration_const=+1) |
add stuff to be unpacked | |
EventInfoSummary () | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
void | add_channel (const std::string &name, const int packet_id, const unsigned int offset, const double calibration_const=+1) |
add stuff to be unpacked | |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
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. | |
Private Types | |
typedef std::map< std::string, channel_info > | typ_channel_map |
list of channel name -> channel info | |
typedef std::map< std::string, channel_info > | typ_channel_map |
list of channel name -> channel info | |
typedef std::map< std::string, channel_info > | typ_channel_map |
list of channel name -> channel info | |
Private Attributes | |
typ_channel_map | channel_map |
std::string | eventinfo_node_name |
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 at line 13 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 13 of file EventInfoSummary.h
|
private |
list of channel name -> channel info
Definition at line 50 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 50 of file EventInfoSummary.h
|
private |
list of channel name -> channel info
Definition at line 50 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 50 of file EventInfoSummary.h
|
private |
list of channel name -> channel info
Definition at line 50 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 50 of file EventInfoSummary.h
EventInfoSummary::EventInfoSummary | ( | ) |
Definition at line 40 of file EventInfoSummary.cc.
View newest version in sPHENIX GitHub at line 40 of file EventInfoSummary.cc
EventInfoSummary::EventInfoSummary | ( | ) |
EventInfoSummary::EventInfoSummary | ( | ) |
void EventInfoSummary::add_channel | ( | const std::string & | name, |
const int | packet_id, | ||
const unsigned int | offset, | ||
const double | calibration_const = +1 |
||
) |
add stuff to be unpacked
packet_id | name of the channel |
offset | packet id |
calibration_const | offset in packet data conversion constant from integer to meaningful value |
Definition at line 278 of file EventInfoSummary.cc.
View newest version in sPHENIX GitHub at line 278 of file EventInfoSummary.cc
References channel_map.
void EventInfoSummary::add_channel | ( | const std::string & | name, |
const int | packet_id, | ||
const unsigned int | offset, | ||
const double | calibration_const = +1 |
||
) |
add stuff to be unpacked
packet_id | name of the channel |
offset | packet id |
calibration_const | offset in packet data conversion constant from integer to meaningful value |
void EventInfoSummary::add_channel | ( | const std::string & | name, |
const int | packet_id, | ||
const unsigned int | offset, | ||
const double | calibration_const = +1 |
||
) |
add stuff to be unpacked
packet_id | name of the channel |
offset | packet id |
calibration_const | offset in packet data conversion constant from integer to meaningful value |
void EventInfoSummary::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 253 of file EventInfoSummary.cc.
View newest version in sPHENIX GitHub at line 253 of file EventInfoSummary.cc
References PHCompositeNode::addNode(), eventinfo_node_name, and PHNodeIterator::findFirst().
Referenced by InitRun().
void EventInfoSummary::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
void EventInfoSummary::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
|
virtual |
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 47 of file EventInfoSummary.cc.
View newest version in sPHENIX GitHub at line 47 of file EventInfoSummary.cc
References CreateNodeTree(), and Fun4AllReturnCodes::EVENT_OK.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 54 of file EventInfoSummary.cc.
View newest version in sPHENIX GitHub at line 54 of file EventInfoSummary.cc
References assert, EventInfoSummary::channel_info::calibration_const, channel_map, col, DATAEVENT, Fun4AllReturnCodes::DISCARDEVENT, event, Fun4AllReturnCodes::EVENT_OK, eventinfo_node_name, RawTower::get_bineta(), RawTower::get_binphi(), RawTower::get_energy(), RawTower_Prototype4::get_signal_samples(), RawTowerContainer::getTower(), RawTowerContainer::getTowers(), i, it, Packet::iValue(), perf_headwind::name, RawTower_Prototype4::NSAMPLES, EventInfoSummary::channel_info::offset, EventInfoSummary::channel_info::packet_id, PHParameters::Print(), PHParameters::SaveToNodeTree(), PHParameters::set_double_param(), PHParameters::set_int_param(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
|
private |
Definition at line 52 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 52 of file EventInfoSummary.h
Referenced by add_channel(), and process_event().
|
private |
Definition at line 54 of file EventInfoSummary.h.
View newest version in sPHENIX GitHub at line 54 of file EventInfoSummary.h
Referenced by CreateNodeTree(), and process_event().