forked from cms-analysis/JetMETAnalysis-JetAnalyzers
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
117 lines (96 loc) · 3.92 KB
/
Makefile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
################################################################################
#
# JetMETAnalysis/JetAnalyzers Makefile (for standalone use without CMSSW/SCRAM)
# -----------------------------------------------------------------------------
#
# INSTRUCTIONS:
# =============
# setenv ROOTSYS /path/to/root
# setenv PATH $ROOTSYS/bin:${PATH}
# setenv LD_LIBRARY_PATH $ROOTSYS/lib
#
# mkdir standalone; cd standalone
# setenv STANDALONE_DIR $PWD
# setenv PATH $STANDALONE_DIR/bin:${PATH}
# setenv LD_LIBRARY_PATH $STANDALONE_DIR/lib:${LD_LIBRARY_PATH}
# cvs co -d JetUtilities CMSSW/CondFormats/JetUtilities
# cvs co -d JetMETObjects CMSSW/CondFormats/JetMETObjects
# cvs co -d JetAnalyzers CMSSW/JetMETAnalysis/JetAnalyzers
# cd JetUtilities; make; cd ..
# cd JetMETObjects; make; cd ..
# cd JetAnalyzers; make; cd ..
#
# [you might want to stick these into e.g. $STANDALONE_DIR/setup.[c]sh]
#
# 07/30/2008 Philipp Schieferdecker <[email protected]>
################################################################################
ifeq ($(STANDALONE_DIR),)
standalone_dir:=../
export STANDALONE_DIR:=$(standalone_dir)
endif
TMPDIR = $(STANDALONE_DIR)/tmp
LIBDIR = $(STANDALONE_DIR)/lib
BINDIR = $(STANDALONE_DIR)/bin
CXX = g++
ROOTCXXFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
CXXFLAGS = -O3 -Wall -fPIC -I. $(ROOTCXXFLAGS)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
LIBS = -L$(LIBDIR) -lJetUtilities
all: setup bin
setup:
rm -f JetMETAnalysis; ln -fs ../ JetMETAnalysis
rm -f CondFormats; ln -fs ../ CondFormats
mkdir -p $(TMPDIR)
mkdir -p $(LIBDIR)
mkdir -p $(BINDIR)
bin: jet_response_analyzer jet_response_fitter jet_response_and_resolution \
jet_l2_correction jet_l3_correction \
jet_scale_resolution \
jet_weighted_spectrum jet_matching_efficiency jet_deltar_efficiency \
jet_response_vs_deltar
jet_response_analyzer:
$(CXX) $(CXXFLAGS) bin/jet_response_analyzer_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_response_analyzer_x
jet_response_fitter:
$(CXX) $(CXXFLAGS) bin/jet_response_fitter_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_response_fitter_x
jet_response_and_resolution:
$(CXX) $(CXXFLAGS) bin/jet_response_and_resolution_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_response_and_resolution_x
jet_l2_correction:
$(CXX) $(CXXFLAGS) bin/jet_l2_correction_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_l2_correction_x
jet_l3_correction:
$(CXX) $(CXXFLAGS) bin/jet_l3_correction_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_l3_correction_x
jet_apply_jec:
$(CXX) $(CXXFLAGS) bin/jet_apply_jec_x.cc $(LIBS) -lJetMETObjects $(ROOTLIBS) \
-o $(BINDIR)/jet_apply_jec_x
jet_scale_resolution:
$(CXX) $(CXXFLAGS) bin/jet_scale_resolution_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_scale_resolution_x
jet_weighted_spectrum:
$(CXX) $(CXXFLAGS) bin/jet_weighted_spectrum_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_weighted_spectrum_x
jet_matching_efficiency:
$(CXX) $(CXXFLAGS) bin/jet_matching_efficiency_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_matching_efficiency_x
jet_deltar_efficiency:
$(CXX) $(CXXFLAGS) bin/jet_deltar_efficiency_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_deltar_efficiency_x
jet_response_vs_deltar:
$(CXX) $(CXXFLAGS) bin/jet_response_vs_deltar_x.cc $(LIBS) $(ROOTLIBS) \
-o $(BINDIR)/jet_response_vs_deltar_x
clean:
rm -rf JetMETAnalysis \
$(BINDIR)/jet_response_analyzer_x \
$(BINDIR)/jet_response_fitter_x \
$(BINDIR)/jet_response_and_resolution_x \
$(BINDIR)/jet_l2_correction_x \
$(BINDIR)/jet_l3_correction_x \
$(BINDIR)/jet_apply_jec_x \
$(BINDIR)/jet_scale_resolution_x \
$(BINDIR)/jet_weighted_spectrum_x \
$(BINDIR)/jet_matching_efficiency_x \
$(BINDIR)/jet_deltar_efficiency_x \
$(BINDIR)/jet_response_vs_deltar_x