Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dogwood/headers/io/attach_output_mc_srsafitter.h

Go to the documentation of this file.
00001 #include "set_cand_output_bntp.h"
00002 #include "set_ntpst_output_bntpsa.h"
00003 
00004 void attach_output_mc_srsafitter(JobC& jc,
00005                                  JobCPath& attach_to,
00006                                  TString cand_fname,
00007                                  bool want_cand)
00008   // TODO - all these attach_output functions are nearly the same
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 }

Generated on Mon Feb 15 11:06:23 2010 for loon by  doxygen 1.3.9.1