|
Class Reference for E1039 Core & Analysis Software
|
An SQ interface class to hold one detector hit. More...
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/interface_main/SQHit.h>
Inheritance diagram for SQHit:
Collaboration diagram for SQHit:Public Types | |
| enum | HitQuality { InTime = 1<<0, HodoMask = 1<<1, TriggerMask = 1<<2 } |
| typedef std::map< short, float > | CellMap |
| key -> plateID, float -> edep More... | |
Public Member Functions | |
| SQHit () | |
| virtual | ~SQHit () |
| virtual void | identify (std::ostream &os=std::cout) const |
| virtual void | Reset () |
| Clear Event. More... | |
| virtual int | isValid () const |
| isValid returns non zero if object contains vailid data More... | |
| virtual SQHit * | Clone () const |
| virtual int | get_hit_id () const |
| Return the ID of this hit. More... | |
| virtual void | set_hit_id (const int a) |
| virtual short | get_detector_id () const |
| Return the detector ID of this hit. More... | |
| virtual void | set_detector_id (const short a) |
| virtual short | get_element_id () const |
| Return the element ID of this hit. More... | |
| virtual void | set_element_id (const short a) |
| virtual short | get_tower_id () const |
| Not valid in E1039. To be deleted. More... | |
| virtual void | set_tower_id (const short a) |
| virtual short | get_level () const |
| Return the trigger level of this hit. Meaningful only if this hit is of V1495 TDC. More... | |
| virtual void | set_level (const short a) |
| virtual float | get_tdc_time () const |
| Return the TDC time (nsec) of this hit. More... | |
| virtual void | set_tdc_time (const float a) |
| virtual float | get_drift_distance () const |
| Return the drift distance of this hit. Probably the value is not properly set at present. Meaningful only if this hit is of drift chamber or prop tube. More... | |
| virtual void | set_drift_distance (const float a) |
| virtual float | get_pos () const |
| Return the absolute position of this hit. Probably the value is not properly set at present. More... | |
| virtual void | set_pos (const float a) |
| virtual float | get_edep () const |
| Not valid in E1039. To be deleted. More... | |
| virtual void | set_edep (const float a) |
| virtual int | get_track_id () const |
| Return the track ID associated with this hit. Probably the value is not properly set at present. More... | |
| virtual void | set_track_id (const int a) |
| virtual PHG4HitDefs::keytype | get_g4hit_id () const |
| Return the Geant-hit ID associated with this hit. More... | |
| virtual void | set_g4hit_id (const PHG4HitDefs::keytype a) |
| virtual float | get_truth_x () const |
| Return the true x-position of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_x (const float a) |
| virtual float | get_truth_y () const |
| Return the true y-position of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_y (const float a) |
| virtual float | get_truth_z () const |
| Return the true z-position of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_z (const float a) |
| virtual float | get_truth_px () const |
| Return the true x-momentum of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_px (const float a) |
| virtual float | get_truth_py () const |
| Return the true y-momentum of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_py (const float a) |
| virtual float | get_truth_pz () const |
| Return the true z-momentum of this hit. Meaningful only if this hit is of MC. More... | |
| virtual void | set_truth_pz (const float a) |
| virtual bool | is_in_time () const |
| Return 'true' if this hit is in the time window. More... | |
| virtual void | set_in_time (const bool a) |
| virtual bool | is_hodo_mask () const |
| Return 'true' if this hit is accepted (or masked out?) by the hodoscope masking. Meaningful only if this hit is of drift chamber. More... | |
| virtual void | set_hodo_mask (const bool a) |
| virtual bool | is_trigger_mask () const |
| Return 'true' if this hit is accepted (or masked out?) by the trigger-road masking. Meaningful only if this hit is of drift chamber. More... | |
| virtual void | set_trigger_mask (const bool a) |
| virtual unsigned int | get_n_cells () const |
| Return the number of cells included in this hit. More... | |
| virtual CellMap | get_cells () const |
| Return the list of all cells included in this hit. More... | |
| virtual float | get_cell (unsigned int i) const |
| Return the 'edep' value of the i-th cell. More... | |
| virtual void | add_cell (unsigned int i, float a) |
Public Member Functions inherited from PHObject | |
| PHObject () | |
| ctor More... | |
| virtual | ~PHObject () |
| dtor More... | |
| virtual PHObject * | clone () const |
| Virtual copy constructor. More... | |
| virtual int | isValid (const float) const |
| virtual int | isValid (const double) const |
| virtual int | isValid (const int) const |
| virtual int | isValid (const unsigned int) const |
| virtual int | isImplemented (const float f) const |
| virtual int | isImplemented (const double f) const |
| virtual int | isImplemented (const int i) const |
| virtual int | isImplemented (const unsigned int i) const |
| void | SplitLevel (const int i) |
| int | SplitLevel () const |
| void | BufferSize (const int i) |
| int | BufferSize () const |
| typedef std::map<short, float> SQHit::CellMap |
| enum SQHit::HitQuality |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in SQHit_v1, SQMCHit_v1, SQCalHit_v1, and SQCalMCHit_v1.
Definition at line 35 of file SQHit.h.
References NULL.
Referenced by SQHitMap_v1::insert(), SQHitVector_v1::operator=(), SQHitMap_v1::operator=(), SQHitVector_v1::push_back(), SQHitMap_v1::SQHitMap_v1(), and SQHitVector_v1::SQHitVector_v1().
Here is the caller graph for this function:
|
inlinevirtual |
|
inlinevirtual |
Return the list of all cells included in this hit.
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Return the detector ID of this hit.
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 42 of file SQHit.h.
Referenced by UtilHodo::Track2D::AddHit(), mTrkEveDisplay::draw_hits(), UtilSQHit::FindFirstHits(), UtilSQHit::FindHits(), CalibInTime::process_event(), CalibXT::process_event(), SimpleTree::process_event(), TruthNodeMaker::process_event(), and DPTriggerAnalyzer::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
|
inlinevirtual |
Not valid in E1039. To be deleted.
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Return the element ID of this hit.
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 45 of file SQHit.h.
Referenced by mTrkEveDisplay::draw_hits(), UtilSQHit::FindFirstHits(), CalibInTime::process_event(), CalibXT::process_event(), AnaModule::process_event(), SimpleTree::process_event(), and DPTriggerAnalyzer::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Return the Geant-hit ID associated with this hit.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the ID of this hit.
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 39 of file SQHit.h.
Referenced by mTrkEveDisplay::draw_tracks(), SQHitMap_v1::insert(), SQHitMap_v1::operator=(), SimpleTree::process_event(), and SQHitMap_v1::SQHitMap_v1().
Here is the caller graph for this function:
|
inlinevirtual |
Return the trigger level of this hit. Meaningful only if this hit is of V1495 TDC.
Reimplemented in SQHit_v1.
Definition at line 51 of file SQHit.h.
Referenced by CalibInTime::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Return the number of cells included in this hit.
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Return the absolute position of this hit. Probably the value is not properly set at present.
Reimplemented in SQHit_v1.
Definition at line 60 of file SQHit.h.
Referenced by SimpleTree::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Return the TDC time (nsec) of this hit.
Reimplemented in SQHit_v1.
Definition at line 54 of file SQHit.h.
Referenced by UtilSQHit::FindFirstHits(), CalibInTime::process_event(), CalibXT::process_event(), and SimpleTree::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Not valid in E1039. To be deleted.
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Return the track ID associated with this hit. Probably the value is not properly set at present.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
Definition at line 66 of file SQHit.h.
Referenced by SimpleTree::process_event(), and TruthNodeMaker::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Return the true x-momentum of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the true y-momentum of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the true z-momentum of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the true x-position of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the true y-position of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Return the true z-position of this hit. Meaningful only if this hit is of MC.
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
identify Function from PHObject
| os | Output Stream |
Reimplemented from PHObject.
Reimplemented in SQHit_v1, SQMCHit_v1, SQCalHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
|
inlinevirtual |
Return 'true' if this hit is in the time window.
Reimplemented in SQHit_v1.
Definition at line 90 of file SQHit.h.
Referenced by SimpleTree::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
|
inlinevirtual |
isValid returns non zero if object contains vailid data
Reimplemented from PHObject.
Reimplemented in SQHit_v1, SQMCHit_v1, SQCalHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Clear Event.
Reimplemented from PHObject.
Reimplemented in SQHit_v1, SQMCHit_v1, SQCalHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 43 of file SQHit.h.
Referenced by Fun4AllSRawEventInputManager::E906ToE1039(), and Fun4AllEVIOInputManager::run().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 58 of file SQHit.h.
Referenced by SQDigitizer::digitizeEMCal(), and CalibXT::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 46 of file SQHit.h.
Referenced by Fun4AllSRawEventInputManager::E906ToE1039(), and Fun4AllEVIOInputManager::run().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQHit_v1, and SQCalHit_v1.
Definition at line 40 of file SQHit.h.
Referenced by Fun4AllSRawEventInputManager::E906ToE1039(), and Fun4AllEVIOInputManager::run().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 94 of file SQHit.h.
Referenced by SQDigitizer::digitizeEMCal().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 91 of file SQHit.h.
Referenced by SQDigitizer::digitizeEMCal(), Fun4AllSRawEventInputManager::E906ToE1039(), and CalibInTime::process_event().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 52 of file SQHit.h.
Referenced by Fun4AllEVIOInputManager::run().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 61 of file SQHit.h.
Referenced by SQDigitizer::digitizeEMCal().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQHit_v1.
Definition at line 55 of file SQHit.h.
Referenced by SQDigitizer::digitizeEMCal(), Fun4AllSRawEventInputManager::E906ToE1039(), and Fun4AllEVIOInputManager::run().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in SQCalHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.
|
inlinevirtual |
Reimplemented in SQMCHit_v1, and SQCalMCHit_v1.