Skip to content

Open and copy output

Luca Cadamuro edited this page Mar 23, 2015 · 1 revision

When processing samples with CRAB, the outputs are saved on the user space in the storage element. Data located here are accessible from everywhere by any user that has a valid GRID certificate:

voms-proxy-init -voms cms

List all the files

lcg-ls srm://polgrid4.in2p3.fr:8446/srm/managerv2?SFN=/dpm/in2p3.fr/home/cms/trivcat/store/user/lcadamur/HH_BBTauTau_Trees/prod_2015_02_19/TTJets_MSDecaysCKM_central_Tune4C_13TeV-madgraph-tauola/HH_BBTauTau_Trees/150219_135959/0000/

Copy locally a file

xrdcp root://xrootd-cms.infn.it//store/user/lcadamur/HH_BBTauTau_Trees/prod_2015_02_19/TTJets_MSDecaysCKM_central_Tune4C_13TeV-madgraph-tauola/HH_BBTauTau_Trees/150219_135959/0000/HTauTauAnalysis_8.root .

Open the file from ROOT

TFile *f = TFile::Open("root://xrootd-cms.infn.it//store/user/lcadamur/HH_BBTauTau_Trees/prod_2015_02_19/TTJets_MSDecaysCKM_central_Tune4C_13TeV-madgraph-tauola/HH_BBTauTau_Trees/150219_135959/0000/HTauTauAnalysis_8.root”);

Clone this wiki locally