File indexing completed on 2026-04-03 08:08:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #define SDELTAPTCUTSTUDY_CC
0013
0014
0015 #include "SDeltaPtCutStudy.h"
0016 #include "SDeltaPtCutStudy.io.h"
0017 #include "SDeltaPtCutStudy.sys.h"
0018 #include "SDeltaPtCutStudy.ana.h"
0019 #include "SDeltaPtCutStudy.plot.h"
0020
0021 using namespace std;
0022
0023
0024
0025
0026
0027 SDeltaPtCutStudy::SDeltaPtCutStudy() {
0028
0029 cout << "\n Beginning delta-pt cut study..." << endl;
0030
0031 }
0032
0033
0034
0035
0036 SDeltaPtCutStudy::~SDeltaPtCutStudy() {
0037
0038
0039
0040 }
0041
0042
0043
0044
0045
0046 void SDeltaPtCutStudy::Init() {
0047
0048
0049 cout << " Initializing..." << endl;
0050
0051
0052 OpenFiles();
0053 GetTuples();
0054
0055
0056 InitVectors();
0057 InitTuples();
0058 InitHists();
0059 return;
0060
0061 }
0062
0063
0064
0065 void SDeltaPtCutStudy::Analyze() {
0066
0067
0068 cout << " Analyzing..." << endl;
0069
0070
0071 nTrks = ntTrack -> GetEntries();
0072 nTrus = ntTruth -> GetEntries();
0073 cout << " Beginning tuple loops: " << nTrks << " reco. tracks and " << nTrus << " particles to process" << endl;
0074
0075
0076
0077
0078 ApplyFlatDeltaPtCuts();
0079 CreateSigmaGraphs();
0080
0081
0082
0083
0084 ApplyPtDependentDeltaPtCuts();
0085 CalculateRejectionFactors();
0086
0087
0088 FillTruthHistograms();
0089 CalculateEfficiencies();
0090 return;
0091
0092 }
0093
0094
0095
0096 void SDeltaPtCutStudy::End() {
0097
0098
0099 cout << " Finishing..." << endl;
0100
0101
0102 SetStyles();
0103 MakePlots();
0104
0105
0106 SaveOutput();
0107 CloseFiles();
0108
0109
0110 cout << " Done with delta-pt cut study!\n" << endl;
0111 return ;
0112
0113 }
0114
0115