Analysis Software
Documentation for sPHENIX simulation software
|
Definition of this analysis module class. More...
#include <analysis/blob/master/MultiDetectorMultiplicity/src/MultiDetectorMultiplicity.h>
Public Types | |
enum | OBJECT { VERTEX = 0, CENTRALITY = 1, TRACKS = 2, MVTXCLUSTERS = 3, EMCALTOWERS = 4, IHCALTOWERS = 5, OHCALTOWERS = 6, EPDTOWERS = 7 } |
Public Member Functions | |
MultiDetectorMultiplicity (const std::string &name="MultiDetectorMultiplicity", const std::string &fname="MultiDetectorMultiplicity.root") | |
Constructor. | |
virtual | ~MultiDetectorMultiplicity () |
int | Init (PHCompositeNode *) |
SubsysReco initialize processing method. | |
int | process_event (PHCompositeNode *) |
SubsysReco event processing method. | |
int | End (PHCompositeNode *) |
SubsysReco end processing method. | |
void | initializeObjects () |
float | getFilteredNtracks (PHCompositeNode *topNode) |
float | getMVTXnclusters (PHCompositeNode *topNode) |
float | getEMCalTotalEnergy (PHCompositeNode *topNode) |
float | getIHCalTotalEnergy (PHCompositeNode *topNode) |
float | getOHCalTotalEnergy (PHCompositeNode *topNode) |
float | getsEPDTotalEnergy (PHCompositeNode *topNode) |
void | setCentralityHistoLabel (TH2 *histo, bool doYaxisLabels=false) |
bool | isVertexAccepted (PHCompositeNode *topNode) |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition of this analysis module class.
Definition at line 14 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 14 of file MultiDetectorMultiplicity.h
Definition at line 17 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 17 of file MultiDetectorMultiplicity.h
MultiDetectorMultiplicity::MultiDetectorMultiplicity | ( | const std::string & | name = "MultiDetectorMultiplicity" , |
const std::string & | filename = "MultiDetectorMultiplicity.root" |
||
) |
Constructor.
Fun4All includes.
ROOT includes C++ includes MultiDetectorMultiplicity is a class developed to cross-check multiplicity and energy correlation in different subsystems Author: Antonio Silva (anton) Constructor of module io.s pheni x@gm ail.c om
Initialize variables and trees so we don't accidentally access memory that was never allocated
Definition at line 44 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 44 of file MultiDetectorMultiplicity.cc
|
virtual |
Destructor of module
Definition at line 56 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 56 of file MultiDetectorMultiplicity.cc
|
virtual |
SubsysReco end processing method.
End the module and finish any data collection. Clean up any remaining loose ends
Change to the outfile
Write and close the outfile
Clean up pointers and associated histos/trees in TFile
Reimplemented from SubsysReco.
Definition at line 160 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 160 of file MultiDetectorMultiplicity.cc
References _EMCALenergy_IHCALenergy, _EMCALenergy_OHCALenergy, _EPDcentrality_AllCALenergy, _EPDcentrality_EMCALenergy, _EPDcentrality_EPDenergy, _EPDcentrality_IHCALenergy, _EPDcentrality_MBDcentrality, _EPDcentrality_MVTXclusters, _EPDcentrality_OHCALenergy, _EPDcentrality_tracks, _EPDenergy_AllCALenergy, _EPDenergy_EMCALenergy, _EPDenergy_IHCALenergy, _EPDenergy_MVTXclusters, _EPDenergy_OHCALenergy, _EPDenergy_tracks, _IHCALenergy_OHCALenergy, _MBDcentrality_AllCALenergy, _MBDcentrality_EMCALenergy, _MBDcentrality_EPDenergy, _MBDcentrality_IHCALenergy, _MBDcentrality_MVTXclusters, _MBDcentrality_OHCALenergy, _MBDcentrality_tracks, _MVTXclusters_AllCALenergy, _MVTXclusters_EMCALenergy, _MVTXclusters_IHCALenergy, _MVTXclusters_OHCALenergy, _outfile, _SubsystemObjectsFail, _tracks_AllCALenergy, _tracks_EMCALenergy, _tracks_IHCALenergy, _tracks_MVTXclusters, _tracks_OHCALenergy, and Fun4AllBase::Verbosity().
float MultiDetectorMultiplicity::getEMCalTotalEnergy | ( | PHCompositeNode * | topNode | ) |
Definition at line 419 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 419 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), i, PHWHERE, and TowerInfoContainer::size().
Referenced by process_event().
float MultiDetectorMultiplicity::getFilteredNtracks | ( | PHCompositeNode * | topNode | ) |
Definition at line 313 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 313 of file MultiDetectorMultiplicity.cc
References _nlayers_intt, _nlayers_maps, _nlayers_tpc, _SubsystemObjectsFail, SvtxTrackMap::begin(), SvtxTrackMap::end(), SvtxTrack::get_quality(), SvtxTrack::get_silicon_seed(), SvtxTrack::get_tpc_seed(), TrkrDefs::getLayer(), layer, and PHWHERE.
Referenced by process_event().
float MultiDetectorMultiplicity::getIHCalTotalEnergy | ( | PHCompositeNode * | topNode | ) |
Definition at line 444 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 444 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), i, PHWHERE, and TowerInfoContainer::size().
Referenced by process_event().
float MultiDetectorMultiplicity::getMVTXnclusters | ( | PHCompositeNode * | topNode | ) |
Definition at line 386 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 386 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, TrkrClusterContainer::getClusters(), TrkrClusterContainer::getHitSetKeys(), TrkrDefs::mvtxId, and PHWHERE.
Referenced by process_event().
float MultiDetectorMultiplicity::getOHCalTotalEnergy | ( | PHCompositeNode * | topNode | ) |
Definition at line 469 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 469 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), i, PHWHERE, and TowerInfoContainer::size().
Referenced by process_event().
float MultiDetectorMultiplicity::getsEPDTotalEnergy | ( | PHCompositeNode * | topNode | ) |
Definition at line 494 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 494 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), i, PHWHERE, and TowerInfoContainer::size().
Referenced by process_event().
|
virtual |
SubsysReco initialize processing method.
Initialize the module and prepare looping over events
Reimplemented from SubsysReco.
Definition at line 64 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 64 of file MultiDetectorMultiplicity.cc
References initializeObjects(), and Fun4AllBase::Verbosity().
void MultiDetectorMultiplicity::initializeObjects | ( | ) |
Definition at line 226 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 226 of file MultiDetectorMultiplicity.cc
References _allcal_bin_max, _emcal_bin_max, _EMCALenergy_IHCALenergy, _EMCALenergy_OHCALenergy, _epd_bin_max, _EPDcentrality_AllCALenergy, _EPDcentrality_EMCALenergy, _EPDcentrality_EPDenergy, _EPDcentrality_IHCALenergy, _EPDcentrality_MBDcentrality, _EPDcentrality_MVTXclusters, _EPDcentrality_OHCALenergy, _EPDcentrality_tracks, _EPDenergy_AllCALenergy, _EPDenergy_EMCALenergy, _EPDenergy_IHCALenergy, _EPDenergy_MVTXclusters, _EPDenergy_OHCALenergy, _EPDenergy_tracks, _ihcal_bin_max, _IHCALenergy_OHCALenergy, _MBDcentrality_AllCALenergy, _MBDcentrality_EMCALenergy, _MBDcentrality_EPDenergy, _MBDcentrality_IHCALenergy, _MBDcentrality_MVTXclusters, _MBDcentrality_OHCALenergy, _MBDcentrality_tracks, _mvtx_bin_max, _MVTXclusters_AllCALenergy, _MVTXclusters_EMCALenergy, _MVTXclusters_IHCALenergy, _MVTXclusters_OHCALenergy, _nbins, _ohcal_bin_max, _outfile, _outfilename, _SubsystemObjectsFail, _track_bin_max, _tracks_AllCALenergy, _tracks_EMCALenergy, _tracks_IHCALenergy, _tracks_MVTXclusters, _tracks_OHCALenergy, and setCentralityHistoLabel().
Referenced by Init().
bool MultiDetectorMultiplicity::isVertexAccepted | ( | PHCompositeNode * | topNode | ) |
Definition at line 528 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 528 of file MultiDetectorMultiplicity.cc
References _SubsystemObjectsFail, _zVertexAcceptance, GlobalVertexMap::begin(), GlobalVertexMap::empty(), and GlobalVertex::get_z().
Referenced by process_event().
|
virtual |
SubsysReco event processing method.
Main workhorse function where each event is looped over and data from each event is collected from the node tree for analysis
Reimplemented from SubsysReco.
Definition at line 80 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 80 of file MultiDetectorMultiplicity.cc
References _EMCALenergy_IHCALenergy, _EMCALenergy_OHCALenergy, _epd_centrality, _EPDcentrality_AllCALenergy, _EPDcentrality_EMCALenergy, _EPDcentrality_EPDenergy, _EPDcentrality_IHCALenergy, _EPDcentrality_MBDcentrality, _EPDcentrality_MVTXclusters, _EPDcentrality_OHCALenergy, _EPDcentrality_tracks, _EPDenergy_AllCALenergy, _EPDenergy_EMCALenergy, _EPDenergy_IHCALenergy, _EPDenergy_MVTXclusters, _EPDenergy_OHCALenergy, _EPDenergy_tracks, _IHCALenergy_OHCALenergy, _mbd_centrality, _MBDcentrality_AllCALenergy, _MBDcentrality_EMCALenergy, _MBDcentrality_EPDenergy, _MBDcentrality_IHCALenergy, _MBDcentrality_MVTXclusters, _MBDcentrality_OHCALenergy, _MBDcentrality_tracks, _MVTXclusters_AllCALenergy, _MVTXclusters_EMCALenergy, _MVTXclusters_IHCALenergy, _MVTXclusters_OHCALenergy, _SubsystemObjectsFail, _tracks_AllCALenergy, _tracks_EMCALenergy, _tracks_IHCALenergy, _tracks_MVTXclusters, _tracks_OHCALenergy, Fun4AllReturnCodes::ABORTEVENT, Enable::CENTRALITY, Fun4AllReturnCodes::EVENT_OK, CentralityInfo::get_centile(), getEMCalTotalEnergy(), getFilteredNtracks(), getIHCalTotalEnergy(), getMVTXnclusters(), getOHCalTotalEnergy(), getsEPDTotalEnergy(), isVertexAccepted(), and Fun4AllBase::Verbosity().
void MultiDetectorMultiplicity::setCentralityHistoLabel | ( | TH2 * | histo, |
bool | doYaxisLabels = false |
||
) |
Definition at line 519 of file MultiDetectorMultiplicity.cc.
View newest version in sPHENIX GitHub at line 519 of file MultiDetectorMultiplicity.cc
References i.
Referenced by initializeObjects().
|
private |
Definition at line 122 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 122 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 119 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 119 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 75 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 75 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 76 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 76 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 123 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 123 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 114 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 114 of file MultiDetectorMultiplicity.h
Referenced by process_event().
|
private |
Definition at line 92 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 92 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 89 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 89 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 93 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 93 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 90 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 90 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 95 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 95 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 88 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 88 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 91 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 91 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 87 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 87 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 102 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 102 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 99 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 99 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 100 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 100 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 98 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 98 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 101 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 101 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 97 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 97 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 120 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 120 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 77 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 77 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 113 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 113 of file MultiDetectorMultiplicity.h
Referenced by process_event().
|
private |
Definition at line 84 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 84 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 81 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 81 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 85 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 85 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 82 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 82 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 80 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 80 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 83 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 83 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 79 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 79 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 118 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 118 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 73 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 73 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 70 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 70 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 71 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 71 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 72 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 72 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 116 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 116 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 60 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 60 of file MultiDetectorMultiplicity.h
Referenced by getFilteredNtracks().
|
private |
Definition at line 59 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 59 of file MultiDetectorMultiplicity.h
Referenced by getFilteredNtracks().
|
private |
Definition at line 61 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 61 of file MultiDetectorMultiplicity.h
Referenced by getFilteredNtracks().
|
private |
Definition at line 121 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 121 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
TFile to hold the following TTrees and histograms.
Definition at line 112 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 112 of file MultiDetectorMultiplicity.h
Referenced by End(), and initializeObjects().
|
private |
String to contain the outfile name containing the trees.
Definition at line 57 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 57 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 107 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 107 of file MultiDetectorMultiplicity.h
Referenced by End(), getEMCalTotalEnergy(), getFilteredNtracks(), getIHCalTotalEnergy(), getMVTXnclusters(), getOHCalTotalEnergy(), getsEPDTotalEnergy(), initializeObjects(), isVertexAccepted(), and process_event().
|
private |
Definition at line 117 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 117 of file MultiDetectorMultiplicity.h
Referenced by initializeObjects().
|
private |
Definition at line 67 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 67 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
2D Histograms
Definition at line 64 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 64 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 65 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 65 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 68 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 68 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 66 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 66 of file MultiDetectorMultiplicity.h
Referenced by End(), initializeObjects(), and process_event().
|
private |
Definition at line 58 of file MultiDetectorMultiplicity.h.
View newest version in sPHENIX GitHub at line 58 of file MultiDetectorMultiplicity.h
Referenced by isVertexAccepted().