How to run on new PAT and dump ROOTtuples and/or run on ROOTtuples setup the environment: setenv SCRAM_ARCH slc5_amd64_gcc462 setenv CMSSW_TOP_DIR _the_name_you_prefer_ scram project -n ${CMSSW_TOP_DIR} CMSSW CMSSW_5_3_11 cd ${CMSSW_TOP_DIR}/src eval `scram runtime -csh` git clone https://github.com/ronchese/NtuTool git clone https://github.com/ronchese/PDAnalysis cd ${CMSSW_BASE}/src/NtuTool git checkout V01-02-15 cd ${CMSSW_BASE}/src/PDAnalysis git checkout V01-01-09 cd ${CMSSW_BASE}/src scram b -j6 rehash cd ${CMSSW_BASE}/src/PDAnalysis/NtuPAT/bin *********************************** The actual analysis code is contained in the files PDAnalyzer.[h,cc] To run an example plotting the mumu mass copy the files cd ${CMSSW_BASE}/src/BmmAnalysis/NtuPAT/bin cp /lustre/cmswork/ronchese/pat_ntu/examples_V09/PDAnalyzer.h . cp /lustre/cmswork/ronchese/pat_ntu/examples_V09/PDAnalyzer.cc . and recompile *********************************** To run on ROOTtuples: Ntuples can be read both by a standalone compiled executable (recommended) or through a ROOT macro (less efficient). To run a standalone compiled executable (recommended): cd ${CMSSW_BASE}/src scram b -j6 cd ${CMSSW_BASE}/src/PDAnalysis/NtuPAT/bin treeAnalyze ntu_list hist_out.root where "ntu_list" contains a list of ntuple files to read, as in the example "ntu_dummy.list". Available ROOTtuples lists can be found in /lustre/cmswork/ronchese/ntu/Prod_V09/dataAll/ntu_*.list Other running options: treeAnalyze ntu_list hist_out.root -s 500 -n 10000 (to skip 500 events and read the 10000 following) treeAnalyze ntu_list hist_out.root -v eventList list.txt (to read only events listed in list.txt) treeAnalyze ntu_list hist_out.root i (to have a ROOT prompt at the end) These options are also described in ${CMSSW_BASE}/src/NtuTool/INSTRUCTIONS ---- To run a ROOT macro (less efficient): issue the command setupMacroAnalysis.csh (only the first time), then issue the commands: rm -f hist.root root -l root [0] .L PDMacro.C++ root [1] PDMacro("dataset"); The ntuple files to read are to be listed in a "ntu_dataset.list" file, as shown in the same example "ntu_dummy.list" The number of events to analyze is set inside the "PDMacro.C" file. *********************************** *********************************** To run on PAT, dump the ROOTtuples and analyze them on the fly: --- in preparation ---