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

Cedar_phy/restructure-chris/headers/io/attach_output.h

Go to the documentation of this file.
00001 #include "set_cand_output_bntp.h"
00002 #include "set_ntpst_output_bntp.h"
00003 #include "../util/get_record_title.h"
00004 
00005 void attach_output(JobC& jc,
00006                    TString attachto,
00007                    TString cand_fname = "CandS.root",
00008                    TString ntpst_name = "ntupleStS.root",
00009                    bool want_cand = true,
00010                    bool cand_bntp = true,
00011                    bool ntpst_bntp = true,
00012                    TString path_name = "NtpSR")
00013 {
00015   //    Setting the Output Paths                 //
00016   //  - This script produces the 3 output        //
00017   //    streams, cand, snts, sntp                //
00019 
00020   if(want_cand){
00021     //Set Candidate Output to CandS.root (all of the snarls included in output)
00022     jc.Path.Create("CandOut",
00023                    "Output::Put "
00024                    );
00025     set_cand_output_bntp(jc.Path("CandOut").Mod("Output"), cand_fname, cand_bntp);
00026     jc.Path.Attach(attachto, "CandOut");
00027   }
00028 
00029   //Ntuple record has its own output file so needs its own output module
00030   jc.Path.Create(path_name,
00031                  "NtpStModule::Get "
00032                  "NtpSRModule::Reco "
00033                  "Output::Put "
00034                  );
00035   jc.Path(path_name).Mod("NtpSRModule").Set("UseStandard=1"); // use NtpSt
00036 
00037   jc.Path(path_name).Mod("NtpStModule").Set(get_record_title(""));
00038 
00039   set_ntpst_output_bntp(jc.Path(path_name).Mod("Output"), ntpst_name, ntpst_bntp);
00040 
00041   jc.Path.Attach(attachto, path_name);
00042 }
00043 

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