attach_output.h File Reference

#include "set_cand_output_bntp.h"
#include "set_ntpst_output_bntp.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 4 of file Elm/headers/io/attach_output.h.

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

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 CandS.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     jc.Path.Attach(attach_to, "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                                   "NtpStModule::Get "
00031                                   "NtpSRModule::Reco "
00032                                   "Output::Put "
00033                                   );
00034   path.Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00035 
00036   set_ntpst_output_bntp(path.Mod("Output"), ntpst_name, ntpst_bntp);
00037 
00038   jc.Path.Attach(attach_to, path_name);
00039 }


Generated on 10 Oct 2018 for loon by  doxygen 1.6.1