attach_output_mc_srfitter.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_mc_srfitter (JobC &jc, JobCPath &attach_to, TString cand_fname, bool want_cand, TString release)

Function Documentation

void attach_output_mc_srfitter ( JobC jc,
JobCPath attach_to,
TString  cand_fname,
bool  want_cand,
TString  release 
)

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

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

00011 {
00012   //Set Candidate Output to CandS.root (all of the snarls included in output)
00013 
00014   if(want_cand){
00015     JobCPath& CandOut = jc.Path.Create("CandOut",
00016                                        "Output::Put "
00017                                        );
00018     set_cand_output_bntp(CandOut.Mod("Output"), cand_fname, false);
00019     attach_to.Attach(&CandOut);
00020   }
00021 
00022   //Ntuple record has its own output file so needs its own output module
00023   JobCPath& NtpSR = jc.Path.Create("NtpSR");
00024 
00025   NtpSR.PushBack("NtpStModule", "Get");
00026   NtpSR.PushBack("NtpSRModule", "Reco");
00027   NtpSR.PushBack("NtpMCModule", "Reco"); //Necessary to write the MC info tree
00028   NtpSR.PushBack("NtpTHModule", "Reco"); //Necessary to write the MC th tree
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   set_ntpst_output_bntp(NtpSR.Mod("Output"), "ntupleStS.root", false);
00037 
00038   attach_to.Attach(&NtpSR);
00039 }


Generated on 18 Oct 2018 for loon by  doxygen 1.6.1