Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:11:03

0001 // ----------------------------------------------------------------------------
0002 // 'RunMatcherComparator.C'
0003 // Derek Anderson
0004 // 01.30.2024
0005 //
0006 // root macro to run the STrackMatcherComparator module.
0007 // ----------------------------------------------------------------------------
0008 
0009 // analysis specific utilities
0010 #include "MatcherComparatorOptions.h"
0011 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparator.h"
0012 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorConfig.h"
0013 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorHistDef.h"
0014 
0015 // load libraries
0016 R__LOAD_LIBRARY(/sphenix/user/danderson/install/lib/libstrackmatchercomparator.so)
0017 
0018 
0019 
0020 // macro body -----------------------------------------------------------------
0021 
0022 void RunMatcherComparator() {
0023 
0024   // get options
0025   STrackMatcherComparatorConfig  config = MatcherComparatorOptions::GetConfig();
0026   STrackMatcherComparatorHistDef histos = MatcherComparatorOptions::GetHistDef();
0027 
0028   // run module
0029   STrackMatcherComparator* comparator = new STrackMatcherComparator(config);
0030   comparator -> SetHistDef(histos);
0031   comparator -> Init();
0032   comparator -> Analyze();
0033   comparator -> End();
0034   return;
0035 
0036 }
0037 
0038 // end ------------------------------------------------------------------------