Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dogwood/headers/io/attach_output_mc.h

Go to the documentation of this file.
00001 #include "set_cand_output_bntp.h"
00002 #include "set_ntpst_output_bntp.h"
00003 
00004 void attach_output_mc(JobC& jc,
00005                       JobCPath& attach_to,
00006                       TString cand_fname = "CandS.root",
00007                       bool want_cand = true,
00008                       TString release = "")
00009   // TODO - release is now unused - fix callers
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     JobCPath& CandOut = jc.Path.Create("CandOut",
00020                                        "Output::Put "
00021                                        );
00022     set_cand_output_bntp(CandOut.Mod("Output"), cand_fname, false);
00023     attach_to.Attach(&CandOut);
00024   }
00025 
00026   //Ntuple record has its own output file so needs its own output module
00027   JobCPath& NtpSR = jc.Path.Create("NtpSR");
00028 
00029   NtpSR.PushBack("NtpStModule", "Get");
00030   NtpSR.PushBack("NtpSRModule", "Reco");
00031   NtpSR.PushBack("NtpMCModule", "Reco"); //Necessary to write the MC info tree
00032   NtpSR.PushBack("NtpTHModule", "Reco"); //Necessary to write the MC th tree
00033   NtpSR.PushBack("Output", "Put");
00034 
00035   NtpSR.Mod("NtpMCModule").Set("UseStandard=1"); // use NtpSt
00036   NtpSR.Mod("NtpTHModule").Set("UseStandard=1"); // use NtpSt
00037   NtpSR.Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00038 
00039   set_ntpst_output_bntp(NtpSR.Mod("Output"), "ntupleStS.root", false);
00040 
00041   attach_to.Attach(&NtpSR);
00042 }

Generated on Mon Feb 15 11:06:23 2010 for loon by  doxygen 1.3.9.1