Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LambdaJetHunterOptions.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LambdaJetHunterOptions.h
1 // ----------------------------------------------------------------------------
2 // 'LambdaJetHunterOptions.h'
3 // Derek Anderson
4 // 01.25.2024
5 //
6 // Options for the SLambdaJetHunter module.
7 // ----------------------------------------------------------------------------
8 
9 #ifndef LAMBDAJETHUNTEROPTIONS_H
10 #define LAMBDAJETHUNTEROPTIONS_H
11 
12 // c++ utilities
13 #include <string>
14 #include <utility>
15 // analysis utilities
16 #include "/sphenix/user/danderson/install/include/scorrelatorutilities/EvtTools.h"
17 #include "/sphenix/user/danderson/install/include/scorrelatorutilities/GenTools.h"
18 #include "/sphenix/user/danderson/install/include/scorrelatorutilities/JetTools.h"
19 #include "/sphenix/user/danderson/install/include/slambdajethunter/SLambdaJetHunter.h"
20 #include "/sphenix/user/danderson/install/include/slambdajethunter/SLambdaJetHunterConfig.h"
21 
22 // make common namespacs implicit
23 using namespace std;
24 using namespace SColdQcdCorrelatorAnalysis;
25 using namespace SColdQcdCorrelatorAnalysis::SCorrelatorUtilities;
26 
27 
28 
29 namespace LambdaJetHunterOptions {
30 
31  SLambdaJetHunterConfig GetConfig(const int verbosity, const string outFile) {
32 
33  // acceptance cuts ----------------------------------------------------------
34 
35  // event acceptance
36  const pair<float, float> vzEvtRange = {-10., 10.};
37  const pair<float, float> vrEvtRange = {0.0, 0.418};
38 
39  // particle acceptance
40  const pair<float, float> ptParRange = {0., 100.};
41  const pair<float, float> etaParRange = {-1.1, 1.1};
42 
43  // jet acceptance
44  const pair<float, float> ptJetRange = {0.1, 100.};
45  const pair<float, float> etaJetRange = {-0.7, 0.7};
46 
47  // set up configuration -----------------------------------------------------
48 
49  // bundle acceptances into pairs
50  pair<ParInfo, ParInfo> cfg_parAccept;
51  cfg_parAccept.first.pt = ptParRange.first;
52  cfg_parAccept.first.eta = etaParRange.first;
53  cfg_parAccept.second.pt = ptParRange.second;
54  cfg_parAccept.second.eta = etaParRange.second;
55 
56  pair<JetInfo, JetInfo> cfg_jetAccept;
57  cfg_jetAccept.first.pt = ptJetRange.first;
58  cfg_jetAccept.first.eta = etaJetRange.first;
59  cfg_jetAccept.second.pt = ptJetRange.second;
60  cfg_jetAccept.second.eta = etaJetRange.second;
61 
62  // create configuration and return
64  .verbosity = verbosity,
65  .isDebugOn = true,
66  .isEmbed = false,
67  .moduleName = "SLambdaJetHunter",
68  .outTreeName = "LambdaJetTree",
69  .outFileName = outFile,
70  .rJet = 0.4,
71  .jetAlgo = SLambdaJetHunter::Algo::AntiKt,
72  .jetRecomb = SLambdaJetHunter::Recomb::Pt,
73  .vzAccept = vzEvtRange,
74  .vrAccept = vrEvtRange,
75  .parAccept = cfg_parAccept,
76  .jetAccept = cfg_jetAccept
77  };
78  return cfg;
79 
80  } // end 'GetConfig(int, string&)'
81 
82 } // end LambdaJetHunterOptions namespace
83 
84 #endif
85 
86 // end ------------------------------------------------------------------------