1 #ifndef PhysicsTools_PatAlgos_JetCorrFactorsProducer_h
2 #define PhysicsTools_PatAlgos_JetCorrFactorsProducer_h
41 #include <boost/shared_ptr.hpp>
127 for(std::vector<reco::Vertex>::const_iterator pv=primaryVertices->begin(); pv!=primaryVertices->end(); ++pv){
128 if(pv->ndof()>=4) ++npv;
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::string payload()
map jet algorithm to payload in DB
std::string label_
label of jec factors
bool emf_
use electromagnetic fraction for jet energy corrections or not (will only have an effect for jets Cal...
std::string payload_
label of payload
JetCorrFactorsProducer(const edm::ParameterSet &cfg)
default constructor
FlavorCorrLevelMap levels_
bool flavorDependent() const
return true if the jec levels contain at least one flavor dependent correction level ...
int numberOf(const edm::Handle< std::vector< reco::Vertex > > &primaryVertices)
determines the number of valid primary vertices for the standard L1Offset correction of JetMET ...
virtual void produce(edm::Event &event, const edm::EventSetup &setup)
everything that needs to be done per event
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Produces a ValueMap between JetCorrFactors and the to the originating reco jets.
edm::ValueMap< pat::JetCorrFactors > JetCorrFactorsMap
value map for JetCorrFactors (to be written into the event)
std::vector< std::string > expand(const std::vector< std::string > &levels, const JetCorrFactors::Flavor &flavor)
std::vector< JetCorrectorParameters > params(const JetCorrectorParametersCollection ¶meters, const std::vector< std::string > &levels) const
return the jec parameters as input to the FactorizedJetCorrector for different flavors ...
~JetCorrFactorsProducer()
default destructor
edm::InputTag src_
input jet collection
float evaluate(edm::View< reco::Jet >::const_iterator &jet, boost::shared_ptr< FactorizedJetCorrector > &corrector, int level)
evaluate jet correction factor up to a given level
edm::InputTag primaryVertices_
label for L1Offset primaryVertex collection
edm::InputTag rho_
label for L1FastJet energy density parameter rho
bool useNPV_
use the NPV and rho with the JEC? (used for L1Offset/L1FastJet and L1FastJet, resp.)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
description of configuration file parameters
std::string type_
type of flavor dependent JEC factors (only 'J' and 'T' are allowed)
std::map< JetCorrFactors::Flavor, std::vector< std::string > > FlavorCorrLevelMap
map of correction levels to different flavors
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")