Class Reference for E1039 Core & Analysis Software
DimuAnaRUS Class Reference

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

+ Inheritance diagram for DimuAnaRUS:
+ Collaboration diagram for DimuAnaRUS:

Public Member Functions

void SetMCTrueMode (bool enable)
 
void SetMCDimuonMode (bool enable)
 
void SetRecoMode (bool enable)
 
void SetRecoDimuMode (bool enable)
 
void SetDataTriggerEmu (bool enable)
 
void SetMCTriggerEmu (bool enable)
 
void SetSaveOnlyDimuon (bool enable)
 
void SetSourceFlag (int flag)
 
void SetProcessId (int proc_id_)
 
std::pair< int, int > GetDetElemIDFromHitID (int hit_id) const
 
std::pair< int, int > GetDetElemIDFromHitID (int hit_id, const std::unordered_map< int, SQHit * > &hit_map) const
 
unsigned int EncodeProcess (int processID, int sourceFlag)
 
 DimuAnaRUS (const std::string &name="DimuAnaRUS")
 
virtual ~DimuAnaRUS ()
 
int Init (PHCompositeNode *startNode)
 
int InitRun (PHCompositeNode *startNode)
 
int process_event (PHCompositeNode *startNode)
 
int End (PHCompositeNode *startNode)
 Called at the end of all processing. More...
 
void SetOutputFileName (const std::string name)
 
void SetTreeName (const std::string &name)
 
void SetFileName (const std::string &name)
 
void ResetHitBranches ()
 
void ResetTrueBranches ()
 
void ResetRecoBranches ()
 
void ResetRecoDimuBranches ()
 
- 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...
 

Static Public Member Functions

static int DecodeSourceFlag (unsigned int encoded)
 
static int DecodeProcessID (unsigned int encoded)
 

Public Attributes

UtilTrigger::TrigRoadset m_rs
 
bool true_mode
 
bool reco_mode
 
bool data_trig_mode
 
bool mc_trig_mode
 
bool saveDimuonOnly
 
bool true_dimu_mode
 
int proc_id
 
int SourceFlag
 
bool reco_dimu_mode
 

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

Detailed Description

Definition at line 21 of file DimuAnaRUS.h.

Constructor & Destructor Documentation

◆ DimuAnaRUS()

DimuAnaRUS::DimuAnaRUS ( const std::string &  name = "DimuAnaRUS")

Definition at line 27 of file DimuAnaRUS.cc.

◆ ~DimuAnaRUS()

DimuAnaRUS::~DimuAnaRUS ( )
virtual

Definition at line 48 of file DimuAnaRUS.cc.

Member Function Documentation

◆ DecodeProcessID()

int DimuAnaRUS::DecodeProcessID ( unsigned int  encoded)
static

Definition at line 565 of file DimuAnaRUS.cc.

◆ DecodeSourceFlag()

int DimuAnaRUS::DecodeSourceFlag ( unsigned int  encoded)
static

Definition at line 562 of file DimuAnaRUS.cc.

◆ EncodeProcess()

unsigned int DimuAnaRUS::EncodeProcess ( int  processID,
int  sourceFlag 
)

Definition at line 558 of file DimuAnaRUS.cc.

Referenced by process_event().

+ Here is the caller graph for this function:

◆ End()

int DimuAnaRUS::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 494 of file DimuAnaRUS.cc.

References Fun4AllReturnCodes::EVENT_OK.

◆ GetDetElemIDFromHitID() [1/2]

std::pair< int, int > DimuAnaRUS::GetDetElemIDFromHitID ( int  hit_id) const

Definition at line 569 of file DimuAnaRUS.cc.

References GeomSvc::getDetectorName(), GeomSvc::getDetectorZ0(), GeomSvc::instance(), and GeomSvc::UseDbSvc().

Referenced by process_event().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDetElemIDFromHitID() [2/2]

std::pair<int, int> DimuAnaRUS::GetDetElemIDFromHitID ( int  hit_id,
const std::unordered_map< int, SQHit * > &  hit_map 
) const

◆ Init()

int DimuAnaRUS::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 53 of file DimuAnaRUS.cc.

References Fun4AllReturnCodes::EVENT_OK.

◆ InitRun()

int DimuAnaRUS::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 58 of file DimuAnaRUS.cc.

