attach_output_srsafitter.h File Reference

#include "set_cand_output_bntp.h"
#include "set_ntpst_output_bntpsa.h"

Go to the source code of this file.

Functions

void attach_output_srsafitter (JobC &jc, JobCPath &attach_to, TString cand_fname="CandS.root", TString ntuple_fname="ntupleStS.root", bool want_cand=true, bool cand_bntp=true, bool ntpst_bntp=true, TString path_name="NtpSR")

Function Documentation

void attach_output_srsafitter ( JobC jc,
JobCPath attach_to,
TString  cand_fname = "CandS.root",
TString  ntuple_fname = "ntupleStS.root",
bool  want_cand = true,
bool  cand_bntp = true,
bool  ntpst_bntp = true,
TString  path_name = "NtpSR" 
)

Definition at line 4 of file Dogwood/headers/io/attach_output_srsafitter.h.

References JobCPath::Attach(), JobCPathModule::Create(), JobCPath::Mod(), JobC::Path, JobCPath::PushBack(), JobCModule::Report(), JobCModule::Set(), set_cand_output_bntp(), and set_ntpst_output_bntpsa().

00012 {
00014   //    Setting the Output Paths                 //
00015   //  - This script produces the 3 output        //
00016   //    streams, cand, snts, sntp                //
00018 
00019   if(want_cand){
00020     //Set Candidate Output to CandA.root (all of the snarls included in output)
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   //Ntuple record has its own output file so needs its own output module
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"); // use NtpSt
00038 
00039   path.Mod("FitTrackSAListModule").Set("ListIn=CandFitTrackCamList");
00040   //  jc.Path("NtpSR").Mod("Output").Set("FileName=ntpSA.root");
00041   // jc.Path.Attach("Reco","NtpSA");
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 }


Generated on 22 Jul 2018 for loon by  doxygen 1.6.1