wget -k -p -e robots=off -r -l2 http://www.parashift.com/c++-faq-lite/index.html
or
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org
aka
wget -mkEpnp http://example.org
wget -k -p -e robots=off -r -l2 http://www.parashift.com/c++-faq-lite/index.html
or
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org
aka
wget -mkEpnp http://example.org
| #include <iostream> | |
| #include <TChain.h> | |
| #include "TFile.h" | |
| #include "TDirectoryFile.h" | |
| #include "TTree.h" | |
| #include "DeltaR_Matcher.h" | |
| int main() { | |
| std::cout << "Looping test" << std::endl; |
| """Iterate over hists in a THStack. | |
| Turns out it's way easier than in C++ | |
| """ | |
| for hist in my_stack.GetHists(): | |
| print type(hist) | |
| print hist.Integral() |
| find -type l -exec rm {} \; |
| find . -type f -empty -delete |
| /** | |
| * For reminders about ROOT idiosyncrasies | |
| * | |
| * / | |
| // Put tick marks on inside of all axis of a plot (ie right hand y and top x axes) | |
| // NOT a fn of the TH1, but of the pad instead (sigh) | |
| myPad->SetTicks(1,1); |
| process.eca= cms.EDAnalyzer("EventContentAnalyzer" | |
| #getData = cms.untracked.bool(True), | |
| #listContent = cms.untracked.bool(False) | |
| ) | |
| then later on | |
| process.p = cms.Path( ... + process.eca + ... ) | |
| # https://github.com/cms-sw/cmssw/blob/e858790c803839263e8b9c67ba6a07273d953af3/FWCore/Modules/python/printContent_cfi.py |
| find . -type f -name "example-*.txt" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" " |
| PS4='$(date "+%s.%N ($LINENO) + ")' bash -x scriptname |