Hi all,
I do know if this is the right place to post.
I made a tcsh script but I have some problem to send a variables to root macro.
the script is here:
#!/bin/tcsh
# Script to make TMVA histograms
# Date Stem
set Date="07Jan12"
# TMVANtuple path
set TMVANtuplePath="FileLimitCalc/TMVANtuple"
# Output file name
set outfilename="h120.root"
# DataSet list
set DataSetList = (gset_all_1BTagSkim TRF_Analysis ohhs2e phhs2e bhhs2e ttbarMC wxcdbb wqcdcc zhxc1a ihhs1a jhhs1a khhs1a)
# histograms name list
set histNameList = (DATA QCD WH ZH VBF TTBAR WBB WCC ZJET WW WZ ZZ)
# Cuts
set cuts="(mass_zone != 0 && isSTST == 1 && FourFiveJet == 1) *event_weight"
foreach DataSet ($DataSetList)
root -l -b -q FileLimitCalc/histroot.c\(\"$TMVANtuplePath/tmva\_$DataSet\_$Date.root\",\"FileLimitCalc/histfile/$outfilename\",\"$histNameList[1]\",\"$cuts\"\)
shift histNameList
end
the problem is the variable “cuts”, I do not know in what way I can send it to root macro.
Do anyone know in what way I can fix it?
Thank you very much
Ciccio