1 #ifndef HepMCCandidate_FlavorHistoryEvent_h 2 #define HepMCCandidate_FlavorHistoryEvent_h 69 if ( flavor > right.
flavor )
return false;
71 if ( dR > right.
dR )
return false;
76 return flavor == right.
flavor &&
84 sprintf(buff,
"Flavor = %2d, type = %2d, dR = %6f",
86 out << buff << std::endl;
117 unsigned int nb()
const {
if ( isCached() )
return nb_;
else return 0;}
118 unsigned int nc()
const {
if ( isCached() )
return nc_;
else return 0;}
121 double deltaR()
const {
if ( isCached() )
return dR_;
else return -1.0; }
122 unsigned int highestFlavor()
const {
if ( isCached() )
return highestFlavor_;
else return 0; }
127 size_type
size()
const {
return histories_.size(); }
128 const_iterator
begin()
const {
return histories_.begin(); }
129 const_iterator
end()
const {
return histories_.end(); }
130 const_reverse_iterator
rbegin()
const {
return histories_.rbegin(); }
131 const_reverse_iterator
rend()
const {
return histories_.rend(); }
134 void push_back(
const value_type&
v ) { cached_ =
false; histories_.push_back(v); }
135 void resize(
size_t n ) { cached_ =
false; histories_.resize(n); }
const_iterator begin() const
const_reverse_iterator rend() const
collection_type::iterator iterator
collection_type::reverse_iterator reverse_iterator
flavor_type flavorSource() const
const_iterator end() const
FlavorHistoryEventHelper(int iflavor, FlavorHistory::FLAVOR_T iflavorSource, double idR)
collection_type::const_iterator const_iterator
FlavorHistory::FLAVOR_T flavor_type
void push_back(const value_type &v)
unsigned int highestFlavor() const
bool operator==(FlavorHistoryEventHelper const &right) const
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
collection_type::const_pointer const_pointer
~FlavorHistoryEventHelper()
flavor_type flavorSource_
bool operator<(FlavorHistoryEventHelper const &right) const
friend std::ostream & operator<<(std::ostream &out, FlavorHistoryEventHelper helper)
const_reverse_iterator rbegin() const
collection_type::const_reverse_iterator const_reverse_iterator
collection_type::const_reference const_reference
std::vector< value_type > collection_type
FlavorHistory::FLAVOR_T flavorSource
collection_type::reference reference
collection_type::size_type size_type
unsigned int highestFlavor_
collection_type histories_
collection_type::pointer pointer