Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:58

0001 #include "PhysicsTools/PatAlgos/interface/BaseIsolator.h"
0002 #include <sstream>
0003 #include <iomanip>
0004 
0005 using pat::helper::BaseIsolator;
0006 
0007 BaseIsolator::BaseIsolator(const edm::ParameterSet &conf, edm::ConsumesCollector &iC, bool withCut)
0008     : input_(conf.getParameter<edm::InputTag>("src")),
0009       inputToken_(iC.consumes<Isolation>(input_)),
0010       cut_(withCut ? conf.getParameter<double>("cut") : -2.0),
0011       try_(0),
0012       fail_(0) {}
0013 
0014 void BaseIsolator::print(std::ostream &out) const {
0015   using namespace std;
0016   out << description() << " < " << cut_ << ": try " << try_ << ", fail " << fail_;
0017 }