WeightApplier.cxx
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 namespace ana
6 {
7  // --------------------------------------------------------------------------
9  {
10  const double w2 = fWeight(sr);
11 
12  if(w2 < 0){
13  std::cerr << "Negative weight " << w2
14  << " returned from Var";
16  abort();
17  }
18 
19  if(wei*w2 > 0) RecordMultiSink::HandleRecord(sr, wei*w2);
20  }
21 }
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
caf::StandardRecord * sr
void HandleRecord(caf::SRProxy *sr, double wei) override