#include "set_cand_output_bntp.h"#include "set_ntpst_output_bntpsa.h"Go to the source code of this file.
Functions | |
| void | attach_output_mc_srsafitter (JobC &jc, JobCPath &attach_to, TString cand_fname, bool want_cand) |
|
||||||||||||||||||||
|
Definition at line 4 of file Dogwood/headers/io/attach_output_mc_srsafitter.h. References JobCPath::Attach(), JobCPathModule::Create(), jc, JobCPath::Mod(), JobC::Path, JobCPath::PushBack(), JobCModule::Report(), JobCModule::Set(), set_cand_output_bntp(), and set_ntpst_output_bntpsa(). 00009 {
00010 //Set Candidate Output to CandS.root (all of the snarls included in output)
00011
00012 if(want_cand){
00013 JobCPath& CandOut = jc.Path.Create("CandOut",
00014 "Output::Put "
00015 );
00016 set_cand_output_bntp(CandOut.Mod("Output"), cand_fname, false);
00017 attach_to.Attach(&CandOut);
00018 }
00019
00020 //Ntuple record has its own output file so needs its own output module
00021 JobCPath& NtpSR = jc.Path.Create("NtpSR");
00022
00023 NtpSR.PushBack("NtpStModule", "Get");
00024 NtpSR.PushBack("NtpSRModule", "Reco");
00025 NtpSR.PushBack("NtpMCModule", "Reco"); //Necessary to write the MC info tree
00026 NtpSR.PushBack("NtpTHModule", "Reco"); //Necessary to write the MC th tree
00027 NtpSR.PushBack("FitTrackSAListModule", "Reco");
00028 NtpSR.PushBack("NtpFitSAModule", "Reco");
00029 NtpSR.PushBack("Output", "Put");
00030
00031 NtpSR.Mod("NtpMCModule").Set("UseStandard=1"); // use NtpSt
00032 NtpSR.Mod("NtpTHModule").Set("UseStandard=1"); // use NtpSt
00033 NtpSR.Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00034
00035
00036 NtpSR.Mod("FitTrackSAListModule").Set("ListIn=CandFitTrackCamList");
00037 // jc.Path("NtpSR").Mod("Output").Set("FileName=ntpSA.root");
00038 // jc.Path.Attach("Reco","NtpSA");
00039 NtpSR.Mod("FitTrackSAListModule").Report();
00040
00041 set_ntpst_output_bntpsa(NtpSR.Mod("Output"), "ntupleStS.root", false);
00042
00043 attach_to.Attach(&NtpSR);
00044 }
|
1.3.9.1