Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCTemplateFitting/src/RunInfoUnpackPRDF.h>
Classes | |
class | channel_info |
Public Member Functions | |
RunInfoUnpackPRDF () | |
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 | |
RunInfoUnpackPRDF () | |
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 | |
RunInfoUnpackPRDF () | |
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 | |
RunInfoUnpackPRDF () | |
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 | |
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 | runinfo_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 RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 13 of file RunInfoUnpackPRDF.h
|
private |
list of channel name -> channel info
Definition at line 50 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 50 of file RunInfoUnpackPRDF.h
|
private |
list of channel name -> channel info
Definition at line 50 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 50 of file RunInfoUnpackPRDF.h
|
private |
list of channel name -> channel info
Definition at line 50 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 50 of file RunInfoUnpackPRDF.h
|
private |
list of channel name -> channel info
Definition at line 50 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 50 of file RunInfoUnpackPRDF.h
RunInfoUnpackPRDF::RunInfoUnpackPRDF | ( | ) |
Definition at line 33 of file RunInfoUnpackPRDF.cc.
View newest version in sPHENIX GitHub at line 33 of file RunInfoUnpackPRDF.cc
RunInfoUnpackPRDF::RunInfoUnpackPRDF | ( | ) |
RunInfoUnpackPRDF::RunInfoUnpackPRDF | ( | ) |
RunInfoUnpackPRDF::RunInfoUnpackPRDF | ( | ) |
void RunInfoUnpackPRDF::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 194 of file RunInfoUnpackPRDF.cc.
View newest version in sPHENIX GitHub at line 194 of file RunInfoUnpackPRDF.cc
References channel_map.
Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().
void RunInfoUnpackPRDF::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 RunInfoUnpackPRDF::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 RunInfoUnpackPRDF::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 RunInfoUnpackPRDF::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 157 of file RunInfoUnpackPRDF.cc.
View newest version in sPHENIX GitHub at line 157 of file RunInfoUnpackPRDF.cc
References PHCompositeNode::addNode(), PHNodeIterator::findFirst(), and runinfo_node_name.
Referenced by InitRun().
void RunInfoUnpackPRDF::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
void RunInfoUnpackPRDF::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
void RunInfoUnpackPRDF::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 40 of file RunInfoUnpackPRDF.cc.
View newest version in sPHENIX GitHub at line 40 of file RunInfoUnpackPRDF.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 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.
Definition at line 47 of file RunInfoUnpackPRDF.cc.
View newest version in sPHENIX GitHub at line 47 of file RunInfoUnpackPRDF.cc
References BEGRUNEVENT, RunInfoUnpackPRDF::channel_info::calibration_const, channel_map, Fun4AllReturnCodes::DISCARDEVENT, event, Fun4AllReturnCodes::EVENT_OK, EventHeaderv1::identify(), it, Packet::iValue(), perf_headwind::name, RunInfoUnpackPRDF::channel_info::offset, PROTOTYPE4_FEM::PACKET_EMCAL_HIGHETA_FLAG, RunInfoUnpackPRDF::channel_info::packet_id, PHParameters::Print(), runinfo_node_name, PHParameters::SaveToNodeTree(), PHParameters::set_double_param(), EventHeaderv1::set_EvtSequence(), EventHeader::set_EvtType(), PHParameters::set_int_param(), EventHeaderv1::set_RunNumber(), EventHeader::set_TimeStamp(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
|
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.
|
private |
Definition at line 52 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 52 of file RunInfoUnpackPRDF.h
Referenced by add_channel(), and process_event().
|
private |
Definition at line 54 of file RunInfoUnpackPRDF.h.
View newest version in sPHENIX GitHub at line 54 of file RunInfoUnpackPRDF.h
Referenced by CreateNodeTree(), and process_event().