--- chewbacca/extractcalibs.sh 2008/11/04 09:44:26 1.1 +++ chewbacca/extractcalibs.sh 2008/12/18 12:58:36 1.2 @@ -61,6 +61,7 @@ echo "TTree *tc1 = (TTree*)_file0->Get(\"CalibTrk1\")" >> ${TEMPL}; echo "TTree *tc2 = (TTree*)_file0->Get(\"CalibTrk2\")" >> ${TEMPL}; echo "TTree *s4c = (TTree*)_file0->Get(\"CalibS4\")" >> ${TEMPL}; +echo "TTree *mcmd = (TTree*)_file0->Get(\"Mcmd\")" >> ${TEMPL}; echo "TTree *ccp = 0;" >> ${TEMPL}; echo "TTree *ccp1 = 0;" >> ${TEMPL}; echo "TTree *ccp2 = 0;" >> ${TEMPL}; @@ -68,6 +69,7 @@ echo "TTree *ctc1 = 0;" >> ${TEMPL}; echo "TTree *ctc2 = 0;" >> ${TEMPL}; echo "TTree *cs4c = 0;" >> ${TEMPL}; +echo "TTree *cmcmd = 0;" >> ${TEMPL}; echo "TFile *calib = new TFile(\"${OUTDIR}/${FNAME}/nome\",\"RECREATE\");" >> ${TEMPL}; echo "calib->SetCompressionLevel(9);" >> ${TEMPL}; echo "calib->cd();" >> ${TEMPL}; @@ -78,6 +80,7 @@ echo "ctc1=tc1->CloneTree(-1,\"fast\");" >> ${TEMPL}; echo "ctc2=tc2->CloneTree(-1,\"fast\");" >> ${TEMPL}; echo "cs4c=s4c->CloneTree(-1,\"fast\");" >> ${TEMPL}; +echo "cmcmd=mcmd->CloneTree(-1,\"fast\");" >> ${TEMPL}; echo "calib->Write();" >> ${TEMPL}; echo "calib->Close();" >> ${TEMPL}; echo ".q" >> ${TEMPL};