attach_output_mc_srsafitter.h File Reference

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

Go to the source code of this file.

Functions

void attach_output_mc_srsafitter (JobC &jc, TString attach_to, TString cand_fname, bool want_cand, TString release)

Function Documentation

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

Definition at line 5 of file Cedar_phy/restructure-chris/headers/io/attach_output_mc_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().

00010 {
00011   //Set Candidate Output to CandS.root (all of the snarls included in output)
00012 
00013   if(want_cand){
00014     jc.Path.Create("CandOut",
00015                    "Output::Put "
00016                    );
00017     set_cand_output_bntp(jc.Path("CandOut").Mod("Output"), cand_fname, false);
00018     jc.Path.Attach(attach_to, "CandOut");
00019   }
00020 
00021   //Ntuple record has its own output file so needs its own output module
00022   jc.Path.Create("NtpSR",
00023                  "NtpStModule::Get "
00024                  "NtpSRModule::Reco "
00025                  "NtpMCModule::Reco " //Necessary to write the MC info tree
00026                  "NtpTHModule::Reco " //Necessary to write the MC th tree
00027          //      "Output::Put "
00028                  "FitTrackSAListModule::Reco "
00029                  "NtpFitSAModule::Reco "
00030                  "Output::Put "
00031                  );
00032   jc.Path("NtpSR").Mod("NtpMCModule").Set("UseStandard=1"); // use NtpSt
00033   jc.Path("NtpSR").Mod("NtpTHModule").Set("UseStandard=1"); // use NtpSt
00034   jc.Path("NtpSR").Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00035 
00036 
00037   jc.Path("NtpSR").Mod("FitTrackSAListModule").Set("ListIn=CandFitTrackCamList");
00038   //  jc.Path("NtpSR").Mod("Output").Set("FileName=ntpSA.root");
00039   // jc.Path.Attach("Reco","NtpSA");
00040   jc.Path("NtpSR").Mod("FitTrackSAListModule").Report();
00041 
00042 
00043   jc.Path("NtpSR").Mod("NtpStModule").Set(get_record_title(release+",SAFitter"));
00044 
00045   set_ntpst_output_bntpsa(jc.Path("NtpSR").Mod("Output"), "ntupleStS.root", false);
00046 
00047   jc.Path.Attach(attach_to, "NtpSR");
00048 }


Generated on 19 Jan 2018 for loon by  doxygen 1.6.1