attach_output_mc.h File Reference

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

Go to the source code of this file.

Functions

void attach_output_mc (JobC &jc, TString attachto, TString cand_fname="CandS.root", bool want_cand=true, TString release="")

Function Documentation

void attach_output_mc ( JobC jc,
TString  attachto,
TString  cand_fname = "CandS.root",
bool  want_cand = true,
TString  release = "" 
)

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

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

00010 {
00012   //    Setting the Output Paths                 //
00013   //  - This script produces the 3 output        //
00014   //    streams, cand, snts, sntp                //
00016 
00017   if(want_cand){
00018     //Set Candidate Output to CandA.root (all of the snarls included in output)
00019     jc.Path.Create("CandOut",
00020                    "Output::Put "
00021                    );
00022     set_cand_output_bntp(jc.Path("CandOut").Mod("Output"), cand_fname, false);
00023     jc.Path.Attach(attachto, "CandOut");
00024   }
00025 
00026   //Ntuple record has its own output file so needs its own output module
00027   jc.Path.Create("NtpSR",
00028                  "NtpStModule::Get "
00029                  "NtpSRModule::Reco "
00030                  "NtpMCModule::Reco " //Necessary to write the MC info tree
00031                  "NtpTHModule::Reco " //Necessary to write the MC th tree
00032                  "Output::Put "
00033                  );
00034 
00035   jc.Path("NtpSR").Mod("NtpMCModule").Set("UseStandard=1"); // use NtpSt
00036   jc.Path("NtpSR").Mod("NtpTHModule").Set("UseStandard=1"); // use NtpSt
00037   jc.Path("NtpSR").Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00038 
00039   jc.Path("NtpSR").Mod("NtpStModule").Set(get_record_title(release));
00040 
00041 
00042   set_ntpst_output_bntp(jc.Path("NtpSR").Mod("Output"), "ntupleStS.root", false);
00043   jc.Path.Attach(attachto,"NtpSR");
00044 }


Generated on 13 Dec 2018 for loon by  doxygen 1.6.1