Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // ----------------------------------------------------------------------------
0002 // 'MatcherComparatorOptions.h'
0003 // Derek Anderson
0004 // 01.30.2024
0005 //
0006 // Options for the STrackMatcherComparator module.
0007 // ----------------------------------------------------------------------------
0008 
0009 #ifndef MATCHERCOMPARATOROPTIONS_H
0010 #define MATCHERCOMPARATOROPTIONS_H 
0011 
0012 // c++ utilities
0013 #include <string>
0014 #include <vector>
0015 #include <utility>
0016 // analysis utilities
0017 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorConfig.h"
0018 #include "/sphenix/user/danderson/install/include/strackmatchercomparator/STrackMatcherComparatorHistDef.h"
0019 
0020 // make common namespaces implicit
0021 using namespace std;
0022 
0023 
0024 
0025 namespace MatcherComparatorOptions {
0026 
0027   // set up configuration -----------------------------------------------------
0028 
0029   STrackMatcherComparatorConfig GetConfig() {
0030 
0031     // simulation info
0032     const vector<string> cfg_info = {
0033       "#bf{#it{sPHENIX}} Simulation",
0034       "1 #pi^{-}/event, p_{T} = 10 GeV/c",
0035       "#bf{Only #pi^{-}}"
0036     };
0037 
0038     // phi sectors
0039     const vector<pair<float, float>> cfg_sectors = {
0040       make_pair(-2.92, 0.12),
0041       make_pair(-2.38, 0.05),
0042       make_pair(-1.93, 0.18),
0043       make_pair(-1.33, 0.07),
0044       make_pair(-0.90, 0.24),
0045       make_pair(-0.29, 0.09),
0046       make_pair(0.23,  0.11),
0047       make_pair(0.73,  0.10),
0048       make_pair(1.28,  0.10),
0049       make_pair(1.81,  0.08),
0050       make_pair(2.23,  0.18),
0051       make_pair(2.80,  0.17)
0052     };
0053 
0054     STrackMatcherComparatorConfig cfg {
0055       .outFileName     = "matchComparison.noVtxDistribution_vzM1010.pt10num1evt500pim.d8m2y2024.root",
0056       .newInFileName   = "input/merged/sPhenixG4_oneMatchPerParticleAndEmbedScanOn_noVtxDistribution_newMatcher.pt10num1evt500pim.d8m2y2024.root",
0057       .oldInFileName   = "input/merged/sPhenixG4_oneMatchPerParticleAndEmbedScanOn_noVtxDistribution_oldEval.pt10num1evt500pim.d8m2y2024.root",
0058       .useOnlyPrimTrks = true,
0059       .doZVtxCut       = true,
0060       .doPhiCut        = true,
0061       .oddPtFrac       = {0.5,  1.50},
0062       .zVtxRange       = {-10., 10.},
0063       .phiSectors      = cfg_sectors,
0064       .info            = cfg_info,
0065       .doIntNorm       = true,
0066       .matchVertScales = true
0067     };
0068     return cfg;
0069 
0070   }  // end 'GetConfig()'
0071 
0072 
0073 
0074   // set up histogram definition ----------------------------------------------
0075 
0076   STrackMatcherComparatorHistDef GetHistDef() {
0077 
0078     // no. of histogram bins
0079     const uint32_t def_nPtBins = 101;
0080 
0081     // histogram bin ranges
0082     const pair<float, float> def_xPtBins = {-0.5, 100.5};
0083 
0084     STrackMatcherComparatorHistDef def;
0085     def.nPtBins = def_nPtBins;
0086     def.xPtBins = def_xPtBins;
0087     return def;
0088 
0089   }  // end 'GetHistDef()'
0090 
0091 }  // end MatcherComparatorOptions namespace
0092 
0093 #endif
0094 
0095 // end ------------------------------------------------------------------------