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

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

+ Inheritance diagram for GenericUnpackPRDF:
+ Collaboration diagram for GenericUnpackPRDF:

Public Member Functions

 GenericUnpackPRDF (const std::string &detector)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
void CreateNodeTree (PHCompositeNode *topNode)
 
void add_channel (const int packet_id, const int channel, const int tower_id)
 add stuff to be unpacked
 
 GenericUnpackPRDF (const std::string &detector)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
void CreateNodeTree (PHCompositeNode *topNode)
 
void add_channel (const int packet_id, const int channel, const int tower_id)
 add stuff to be unpacked
 
 GenericUnpackPRDF (const std::string &detector)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
void CreateNodeTree (PHCompositeNode *topNode)
 
void add_channel (const int packet_id, const int channel, const int tower_id)
 add stuff to be unpacked
 
 GenericUnpackPRDF (const std::string &detector)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
void CreateNodeTree (PHCompositeNode *topNode)
 
void add_channel (const int packet_id, const int channel, const int tower_id)
 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::pair< int, int > channel_typ
 packet_id, channel number to define a hbd_channel
 
typedef std::map< channel_typ,
int > 
channel_map
 list of hbd_channel -> channel id which is also tower id
 
typedef std::pair< int, int > hbd_channel_typ
 packet_id, channel number to define a hbd_channel
 
typedef std::map
< hbd_channel_typ, int > 
hbd_channel_map
 list of hbd_channel -> channel id which is also tower id
 
typedef std::pair< int, int > hbd_channel_typ
 packet_id, channel number to define a hbd_channel
 
typedef std::map
< hbd_channel_typ, int > 
hbd_channel_map
 list of hbd_channel -> channel id which is also tower id
 
typedef std::pair< int, int > channel_typ
 packet_id, channel number to define a hbd_channel
 
typedef std::map< channel_typ,
int > 
channel_map
 list of hbd_channel -> channel id which is also tower id
 

Private Attributes

std::string _detector
 
channel_map _channel_map
 
RawTowerContainer_towers
 
hbd_channel_map _hbd_channel_map
 

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

Definition at line 15 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 15 of file GenericUnpackPRDF.h

Member Typedef Documentation

typedef std::map<channel_typ, int> GenericUnpackPRDF::channel_map
private

list of hbd_channel -> channel id which is also tower id

Definition at line 39 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 39 of file GenericUnpackPRDF.h

typedef std::map<channel_typ, int> GenericUnpackPRDF::channel_map
private

list of hbd_channel -> channel id which is also tower id

Definition at line 39 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 39 of file GenericUnpackPRDF.h

typedef std::pair<int, int> GenericUnpackPRDF::channel_typ
private

packet_id, channel number to define a hbd_channel

Definition at line 36 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 36 of file GenericUnpackPRDF.h

typedef std::pair<int, int> GenericUnpackPRDF::channel_typ
private

packet_id, channel number to define a hbd_channel

Definition at line 36 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 36 of file GenericUnpackPRDF.h

typedef std::map<hbd_channel_typ, int> GenericUnpackPRDF::hbd_channel_map
private

list of hbd_channel -> channel id which is also tower id

Definition at line 39 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 39 of file GenericUnpackPRDF.h

typedef std::map<hbd_channel_typ, int> GenericUnpackPRDF::hbd_channel_map
private

list of hbd_channel -> channel id which is also tower id

Definition at line 39 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 39 of file GenericUnpackPRDF.h

typedef std::pair<int, int> GenericUnpackPRDF::hbd_channel_typ
private

packet_id, channel number to define a hbd_channel

Definition at line 36 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 36 of file GenericUnpackPRDF.h

typedef std::pair<int, int> GenericUnpackPRDF::hbd_channel_typ
private

packet_id, channel number to define a hbd_channel

Definition at line 36 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 36 of file GenericUnpackPRDF.h

Constructor & Destructor Documentation

GenericUnpackPRDF::GenericUnpackPRDF ( const std::string &  detector)

Definition at line 33 of file GenericUnpackPRDF.cc.

View newest version in sPHENIX GitHub at line 33 of file GenericUnpackPRDF.cc

GenericUnpackPRDF::GenericUnpackPRDF ( const std::string &  detector)
GenericUnpackPRDF::GenericUnpackPRDF ( const std::string &  detector)
GenericUnpackPRDF::GenericUnpackPRDF ( const std::string &  detector)

