SystApplier.cxx
Go to the documentation of this file.
2 
4 
5 #include <iostream>
6 
7 namespace ana
8 {
9  // --------------------------------------------------------------------------
11  {
12  if(fNominal){
14  return;
15  }
16 
18 
19  double systWei = 1;
20  fShift.Shift(sr, systWei);
21 
22  if(systWei < 0){
23  std::cerr << "Negative weight " << systWei
24  << " returned from Syst "
25  << "whole applying\n"
26  << fShift.ShortName()
27  << std::endl;
28  abort();
29  }
30 
31  if(systWei > 0) RecordMultiSink::HandleRecord(sr, wei * systWei);
32 
33  // Return StandardRecord to its unshifted form ready for the next
34  // histogram.
36  }
37 }
std::string ShortName() const
Brief description of component shifts, for printing to screen.
Definition: SystShifts.cxx:193
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
OStream cerr
Definition: OStream.cxx:7
void HandleRecord(caf::SRProxy *sr, double wei) override
void HandleRecord(caf::SRProxy *sr, double wei) override
Definition: SystApplier.cxx:10
caf::StandardRecord * sr
SystShifts fShift
Definition: SystApplier.h:17
void Shift(caf::SRProxy *sr, double &weight) const
Definition: SystShifts.cxx:165