References Fun4AllReturnCodes::ABORTEVENT, data_trig_mode, Fun4AllReturnCodes::EVENT_OK, SQRun::get_v1495_id(), UtilTrigger::TrigRoadset::LoadConfig(), m_rs, mc_trig_mode, reco_dimu_mode, reco_mode, UtilTrigger::TrigRoadset::str(), and true_mode.

+ Here is the call graph for this function:

◆ process_event()

int DimuAnaRUS::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 260 of file DimuAnaRUS.cc.

References SQTrackVector::at(), SQHitVector::at(), SQDimuonVector::begin(), SQTrackVector::begin(), SRecDimuon::calcVariables(), EncodeProcess(), SQDimuonVector::end(), SQTrackVector::end(), Fun4AllReturnCodes::EVENT_OK, SRecTrack::get_charge(), SQTrack::get_charge(), SRecTrack::get_chisq(), SRecTrack::get_chisq_dump(), SRecTrack::get_chisq_upstream(), SQHit::get_detector_id(), SRecDimuon::get_dimuon_id(), SQHit::get_drift_distance(), SQHit::get_element_id(), SQEvent::get_event_id(), SQHit::get_hit_id(), SRecTrack::get_hit_id(), SRecTrack::get_mom_dump(), SRecDimuon::get_mom_neg(), SRecDimuon::get_mom_pos(), SRecTrack::get_mom_st1(), SQTrack::get_mom_st1(), SRecTrack::get_mom_st3(), SQTrack::get_mom_st3(), SRecTrack::get_mom_target(), SRecTrack::get_mom_vtx(), SQTrack::get_mom_vtx(), SRecTrack::get_num_hits(), SRecDimuon::get_pos(), SRecTrack::get_pos_dump(), SRecTrack::get_pos_st1(), SQTrack::get_pos_st1(), SRecTrack::get_pos_st3(), SQTrack::get_pos_st3(), SRecTrack::get_pos_target(), SRecTrack::get_pos_vtx(), SQTrack::get_pos_vtx(), SQEvent::get_qie_rf_id(), SQEvent::get_qie_rf_intensity(), SQEvent::get_qie_turn_id(), SRecDimuon::get_rec_dimuon_id(), SQEvent::get_run_id(), SQEvent::get_spill_id(), SQHit::get_tdc_time(), SQHit::get_track_id(), SQTrack::get_track_id(), SRecDimuon::get_track_id_neg(), SRecDimuon::get_track_id_pos(), SQEvent::get_trigger(), SRecTrack::getChisqTarget(), GetDetElemIDFromHitID(), SRecTrack::getExpPositionFast(), SQEvent::MATRIX1, SQEvent::MATRIX2, SQEvent::MATRIX3, SQEvent::MATRIX4, SQEvent::MATRIX5, SQEvent::NIM1, SQEvent::NIM2, SQEvent::NIM3, SQEvent::NIM4, SQEvent::NIM5, SRecDimuon::p_neg_dump, SRecDimuon::p_neg_target, SRecDimuon::p_pos_dump, SRecDimuon::p_pos_target, proc_id, reco_dimu_mode, reco_mode, ResetHitBranches(), ResetRecoBranches(), ResetRecoDimuBranches(), ResetTrueBranches(), SQHitVector::size(), SQTrackVector::size(), SourceFlag, and true_mode.

◆ ResetHitBranches()

void DimuAnaRUS::ResetHitBranches ( )

Definition at line 503 of file DimuAnaRUS.cc.

Referenced by process_event().

+ Here is the caller graph for this function:

◆ ResetRecoBranches()

void DimuAnaRUS::ResetRecoBranches ( )

Definition at line 522 of file DimuAnaRUS.cc.

Referenced by process_event().

+ Here is the caller graph for this function:

◆ ResetRecoDimuBranches()

void DimuAnaRUS::ResetRecoDimuBranches ( )

Definition at line 545 of file DimuAnaRUS.cc.

Referenced by process_event().

+ Here is the caller graph for this function:

◆ ResetTrueBranches()

void DimuAnaRUS::ResetTrueBranches ( )

Definition at line 512 of file DimuAnaRUS.cc.

Referenced by process_event().

+ Here is the caller graph for this function:

◆ SetDataTriggerEmu()

