Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:13:21

0001 /// ---------------------------------------------------------------------------
0002 /*! \file   ParTools.h
0003  *  \author Derek Anderson
0004  *  \file   03.06.2024
0005  *
0006  *  Particle-related interfaces.
0007  */
0008 /// ---------------------------------------------------------------------------
0009 
0010 #ifndef SCORRELATORUTILITIES_PARINTERFACES_H
0011 #define SCORRELATORUTILITIES_PARINTERFACES_H
0012 
0013 #pragma GCC diagnostic push
0014 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
0015 
0016 // c++ utilities
0017 #include <cassert>
0018 // phool libraries
0019 #include <phool/phool.h>
0020 #include <phool/getClass.h>
0021 #include <phool/PHIODataNode.h>
0022 #include <phool/PHNodeIterator.h>
0023 #include <phool/PHCompositeNode.h>
0024 // PHG4 libraries
0025 #include <g4main/PHG4TruthInfoContainer.h>
0026 // hepmc libraries
0027 #include <HepMC/GenEvent.h>
0028 #include <phhepmc/PHHepMCGenEvent.h>
0029 #include <phhepmc/PHHepMCGenEventMap.h>
0030 
0031 #pragma GCC diagnostic pop
0032 
0033 // make common namespaces implicit
0034 using namespace std;
0035 
0036 
0037 
0038 namespace SColdQcdCorrelatorAnalysis {
0039   namespace Interfaces {
0040 
0041     // particle interfaces ----------------------------------------------------
0042 
0043     PHG4TruthInfoContainer*            GetTruthContainer(PHCompositeNode* topNode);
0044     PHG4TruthInfoContainer::ConstRange GetPrimaries(PHCompositeNode* topNode);
0045     PHHepMCGenEventMap*                GetMcEventMap(PHCompositeNode* topNode);
0046     PHHepMCGenEvent*                   GetMcEvent(PHCompositeNode* topNode, const int iEvtToGrab);
0047     HepMC::GenEvent*                   GetGenEvent(PHCompositeNode* topNode, const int iEvtToGrab);
0048 
0049   }  // end Interfaces namespace
0050 }  // end SColdQcdCorrealtorAnalysis namespace
0051 
0052 #endif
0053 
0054 // end ------------------------------------------------------------------------