Class Reference for E1039 Core & Analysis Software
GenEmbeddingDataNim4 Class Reference

An example class to analyze the simulated uDST file. More...

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-analysis/HitEmbedding/src/GenEmbeddingDataNim4.h>

+ Inheritance diagram for GenEmbeddingDataNim4:
+ Collaboration diagram for GenEmbeddingDataNim4:

Public Member Functions

 GenEmbeddingDataNim4 (const std::string list_name, const std::string name="GenEmbeddingDataNim4")
 
virtual ~GenEmbeddingDataNim4 ()
 
int Init (PHCompositeNode *topNode)
 
int InitRun (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
int End (PHCompositeNode *topNode)
 Called at the end of all processing. More...
 
void SetFileName (const std::string name)
 
void SetTreeName (const std::string name)
 
std::string GetFileName () const
 
std::string GetTreeName () const
 
- Public Member Functions inherited from SubsysReco
virtual ~SubsysReco ()
 
virtual int EndRun (const int)
 Called at the end of each run. More...
 
virtual int Reset (PHCompositeNode *)
 Reset. More...
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event. More...
 
virtual void Print (const std::string &what="ALL") const
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module. More...
 
virtual void Name (const std::string &name)
 Sets the name of this module. More...
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual int Verbosity () const
 Gets the verbosity of this module. More...
 

Protected Member Functions

void ReadSpillList (const int run_id)
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

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 = INT_MAX - 10
}
 
- Protected Attributes inherited from Fun4AllBase
std::string ThisName
 
int verbosity
 The verbosity level. 0 means not verbose at all. More...
 

Detailed Description

An example class to analyze the simulated uDST file.

Definition at line 11 of file GenEmbeddingDataNim4.h.

Constructor & Destructor Documentation

◆ GenEmbeddingDataNim4()

GenEmbeddingDataNim4::GenEmbeddingDataNim4 ( const std::string  list_name,
const std::string  name = "GenEmbeddingDataNim4" 
)

Definition at line 13 of file GenEmbeddingDataNim4.cc.

◆ ~GenEmbeddingDataNim4()

virtual GenEmbeddingDataNim4::~GenEmbeddingDataNim4 ( )
inlinevirtual

Definition at line 28 of file GenEmbeddingDataNim4.h.

Member Function Documentation

◆ End()

int GenEmbeddingDataNim4::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 75 of file GenEmbeddingDataNim4.cc.

References Fun4AllReturnCodes::EVENT_OK.

◆ GetFileName()

std::string GenEmbeddingDataNim4::GetFileName ( ) const
inline

Definition at line 36 of file GenEmbeddingDataNim4.h.

◆ GetTreeName()

std::string GenEmbeddingDataNim4::GetTreeName ( ) const
inline

Definition at line 37 of file GenEmbeddingDataNim4.h.

◆ Init()

int GenEmbeddingDataNim4::Init ( PHCompositeNode )
virtual

Called during initialization, i.e. registered via Fun4AllServer::registerSubsystem(). Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 22 of file GenEmbeddingDataNim4.cc.

References Fun4AllReturnCodes::EVENT_OK.

◆ InitRun()

int GenEmbeddingDataNim4::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 27 of file GenEmbeddingDataNim4.cc.

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, SQRun::get_run_id(), PHWHERE, and ReadSpillList().

+ Here is the call graph for this function:

◆ process_event()

int GenEmbeddingDataNim4::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 GenEmbeddingDataNim4.cc.

References SQHitVector::begin(), EmbQAData::D1, EmbQAData::D2, EmbQAData::D3m, EmbQAData::D3p, SQHitVector::end(), Fun4AllReturnCodes::EVENT_OK, SQHit::get_detector_id(), SQEvent::get_qie_rf_id(), SQEvent::get_qie_rf_intensity(), SQEvent::get_qie_turn_id(), SQEvent::get_spill_id(), EmbQAData::rf_id, EmbQAData::rfm01, EmbQAData::rfp00, EmbQAData::rfp01, and EmbQAData::turn_id.

+ Here is the call graph for this function:

◆ ReadSpillList()

void GenEmbeddingDataNim4::ReadSpillList ( const int  run_id)
protected

Definition at line 83 of file GenEmbeddingDataNim4.cc.

Referenced by InitRun().

+ Here is the caller graph for this function:

◆ SetFileName()

void GenEmbeddingDataNim4::SetFileName ( const std::string  name)
inline

Definition at line 34 of file GenEmbeddingDataNim4.h.

◆ SetTreeName()

void GenEmbeddingDataNim4::SetTreeName ( const std::string  name)
inline

Definition at line 35 of file GenEmbeddingDataNim4.h.


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