void DimuAnaRUS::SetDataTriggerEmu ( bool  enable)
inline

Definition at line 55 of file DimuAnaRUS.h.

References data_trig_mode, and mc_trig_mode.

◆ SetFileName()

void DimuAnaRUS::SetFileName ( const std::string &  name)
inline

Definition at line 87 of file DimuAnaRUS.h.

◆ SetMCDimuonMode()

void DimuAnaRUS::SetMCDimuonMode ( bool  enable)
inline

Definition at line 52 of file DimuAnaRUS.h.

References true_dimu_mode.

◆ SetMCTriggerEmu()

void DimuAnaRUS::SetMCTriggerEmu ( bool  enable)
inline

Definition at line 60 of file DimuAnaRUS.h.

References data_trig_mode, and mc_trig_mode.

◆ SetMCTrueMode()

void DimuAnaRUS::SetMCTrueMode ( bool  enable)
inline

Definition at line 51 of file DimuAnaRUS.h.

References true_mode.

◆ SetOutputFileName()

void DimuAnaRUS::SetOutputFileName ( const std::string  name)
inline

Definition at line 84 of file DimuAnaRUS.h.

◆ SetProcessId()

void DimuAnaRUS::SetProcessId ( int  proc_id_)
inline

Definition at line 67 of file DimuAnaRUS.h.

References proc_id.

◆ SetRecoDimuMode()

void DimuAnaRUS::SetRecoDimuMode ( bool  enable)
inline

Definition at line 54 of file DimuAnaRUS.h.

References reco_dimu_mode.

◆ SetRecoMode()

void DimuAnaRUS::SetRecoMode ( bool  enable)
inline

Definition at line 53 of file DimuAnaRUS.h.

References reco_mode.

◆ SetSaveOnlyDimuon()

void DimuAnaRUS::SetSaveOnlyDimuon ( bool  enable)
inline

Definition at line 65 of file DimuAnaRUS.h.

References saveDimuonOnly.

◆ SetSourceFlag()

void DimuAnaRUS::SetSourceFlag ( int  flag)
inline

Definition at line 66 of file DimuAnaRUS.h.

References SourceFlag.

◆ SetTreeName()

void DimuAnaRUS::SetTreeName ( const std::string &  name)
inline

Definition at line 86 of file DimuAnaRUS.h.

Member Data Documentation

◆ data_trig_mode

bool DimuAnaRUS::data_trig_mode

Definition at line 43 of file DimuAnaRUS.h.

Referenced by InitRun(), SetDataTriggerEmu(), and SetMCTriggerEmu().

◆ m_rs

UtilTrigger::TrigRoadset DimuAnaRUS::m_rs

Definition at line 40 of file DimuAnaRUS.h.

Referenced by InitRun().

◆ mc_trig_mode

bool DimuAnaRUS::mc_trig_mode

Definition at line 44 of file DimuAnaRUS.h.

Referenced by InitRun(), SetDataTriggerEmu(), and SetMCTriggerEmu().

◆ proc_id

int DimuAnaRUS::proc_id

Definition at line 47 of file DimuAnaRUS.h.

Referenced by process_event(), and SetProcessId().

◆ reco_dimu_mode

bool DimuAnaRUS::reco_dimu_mode

Definition at line 49 of file DimuAnaRUS.h.

Referenced by InitRun(), process_event(), and SetRecoDimuMode().

◆ reco_mode

bool DimuAnaRUS::reco_mode

Definition at line 42 of file DimuAnaRUS.h.

Referenced by InitRun(), process_event(), and SetRecoMode().

◆ saveDimuonOnly

bool DimuAnaRUS::saveDimuonOnly

Definition at line 45 of file DimuAnaRUS.h.

Referenced by SetSaveOnlyDimuon().

◆ SourceFlag

int DimuAnaRUS::SourceFlag

Definition at line 48 of file DimuAnaRUS.h.

Referenced by process_event(), and SetSourceFlag().

◆ true_dimu_mode

bool DimuAnaRUS::true_dimu_mode

Definition at line 46 of file DimuAnaRUS.h.

Referenced by SetMCDimuonMode().

◆ true_mode

bool DimuAnaRUS::true_mode

Definition at line 41 of file DimuAnaRUS.h.

Referenced by InitRun(), process_event(), and SetMCTrueMode().


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