Member Function Documentation

void GenericUnpackPRDF::add_channel ( const int  packet_id,
const int  channel,
const int  tower_id 
)

add stuff to be unpacked

Parameters
channelpacket id
tower_idchannel in packet output tower id

Definition at line 159 of file GenericUnpackPRDF.cc.

View newest version in sPHENIX GitHub at line 159 of file GenericUnpackPRDF.cc

References _channel_map.

Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().

+ Here is the caller graph for this function:

void GenericUnpackPRDF::add_channel ( const int  packet_id,
const int  channel,
const int  tower_id 
)

add stuff to be unpacked

Parameters
channelpacket id
tower_idchannel in packet output tower id
void GenericUnpackPRDF::add_channel ( const int  packet_id,
const int  channel,
const int  tower_id 
)

add stuff to be unpacked

Parameters
channelpacket id
tower_idchannel in packet output tower id
void GenericUnpackPRDF::add_channel ( const int  packet_id,
const int  channel,
const int  tower_id 
)

add stuff to be unpacked

Parameters
channelpacket id
tower_idchannel in packet output tower id
void GenericUnpackPRDF::CreateNodeTree ( PHCompositeNode topNode)

Definition at line 128 of file GenericUnpackPRDF.cc.

View newest version in sPHENIX GitHub at line 128 of file GenericUnpackPRDF.cc

References _detector, _towers, PHCompositeNode::addNode(), PHNodeIterator::findFirst(), RawTowerDefs::NONE, and Fun4AllBase::Verbosity().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GenericUnpackPRDF::CreateNodeTree ( PHCompositeNode topNode)
void GenericUnpackPRDF::CreateNodeTree ( PHCompositeNode topNode)
void GenericUnpackPRDF::CreateNodeTree ( PHCompositeNode topNode)
int GenericUnpackPRDF::InitRun ( PHCompositeNode )
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 42 of file GenericUnpackPRDF.cc.

View newest version in sPHENIX GitHub at line 42 of file GenericUnpackPRDF.cc

References CreateNodeTree(), and Fun4AllReturnCodes::EVENT_OK.

+ Here is the call graph for this function:

int GenericUnpackPRDF::InitRun ( PHCompositeNode )
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.

int GenericUnpackPRDF::InitRun ( PHCompositeNode )
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.

int GenericUnpackPRDF::InitRun ( PHCompositeNode )
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.

int GenericUnpackPRDF::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 49 of file GenericUnpackPRDF.cc.

View newest version in sPHENIX GitHub at line 49 of file GenericUnpackPRDF.cc

References _channel_map, _towers, PROTOTYPE4_FEM::ADC_DATA_MASK, RawTowerContainer::AddTower(), assert, channel(), DATAEVENT, Fun4AllReturnCodes::DISCARDEVENT, Fun4AllReturnCodes::EVENT_OK, Event::getEvtType(), Event::getPacket(), RawTowerContainer::getTower(), Event::identify(), it, Packet::iValue(), PROTOTYPE4_FEM::NSAMPLES, RawTower_Prototype4::set_energy(), RawTower_Prototype4::set_HBD_channel_number(), RawTower_Prototype4::set_signal_samples(), Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_MORE, and Fun4AllBase::VERBOSITY_SOME.

+ Here is the call graph for this function:

int GenericUnpackPRDF::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

int GenericUnpackPRDF::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

int GenericUnpackPRDF::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Member Data Documentation

channel_map GenericUnpackPRDF::_channel_map
private

Definition at line 41 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 41 of file GenericUnpackPRDF.h

Referenced by add_channel(), and process_event().

std::string GenericUnpackPRDF::_detector
private

Definition at line 33 of file GenericUnpackPRDF.h.

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

Referenced by CreateNodeTree().

hbd_channel_map GenericUnpackPRDF::_hbd_channel_map
private

Definition at line 41 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 41 of file GenericUnpackPRDF.h

RawTowerContainer * GenericUnpackPRDF::_towers
private

Definition at line 44 of file GenericUnpackPRDF.h.

View newest version in sPHENIX GitHub at line 44 of file GenericUnpackPRDF.h

Referenced by CreateNodeTree(), and process_event().


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