|
Class Reference for E1039 Core & Analysis Software
|
An example class to analyze dimuons stored as SRecEvent.
More...
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-analysis/RecoData2024/src/AnaDimuonSRec.h>
Inheritance diagram for AnaDimuonSRec:
Collaboration diagram for AnaDimuonSRec:Public Member Functions | |
| AnaDimuonSRec (const std::string &name="AnaDimuonSRec") | |
| virtual | ~AnaDimuonSRec () |
| 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 | SetOutputFileName (const std::string name) |
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 void | AnalyzeTree (TChain *tree) |
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... | |
An example class to analyze dimuons stored as SRecEvent.
This class should be used instead of AnaDimuon if tracks/dimuons that you analyze are saved as SRecEvent instead of SQTrackVector/SQDimuonVector.
Definition at line 17 of file AnaDimuonSRec.h.
| AnaDimuonSRec::AnaDimuonSRec | ( | const std::string & | name = "AnaDimuonSRec" | ) |
Definition at line 22 of file AnaDimuonSRec.cc.
|
virtual |
Definition at line 34 of file AnaDimuonSRec.cc.
|
static |
Definition at line 173 of file AnaDimuonSRec.cc.
References DimuonData::chisq_dump_neg, DimuonData::chisq_dump_pos, DimuonData::chisq_neg, DimuonData::chisq_pos, DimuonData::chisq_target_neg, DimuonData::chisq_target_pos, DimuonData::chisq_upstream_neg, DimuonData::chisq_upstream_pos, EventData::D1, EventData::D2, EventData::D3m, EventData::D3p, EventData::event_id, EventData::fpga_bits, DimuonData::mom, DimuonData::mom_neg, DimuonData::mom_pos, DimuonData::mom_target, DimuonData::n_hits_neg, DimuonData::n_hits_pos, DimuonData::pos, DimuonData::pos_neg, DimuonData::pos_pos, EventData::run_id, and EventData::spill_id.
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 165 of file AnaDimuonSRec.cc.
References Fun4AllReturnCodes::EVENT_OK.
|
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 39 of file AnaDimuonSRec.cc.
References 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.
Definition at line 44 of file AnaDimuonSRec.cc.
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, SQRun::get_v1495_id(), UtilTrigger::TrigRoadset::LoadConfig(), and UtilTrigger::TrigRoadset::str().
Here is the call graph for this function:
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 71 of file AnaDimuonSRec.cc.
References SQHitVector::begin(), DimuonData::chisq_dump_neg, DimuonData::chisq_dump_pos, DimuonData::chisq_neg, DimuonData::chisq_pos, DimuonData::chisq_target_neg, DimuonData::chisq_target_pos, DimuonData::chisq_upstream_neg, DimuonData::chisq_upstream_pos, EventData::D1, EventData::D2, EventData::D3m, EventData::D3p, SQHitVector::end(), EventData::event_id, Fun4AllReturnCodes::EVENT_OK, UtilTrigger::TrigRoads::FindRoad(), EventData::fpga_bits, SRecTrack::get_chisq(), SRecTrack::get_chisq_dump(), SRecTrack::get_chsiq_upstream(), SQHit::get_detector_id(), SQEvent::get_event_id(), SRecDimuon::get_mom(), SRecTrack::get_mom_vtx(), SRecTrack::get_num_hits(), SRecDimuon::get_pos(), SRecTrack::get_pos_dump(), SRecTrack::get_pos_target(), SRecTrack::get_pos_vtx(), SQEvent::get_run_id(), SQEvent::get_spill_id(), SRecDimuon::get_track_id_neg(), SRecDimuon::get_track_id_pos(), SQEvent::get_trigger(), SRecTrack::getChisqTarget(), SRecEvent::getDimuon(), SRecEvent::getNDimuons(), SRecEvent::getTrack(), SRecTrack::getTriggerRoad(), SQEvent::MATRIX1, DimuonData::mom, DimuonData::mom_dump, DimuonData::mom_neg, DimuonData::mom_pos, DimuonData::mom_target, DimuonData::n_hits_neg, DimuonData::n_hits_pos, DimuonData::neg_bot, DimuonData::neg_top, UtilTrigger::TrigRoadset::NegBot(), UtilTrigger::TrigRoadset::NegTop(), SQEvent::NIM1, EventData::nim_bits, SRecDimuon::p_neg_dump, SRecDimuon::p_neg_target, SRecDimuon::p_pos_dump, SRecDimuon::p_pos_target, DimuonData::pos, DimuonData::pos_bot, DimuonData::pos_dump_neg, DimuonData::pos_dump_pos, DimuonData::pos_neg, DimuonData::pos_pos, DimuonData::pos_target_neg, DimuonData::pos_target_pos, DimuonData::pos_top, UtilTrigger::TrigRoadset::PosBot(), UtilTrigger::TrigRoadset::PosTop(), DimuonData::road_neg, DimuonData::road_pos, EventData::run_id, and EventData::spill_id.
Here is the call graph for this function:
|
inline |
Definition at line 37 of file AnaDimuonSRec.h.