![]() |
|
|||
File indexing completed on 2025-08-06 08:13:20
0001 /// --------------------------------------------------------------------------- 0002 /*! \file ClustInterfaces.cc 0003 * \author Derek Anderson 0004 * \date 02.23.2024 0005 * 0006 * Calorimeter cluster-related interfaces. 0007 */ 0008 /// --------------------------------------------------------------------------- 0009 0010 #define SCORRELATORUTILITIES_CLUSTINTERFACES_CC 0011 0012 // namespace definition 0013 #include "ClustInterfaces.h" 0014 0015 // make common namespaces implicit 0016 using namespace std; 0017 using namespace findNode; 0018 0019 0020 0021 // cluster interfaces ========================================================= 0022 0023 namespace SColdQcdCorrelatorAnalysis { 0024 0025 // -------------------------------------------------------------------------- 0026 //! Get raw cluster container from node tree 0027 // -------------------------------------------------------------------------- 0028 RawClusterContainer* Interfaces::GetClusterStore(PHCompositeNode* topNode, const string node) { 0029 0030 // grab clusters 0031 RawClusterContainer* clustStore = getClass<RawClusterContainer>(topNode, node.data()); 0032 if (!clustStore) { 0033 cout << PHWHERE 0034 << "PANIC: " << node << " node is missing!" 0035 << endl; 0036 assert(clustStore); 0037 } 0038 return clustStore; 0039 0040 } // end 'GetClusterStore(PHCompositeNode*, string)' 0041 0042 0043 0044 // -------------------------------------------------------------------------- 0045 //! Get raw clusters from container 0046 // -------------------------------------------------------------------------- 0047 RawClusterContainer::ConstRange Interfaces::GetClusters(PHCompositeNode* topNode, const string store) { 0048 0049 // get store and return range of clusters 0050 RawClusterContainer* clustStore = GetClusterStore(topNode, store); 0051 return clustStore -> getClusters(); 0052 0053 } // end 'GetClusters(PHCompositeNode*, string)' 0054 0055 } // end SColdQcdCorrealtorAnalysis namespace 0056 0057 // end ------------------------------------------------------------------------
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |