attach_output_srsafitter.h File Reference

#include "set_cand_output_bntp.h"
#include "set_ntpst_output_bntpsa.h"
#include "../util/get_record_title.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 5 of file Cedar_phy/restructure-chris/headers/io/attach_output_srsafitter.h.

References JobCPathModule::Attach(), JobCPathModule::Create(), get_record_title(), JobC::Path, JobCPathModule::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     jc.Path.Create("CandOut",
00022                    "Output::Put "
00023                    );
00024     set_cand_output_bntp(jc.Path("CandOut").Mod("Output"), cand_fname, cand_bntp);
00025     jc.Path.Attach(attach_to, "CandOut");
00026   }
00027 
00028   //Ntuple record has its own output file so needs its own output module
00029   jc.Path.Create("NtpSR",
00030                  "NtpStModule::Get "
00031                  "NtpSRModule::Reco "
00032                  "FitTrackSAListModule::Reco "
00033                  "NtpFitSAModule::Reco "
00034                  "Output::Put "
00035                  );
00036   jc.Path("NtpSR").Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00037 
00038   jc.Path("NtpSR").Mod("FitTrackSAListModule").Set("ListIn=CandFitTrackCamList");
00039   //  jc.Path("NtpSR").Mod("Output").Set("FileName=ntpSA.root");
00040   // jc.Path.Attach("Reco","NtpSA");
00041   jc.Path("NtpSR").Mod("FitTrackSAListModule").Report();
00042 
00043   jc.Path("NtpSR").Mod("NtpStModule").Set(get_record_title(""));
00044 
00045   set_ntpst_output_bntpsa(jc.Path("NtpSR").Mod("Output"), ntuple_fname, ntpst_bntp);
00046   jc.Path.Attach(attach_to, "NtpSR");
00047 }


Generated on 11 Jan 2018 for loon by  doxygen 1.6.1