-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.h
54 lines (48 loc) · 2.07 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// SKIM - 1: save skimmed ntuple, 0: run on already skimmed ntuple
#define SYST 1
#define SKIM 0
#ifndef PLOTTER
#include "include/treestream.h"
#endif
#if SKIM == 0
//#include "Plotting_Janos.h" // Specify here the implementations for your Analysis
#include "Plotting_Changgi.h" // Specify here the implementations for your Analysis
#else
#include "Analysis_Skim.h" // Specify here the implementations for your Analysis
#endif
struct settings {
//-----------------------------------------------------------------------------
// -- Constants
//-----------------------------------------------------------------------------
settings() :
runOnSkim ( 1-SKIM ),
saveSkimmedNtuple ( SKIM ),
doTopPtReweighting ( true ),
doISRReweighting ( true ),
doPileupReweighting ( true ),
doAK8JetPtRescaling ( false ),
applySmearing ( true ),
applyScaleFactors ( true ),
nSigmaScaleFactors ( 15 ), // Count the number of sigmas you use in ScaleFactors.h
varySystematics ( SYST ),
systematicsFileName ( "systematics/2024_05_17_1SigmaUpDown_NoPdf.txt" ),
useJSON ( false ), // by default: no need to apply, but can be useful if some lumisections need to be excluded additionally
jsonFileName ( "/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions16/13TeV/ReReco/Final/"
"Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16_JSON.txt" ),
useXSecFileForBkg ( true ) {}; // true: use file below, false: use value in the ntuple (evt_XSec)
~settings(){};
const bool runOnSkim;
const bool saveSkimmedNtuple;
const bool doTopPtReweighting;
const bool doISRReweighting;
const bool doPileupReweighting;
const bool doAK8JetPtRescaling;
const bool applySmearing;
const bool applyScaleFactors;
const int nSigmaScaleFactors;
const bool varySystematics;
const std::string systematicsFileName;
const bool useJSON;
const std::string jsonFileName;
const bool useXSecFileForBkg;
} settings;