00001 #include "set_cand_output_bntp.h"
00002 #include "set_ntpst_output_bntpsa.h"
00003
00004 void attach_output_srsafitter(JobC& jc,
00005 JobCPath& attach_to,
00006 TString cand_fname = "CandS.root",
00007 TString ntuple_fname = "ntupleStS.root",
00008 bool want_cand = true,
00009 bool cand_bntp = true,
00010 bool ntpst_bntp = true,
00011 TString path_name = "NtpSR")
00012 {
00014
00015
00016
00018
00019 if(want_cand){
00020
00021 JobCPath& CandOut = jc.Path.Create("CandOut",
00022 "Output::Put "
00023 );
00024 set_cand_output_bntp(CandOut.Mod("Output"), cand_fname, cand_bntp);
00025 attach_to.Attach(&CandOut);
00026 }
00027
00028
00029 JobCPath& path = jc.Path.Create(path_name);
00030
00031 path.PushBack("NtpStModule", "Get");
00032 path.PushBack("NtpSRModule", "Reco");
00033 path.PushBack("FitTrackSAListModule", "Reco");
00034 path.PushBack("NtpFitSAModule", "Reco");
00035 path.PushBack("Output", "Put");
00036
00037 path.Mod("NtpSRModule").Set("UseStandard=1");
00038
00039 path.Mod("FitTrackSAListModule").Set("ListIn=CandFitTrackCamList");
00040
00041
00042 path.Mod("FitTrackSAListModule").Report();
00043
00044 set_ntpst_output_bntpsa(path.Mod("Output"), ntuple_fname, ntpst_bntp);
00045
00046 attach_to.Attach(&path);
00047 }