00001 #include "set_cand_output_bntp.h"
00002 #include "set_ntpst_output_bntp.h"
00003 #include "../util/get_record_title.h"
00004
00005 void attach_output(JobC& jc,
00006 TString attachto,
00007 TString cand_fname = "CandS.root",
00008 TString ntpst_name = "ntupleStS.root",
00009 bool want_cand = true,
00010 bool cand_bntp = true,
00011 bool ntpst_bntp = true,
00012 TString path_name = "NtpSR")
00013 {
00015
00016
00017
00019
00020 if(want_cand){
00021
00022 jc.Path.Create("CandOut",
00023 "Output::Put "
00024 );
00025 set_cand_output_bntp(jc.Path("CandOut").Mod("Output"), cand_fname, cand_bntp);
00026 jc.Path.Attach(attachto, "CandOut");
00027 }
00028
00029
00030 jc.Path.Create(path_name,
00031 "NtpStModule::Get "
00032 "NtpSRModule::Reco "
00033 "Output::Put "
00034 );
00035 jc.Path(path_name).Mod("NtpSRModule").Set("UseStandard=1");
00036
00037 jc.Path(path_name).Mod("NtpStModule").Set(get_record_title(""));
00038
00039 set_ntpst_output_bntp(jc.Path(path_name).Mod("Output"), ntpst_name, ntpst_bntp);
00040
00041 jc.Path.Attach(attachto, path_name);
00042 }
00043