#include <FlavorHistoryEvent.h>
Public Types | |
typedef std::vector< value_type > | collection_type |
typedef collection_type::const_iterator | const_iterator |
typedef collection_type::const_pointer | const_pointer |
typedef collection_type::const_reference | const_reference |
typedef collection_type::const_reverse_iterator | const_reverse_iterator |
typedef FlavorHistory::FLAVOR_T | flavor_type |
typedef collection_type::iterator | iterator |
typedef collection_type::pointer | pointer |
typedef collection_type::reference | reference |
typedef collection_type::reverse_iterator | reverse_iterator |
typedef collection_type::size_type | size_type |
typedef FlavorHistory | value_type |
Public Member Functions | |
const_iterator | begin () const |
void | cache () |
void | clear () |
double | deltaR () const |
const_iterator | end () const |
FlavorHistoryEvent () | |
flavor_type | flavorSource () const |
unsigned int | highestFlavor () const |
bool | isCached () const |
unsigned int | nb () const |
unsigned int | nc () const |
void | push_back (const value_type &v) |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
void | resize (size_t n) |
size_type | size () const |
~FlavorHistoryEvent () | |
Protected Attributes | |
bool | cached_ |
double | dR_ |
flavor_type | flavorSource_ |
unsigned int | highestFlavor_ |
collection_type | histories_ |
unsigned int | nb_ |
unsigned int | nc_ |
Stores a vector of information about the flavor history of partons as well as a classification of the event.
It will return the following: nb = number of genjets that are matched to b partons nc = number of genjets that are matched to c partons
This can be used to classify the event, for instance, as W+bb (2 b partons), W+c (1 c parton), etc.
Definition at line 84 of file FlavorHistoryEvent.h.
typedef std::vector<value_type> reco::FlavorHistoryEvent::collection_type |
Definition at line 88 of file FlavorHistoryEvent.h.
typedef collection_type::const_iterator reco::FlavorHistoryEvent::const_iterator |
Definition at line 91 of file FlavorHistoryEvent.h.
typedef collection_type::const_pointer reco::FlavorHistoryEvent::const_pointer |
Definition at line 95 of file FlavorHistoryEvent.h.
typedef collection_type::const_reference reco::FlavorHistoryEvent::const_reference |
Definition at line 97 of file FlavorHistoryEvent.h.
typedef collection_type::const_reverse_iterator reco::FlavorHistoryEvent::const_reverse_iterator |
Definition at line 93 of file FlavorHistoryEvent.h.
Definition at line 98 of file FlavorHistoryEvent.h.
typedef collection_type::iterator reco::FlavorHistoryEvent::iterator |
Definition at line 90 of file FlavorHistoryEvent.h.
typedef collection_type::pointer reco::FlavorHistoryEvent::pointer |
Definition at line 94 of file FlavorHistoryEvent.h.
typedef collection_type::reference reco::FlavorHistoryEvent::reference |
Definition at line 96 of file FlavorHistoryEvent.h.
typedef collection_type::reverse_iterator reco::FlavorHistoryEvent::reverse_iterator |
Definition at line 92 of file FlavorHistoryEvent.h.
typedef collection_type::size_type reco::FlavorHistoryEvent::size_type |
Definition at line 89 of file FlavorHistoryEvent.h.
Definition at line 87 of file FlavorHistoryEvent.h.
|
inline |
|
inline |
Definition at line 101 of file FlavorHistoryEvent.h.
|
inline |
void FlavorHistoryEvent::cache | ( | ) |
Definition at line 11 of file FlavorHistoryEvent.cc.
References funct::abs(), filterCSVwithJSON::copy, gather_cfg::cout, reco::helpers::FlavorHistoryEventHelper::dR, reco::LeafCandidate::energy(), reco::helpers::FlavorHistoryEventHelper::flavor, reco::FlavorHistory::FLAVOR_NULL, reco::helpers::FlavorHistoryEventHelper::flavorSource, reco::FlavorHistory::flavorSource(), mps_fire::i, edm::Ptr< T >::isNonnull(), reco::ShallowClonePtrCandidate::masterClonePtr(), reco::FlavorHistory::matchedJet(), reco::FlavorHistory::parton(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), and verbose.
|
inline |
Definition at line 158 of file FlavorHistoryEvent.h.
References cached_, dR_, reco::FlavorHistory::FLAVOR_NULL, flavorSource_, highestFlavor_, histories_, nb_, and nc_.
Referenced by FlavorHistoryEvent(), and BeautifulSoup.Tag::setString().
|
inline |
|
inline |
Definition at line 145 of file FlavorHistoryEvent.h.
References histories_.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inline |
Definition at line 134 of file FlavorHistoryEvent.h.
References reco::FlavorHistory::FLAVOR_NULL, flavorSource_, and isCached().
|
inline |
Definition at line 128 of file FlavorHistoryEvent.h.
References highestFlavor_, and isCached().
|
inline |
Definition at line 105 of file FlavorHistoryEvent.h.
References cached_.
Referenced by deltaR(), flavorSource(), highestFlavor(), nb(), and nc().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 143 of file FlavorHistoryEvent.h.
References histories_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
protected |
Definition at line 169 of file FlavorHistoryEvent.h.
Referenced by clear(), isCached(), push_back(), and resize().
|
protected |
Definition at line 172 of file FlavorHistoryEvent.h.
|
protected |
Definition at line 174 of file FlavorHistoryEvent.h.
Referenced by clear(), and flavorSource().
|
protected |
Definition at line 173 of file FlavorHistoryEvent.h.
Referenced by clear(), and highestFlavor().
|
protected |
Definition at line 168 of file FlavorHistoryEvent.h.
Referenced by begin(), clear(), end(), push_back(), rbegin(), rend(), resize(), and size().
|
protected |
Definition at line 170 of file FlavorHistoryEvent.h.
|
protected |
Definition at line 171 of file FlavorHistoryEvent.h.