attach_blinded_output.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_blinded_output (JobC &jc, JobCPath &attach_to)

Function Documentation

void attach_blinded_output ( JobC jc,
JobCPath attach_to 
)

Definition at line 4 of file Dogwood/headers/io/attach_blinded_output.h.

References JobCPath::Attach(), JobCPathModule::Create(), JobCNode::FilterOn(), JobCPath::Node(), JobC::Path, set_cand_output_bntp(), set_ntpst_output_bntp(), and JobCPath::SetAllFilters().

00006 {
00008   //  Setting the Output Path with Blinding       ////
00009   //    These files have the blinding algorithm   ////
00010   //    applied and thus will be the open files   ////
00012   //Create a new path where the Blinding module may be used
00013   //   all reco is of course the same
00014   JobCPath& blindpath = jc.Path.Create("blindpath",
00015                                        "Blinder::Ana "
00016                                        "Output::Put ");
00017 
00018   //Explicitly turn on the Blinder Filtering
00019   blindpath.Node("Blinder::Ana").FilterOn();
00020 
00021   //Set Candidate Output to CandS.root (reduced number of Spills
00022   //    are included in output)
00023   // This will become the ??.cand.?? file
00024   set_cand_output_bntp(jc.Path("blindpath").Mod("Output"), "CandS.root", true);
00025 
00026   JobCPath& blindSR = jc.Path.Create("blindSR",
00027                                      "Output::Put ");
00028 
00029   blindSR.SetAllFilters(false);
00030 
00031   //Set the ntuple output to ntupleSt.root (reduced number of Spills
00032   //  included in output)
00033   // this will become the ??.sntp.?? file
00034   set_ntpst_output_bntp(blindSR.Mod("Output"), "ntupleStS.root", true);
00035 
00036   blindpath.Attach(&blindSR);
00037   attach_to.Attach(&blindpath);
00038 }


Generated on 24 Jul 2018 for loon by  doxygen 1.6.1