Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HF-Particle/HFTrigger/HFTrigger.h>
Public Member Functions | |
HFTrigger () | |
HFTrigger (const std::string &name) | |
virtual | ~HFTrigger () |
int | Init (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
bool | runTrigger (PHCompositeNode *topNode) |
bool | runOneTrackTrigger (std::vector< Track > Tracks, std::vector< Vertex > Vertices) |
bool | runTwoTrackTrigger (std::vector< Track > Tracks, std::vector< Vertex > Vertices) |
void | calculateMultiplicity (PHCompositeNode *topNode, float &meanMultiplicity, float &asymmetryMultiplicity) |
bool | runHighMultiplicityTrigger (float meanMultiplicity, float asymmetryMultiplicity) |
bool | runLowMultiplicityTrigger (float meanMultiplicity, float asymmetryMultiplicity) |
Vertex | makeVertex (PHCompositeNode *topNode) |
std::vector< Vertex > | makeAllPrimaryVertices (PHCompositeNode *topNode) |
Track | makeTrack (PHCompositeNode *topNode) |
std::vector< Track > | makeAllTracks (PHCompositeNode *topNode) |
int | decomposeTrack (Track track, TrackX &trackPosition, TrackP &trackMomentum) |
float | calcualteTrackVertex2DDCA (Track track, Vertex vertex) |
float | calcualteTrackVertexDCA (Track track, Vertex vertex) |
float | calcualteTrackTrackDCA (Track trackOne, Track trackTwo) |
void | printTrigger () |
void | requireOneTrackTrigger (bool useTrigger) |
void | requireTwoTrackTrigger (bool useTrigger) |
void | requireLowMultiplicityTrigger (bool useTrigger) |
void | requireHighMultiplicityTrigger (bool useTrigger) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | InitRun (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 Attributes | |
bool | m_useOneTrackTrigger = false |
bool | m_useTwoTrackTrigger = false |
bool | m_useLowMultiplicityTrigger = false |
bool | m_useHighMultiplicityTrigger = false |
SvtxVertexMap * | m_dst_vertexmap = nullptr |
SvtxTrackMap * | m_dst_trackmap = nullptr |
SvtxVertex * | m_dst_vertex = nullptr |
SvtxTrack * | m_dst_track = nullptr |
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") | |
Definition at line 38 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 38 of file HFTrigger.h
HFTrigger::HFTrigger | ( | ) |
Definition at line 28 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 28 of file HFTrigger.cc
|
explicit |
Definition at line 37 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 37 of file HFTrigger.cc
|
inlinevirtual |
Definition at line 45 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 45 of file HFTrigger.h
Definition at line 305 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 305 of file HFTrigger.cc
References decomposeTrack().
Referenced by runTwoTrackTrigger().
Definition at line 277 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 277 of file HFTrigger.cc
References decomposeTrack(), and Acts::Test::pos.
Definition at line 292 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 292 of file HFTrigger.cc
References decomposeTrack(), and Acts::Test::pos.
Referenced by runOneTrackTrigger().
void HFTrigger::calculateMultiplicity | ( | PHCompositeNode * | topNode, |
float & | meanMultiplicity, | ||
float & | asymmetryMultiplicity | ||
) |
Definition at line 165 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 165 of file HFTrigger.cc
References TrkrHitSetContainer::getHitSets(), i, TrkrDefs::inttId, and TrkrHitSet::size().
Referenced by runTrigger().
Definition at line 266 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 266 of file HFTrigger.cc
References i.
Referenced by calcualteTrackTrackDCA(), calcualteTrackVertex2DDCA(), and calcualteTrackVertexDCA().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 87 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 87 of file HFTrigger.cc
|
virtual |
Called during initialization. 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 46 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 46 of file HFTrigger.cc
std::vector< Vertex > HFTrigger::makeAllPrimaryVertices | ( | PHCompositeNode * | topNode | ) |
Definition at line 224 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 224 of file HFTrigger.cc
References SvtxVertexMap::begin(), SvtxVertexMap::end(), m_dst_vertex, m_dst_vertexmap, and makeVertex().
Referenced by runTrigger().
std::vector< Track > HFTrigger::makeAllTracks | ( | PHCompositeNode * | topNode | ) |
Definition at line 252 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 252 of file HFTrigger.cc
References SvtxTrackMap::begin(), SvtxTrackMap::end(), m_dst_track, m_dst_trackmap, makeTrack(), and tracks().
Referenced by runTrigger().
Track HFTrigger::makeTrack | ( | PHCompositeNode * | topNode | ) |
Definition at line 238 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 238 of file HFTrigger.cc
References SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), and m_dst_track.
Referenced by makeAllTracks().
Vertex HFTrigger::makeVertex | ( | PHCompositeNode * | topNode | ) |
Definition at line 213 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 213 of file HFTrigger.cc
References SvtxVertex::get_x(), SvtxVertex::get_y(), SvtxVertex::get_z(), and m_dst_vertex.
Referenced by makeAllPrimaryVertices().
void HFTrigger::printTrigger | ( | ) |
Definition at line 323 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 323 of file HFTrigger.cc
References m_useHighMultiplicityTrigger, m_useLowMultiplicityTrigger, m_useOneTrackTrigger, and m_useTwoTrackTrigger.
Referenced by runTrigger().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 51 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 51 of file HFTrigger.cc
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_useHighMultiplicityTrigger, m_useLowMultiplicityTrigger, m_useOneTrackTrigger, m_useTwoTrackTrigger, runTrigger(), Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_MORE, and Fun4AllBase::VERBOSITY_SOME.
|
inline |
Definition at line 87 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 87 of file HFTrigger.h
References m_useHighMultiplicityTrigger.
|
inline |
Definition at line 86 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 86 of file HFTrigger.h
References m_useLowMultiplicityTrigger.
|
inline |
Definition at line 84 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 84 of file HFTrigger.h
References m_useOneTrackTrigger.
|
inline |
Definition at line 85 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 85 of file HFTrigger.h
References m_useTwoTrackTrigger.
bool HFTrigger::runHighMultiplicityTrigger | ( | float | meanMultiplicity, |
float | asymmetryMultiplicity | ||
) |
Definition at line 189 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 189 of file HFTrigger.cc
References HFTriggerRequirement::asymmHighMult, and HFTriggerRequirement::meanHighMult.
Referenced by runTrigger().
bool HFTrigger::runLowMultiplicityTrigger | ( | float | meanMultiplicity, |
float | asymmetryMultiplicity | ||
) |
Definition at line 201 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 201 of file HFTrigger.cc
References HFTriggerRequirement::asymmLowMult, and HFTriggerRequirement::meanLowMult.
Referenced by runTrigger().
Definition at line 119 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 119 of file HFTrigger.cc
References calcualteTrackVertexDCA(), Acts::UnitConstants::min, graph_fancy::pT, HFTriggerRequirement::trackPT, and HFTriggerRequirement::trackVertexDCA.
Referenced by runTrigger(), and runTwoTrackTrigger().
bool HFTrigger::runTrigger | ( | PHCompositeNode * | topNode | ) |
Definition at line 92 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 92 of file HFTrigger.cc
References parse_cmake_options::begin, calculateMultiplicity(), fixGDML::element, end, m_useHighMultiplicityTrigger, m_useLowMultiplicityTrigger, m_useOneTrackTrigger, m_useTwoTrackTrigger, makeAllPrimaryVertices(), makeAllTracks(), printTrigger(), runHighMultiplicityTrigger(), runLowMultiplicityTrigger(), runOneTrackTrigger(), runTwoTrackTrigger(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
Referenced by process_event().
Definition at line 138 of file HFTrigger.cc.
View newest version in sPHENIX GitHub at line 138 of file HFTrigger.cc
References calcualteTrackTrackDCA(), i, j, runOneTrackTrigger(), and HFTriggerRequirement::trackTrackDCA.
Referenced by runTrigger().
|
private |
Definition at line 99 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 99 of file HFTrigger.h
Referenced by makeAllTracks(), and makeTrack().
|
private |
Definition at line 97 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 97 of file HFTrigger.h
Referenced by makeAllTracks().
|
private |
Definition at line 98 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 98 of file HFTrigger.h
Referenced by makeAllPrimaryVertices(), and makeVertex().
|
private |
Definition at line 96 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 96 of file HFTrigger.h
Referenced by makeAllPrimaryVertices().
|
private |
Definition at line 94 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 94 of file HFTrigger.h
Referenced by printTrigger(), process_event(), requireHighMultiplicityTrigger(), and runTrigger().
|
private |
Definition at line 93 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 93 of file HFTrigger.h
Referenced by printTrigger(), process_event(), requireLowMultiplicityTrigger(), and runTrigger().
|
private |
Definition at line 91 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 91 of file HFTrigger.h
Referenced by printTrigger(), process_event(), requireOneTrackTrigger(), and runTrigger().
|
private |
Definition at line 92 of file HFTrigger.h.
View newest version in sPHENIX GitHub at line 92 of file HFTrigger.h
Referenced by printTrigger(), process_event(), requireTwoTrackTrigger(), and runTrigger().