Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JetSrcHelper< U > Struct Template Reference

A struct to help with the configuration of the ICJetProducer, in particular the aspects that depend on the source jet class. More...

#include "UserCode/ICHiggsTauTau/plugins/ICJetSrcHelper.hh"

Public Member Functions

 JetSrcHelper (const edm::ParameterSet &config, edm::ConsumesCollector &&collector)
 
void DoSetup (edm::EDProducer *prod)
 
 ~JetSrcHelper ()
 
template<class T >
void Produce (edm::Handle< edm::View< U > > const &jets_handle, std::vector< T > *jets, std::vector< unsigned > *passed, edm::Event &event, const edm::EventSetup &setup)
 

Data Fields

boost::hash< U const * > jet_hasher
 
boost::hash< reco::Vertex const * > vertex_hasher
 
edm::InputTag input_jet_flavour
 
bool include_jet_flavour
 
std::vector< std::pair
< std::string, std::string > > 
jecs
 
bool apply_jec_factors
 
bool include_jec_factors
 
StringCutObjectSelector< U > cut
 
std::string cut_string
 
bool apply_post_jec_cut
 
edm::InputTag input_sv_info
 
bool include_sv_info_ids
 
std::vector< std::pair
< std::string, edm::InputTag > > 
input_btags
 

Detailed Description

template<class U>
struct JetSrcHelper< U >

A struct to help with the configuration of the ICJetProducer, in particular the aspects that depend on the source jet class.

This templated version of the struct will be used when the source collection is comprised of any reco jet type. A specialised version of this struct is defined for pat::Jet sources, and can be found [here](JetSrcHelper<pat::Jet>). The reco jet sources require additional configuration for features like jet energy corrections and b-tagging scale factors, which cannot be extracted automatically as in the pat::Jet case. A JetSrcHelper<U>::Produce method is also defined, which handles extracting such properties for both kinds of jet inputs. Note, the type of the ic jet collection being produced isn't specified here, but is left as a template parameter of the JetSrcHelper<U>::Produce method. Therefore this method is only concerned with filling the jet properties common to all ic classes, namely those defined in the ic::Jet base class.

Template Parameters
UThe type of the input jet collection, e.g. reco::PFJet, reco::CaloJet.
Examples:
plugins/ICJetProducer.hh.

Definition at line 47 of file ICJetSrcHelper.hh.

Constructor & Destructor Documentation

template<class U>
JetSrcHelper< U >::JetSrcHelper ( const edm::ParameterSet &  config,
edm::ConsumesCollector &&  collector 
)
inlineexplicit

Definition at line 48 of file ICJetSrcHelper.hh.

template<class U>
JetSrcHelper< U >::~JetSrcHelper ( )
inline

Definition at line 96 of file ICJetSrcHelper.hh.

Member Function Documentation

template<class U>
void JetSrcHelper< U >::DoSetup ( edm::EDProducer *  prod)
inline

Definition at line 86 of file ICJetSrcHelper.hh.

template<class U>
template<class T >
void JetSrcHelper< U >::Produce ( edm::Handle< edm::View< U > > const &  jets_handle,
std::vector< T > *  jets,
std::vector< unsigned > *  passed,
edm::Event &  event,
const edm::EventSetup &  setup 
)
inline

Definition at line 99 of file ICJetSrcHelper.hh.

Field Documentation

template<class U>
boost::hash<U const*> JetSrcHelper< U >::jet_hasher

Definition at line 217 of file ICJetSrcHelper.hh.

template<class U>
boost::hash<reco::Vertex const*> JetSrcHelper< U >::vertex_hasher

Definition at line 218 of file ICJetSrcHelper.hh.

template<class U>
edm::InputTag JetSrcHelper< U >::input_jet_flavour

Definition at line 220 of file ICJetSrcHelper.hh.

template<class U>
bool JetSrcHelper< U >::include_jet_flavour

Definition at line 221 of file ICJetSrcHelper.hh.

template<class U>
std::vector<std::pair<std::string, std::string> > JetSrcHelper< U >::jecs

Definition at line 223 of file ICJetSrcHelper.hh.

template<class U>
bool JetSrcHelper< U >::apply_jec_factors

Definition at line 224 of file ICJetSrcHelper.hh.

template<class U>
bool JetSrcHelper< U >::include_jec_factors

Definition at line 225 of file ICJetSrcHelper.hh.

template<class U>
StringCutObjectSelector<U> JetSrcHelper< U >::cut

Definition at line 227 of file ICJetSrcHelper.hh.

template<class U>
std::string JetSrcHelper< U >::cut_string

Definition at line 228 of file ICJetSrcHelper.hh.

template<class U>
bool JetSrcHelper< U >::apply_post_jec_cut

Definition at line 229 of file ICJetSrcHelper.hh.

template<class U>
edm::InputTag JetSrcHelper< U >::input_sv_info

Definition at line 231 of file ICJetSrcHelper.hh.

template<class U>
bool JetSrcHelper< U >::include_sv_info_ids

Definition at line 232 of file ICJetSrcHelper.hh.

template<class U>
std::vector<std::pair<std::string, edm::InputTag> > JetSrcHelper< U >::input_btags

Definition at line 234 of file ICJetSrcHelper.hh.


The documentation for this struct was generated from the following file: