Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JetMapv1 Class Reference

#include <coresoftware/blob/master/offline/packages/jetbase/JetMapv1.h>

+ Inheritance diagram for JetMapv1:
+ Collaboration diagram for JetMapv1:

Public Member Functions

 JetMapv1 ()=default
 
 JetMapv1 (const JetMap &jets)
 
JetMapv1operator= (const JetMap &jets)
 
 ~JetMapv1 () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
int isValid () const override
 isValid returns non zero if object contains vailid data
 
PHObjectCloneMe () const override
 Virtual copy constructor.
 
void set_algo (Jet::ALGO algo) override
 
Jet::ALGO get_algo () const override
 
void set_par (float par) override
 
float get_par () const override
 
bool empty_src () const override
 
void insert_src (Jet::SRC src) override
 
ConstSrcIter begin_src () const override
 
ConstSrcIter find_src (Jet::SRC src) const override
 
ConstSrcIter end_src () const override
 
SrcIter begin_src () override
 
SrcIter find_src (Jet::SRC src) override
 
SrcIter end_src () override
 
bool empty () const override
 
size_t size () const override
 
size_t count (unsigned int idkey) const override
 
void clear () override
 
const Jetget (unsigned int idkey) const override
 
Jetget (unsigned int idkey) override
 
Jetinsert (Jet *jet) override
 insert Jet to the map. Once inserted, the JetMap owns the Jet memory
 
size_t erase (unsigned int idkey) override
 
ConstIter begin () const override
 
ConstIter find (unsigned int idkey) const override
 
ConstIter end () const override
 
Iter begin () override
 
Iter find (unsigned int idkey) override
 
Iter end () override
 
std::vector< Jet * > vec () override
 
- Public Member Functions inherited from JetMap
 JetMap ()=default
 
 ~JetMap () override=default
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Member Functions

 ClassDefOverride (JetMapv1, 1)
 

Private Attributes

Jet::ALGO _algo = Jet::NONE
 
float _par = NAN
 
std::set< Jet::SRC_src
 
typ_JetMap _map
 

Additional Inherited Members

- Public Types inherited from JetMap
typedef std::map< unsigned int,
Jet * > 
typ_JetMap
 
typedef typ_JetMap::const_iterator ConstIter
 
typedef typ_JetMap::iterator Iter
 
typedef std::vector< Jet * > vec_JetMap
 
typedef std::set< Jet::SRC >
::const_iterator 
ConstSrcIter
 
typedef std::set< Jet::SRC >
::iterator 
SrcIter
 

Detailed Description

Definition at line 14 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 14 of file JetMapv1.h

Constructor & Destructor Documentation

JetMapv1::JetMapv1 ( )
default

Referenced by CloneMe().

+ Here is the caller graph for this function:

JetMapv1::JetMapv1 ( const JetMap jets)
explicit

Definition at line 15 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 15 of file JetMapv1.cc

References _map, _src, assert, JetMap::begin_src(), CloneMe(), JetMap::end_src(), and Jet::get_id().

+ Here is the call graph for this function:

JetMapv1::~JetMapv1 ( )
override

Definition at line 58 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 58 of file JetMapv1.cc

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

ConstIter JetMapv1::begin ( void  ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 62 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 62 of file JetMapv1.h

References _map.

Iter JetMapv1::begin ( void  )
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 66 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 66 of file JetMapv1.h

References _map.

ConstSrcIter JetMapv1::begin_src ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 40 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 40 of file JetMapv1.h

References _src.

Referenced by identify().

+ Here is the caller graph for this function:

SrcIter JetMapv1::begin_src ( )
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 44 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 44 of file JetMapv1.h

References _src.

JetMapv1::ClassDefOverride ( JetMapv1  ,
 
)
private
void JetMapv1::clear ( )
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 53 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 53 of file JetMapv1.h

References Reset().

+ Here is the call graph for this function:

PHObject* JetMapv1::CloneMe ( ) const
inlineoverridevirtual

Virtual copy constructor.

Reimplemented from JetMap.

Definition at line 25 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 25 of file JetMapv1.h

References JetMapv1().

Referenced by JetMapv1(), and operator=().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t JetMapv1::count ( unsigned int  idkey) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 52 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 52 of file JetMapv1.h

References _map.

bool JetMapv1::empty ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 50 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 50 of file JetMapv1.h

References _map.

bool JetMapv1::empty_src ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 37 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 37 of file JetMapv1.h

References _src.

ConstIter JetMapv1::end ( void  ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 64 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 64 of file JetMapv1.h

References _map.

Iter JetMapv1::end ( void  )
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 68 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 68 of file JetMapv1.h

References _map.

ConstSrcIter JetMapv1::end_src ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 42 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 42 of file JetMapv1.h

References _src.

Referenced by identify().

+ Here is the caller graph for this function:

SrcIter JetMapv1::end_src ( )
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 46 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 46 of file JetMapv1.h

References _src.

size_t JetMapv1::erase ( unsigned int  idkey)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 60 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 60 of file JetMapv1.h

References _map.

ConstIter JetMapv1::find ( unsigned int  idkey) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 63 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 63 of file JetMapv1.h

References _map.

Iter JetMapv1::find ( unsigned int  idkey)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 67 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 67 of file JetMapv1.h

References _map.

ConstSrcIter JetMapv1::find_src ( Jet::SRC  src) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 41 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 41 of file JetMapv1.h

References _src.

SrcIter JetMapv1::find_src ( Jet::SRC  src)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 45 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 45 of file JetMapv1.h

References _src.

const Jet * JetMapv1::get ( unsigned int  idkey) const
overridevirtual

Reimplemented from JetMap.

Definition at line 90 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 90 of file JetMapv1.cc

References _map.

Jet * JetMapv1::get ( unsigned int  idkey)
overridevirtual

Reimplemented from JetMap.

Definition at line 97 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 97 of file JetMapv1.cc

References _map.

Jet::ALGO JetMapv1::get_algo ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 30 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 30 of file JetMapv1.h

References _algo.

float JetMapv1::get_par ( ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 33 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 33 of file JetMapv1.h

References _par.

void JetMapv1::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from JetMap.

Definition at line 76 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 76 of file JetMapv1.cc

References _map, _par, begin_src(), end_src(), and i.

+ Here is the call graph for this function:

Jet * JetMapv1::insert ( Jet jet)
overridevirtual

insert Jet to the map. Once inserted, the JetMap owns the Jet memory

Reimplemented from JetMap.

Definition at line 104 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 104 of file JetMapv1.cc

References _map, and index.

void JetMapv1::insert_src ( Jet::SRC  src)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 38 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 38 of file JetMapv1.h

References _src.

int JetMapv1::isValid ( ) const
inlineoverridevirtual

isValid returns non zero if object contains vailid data

Reimplemented from JetMap.

Definition at line 24 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 24 of file JetMapv1.h

JetMapv1 & JetMapv1::operator= ( const JetMap jets)

Definition at line 34 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 34 of file JetMapv1.cc

References _algo, _map, _par, _src, assert, JetMap::begin_src(), CloneMe(), JetMap::end_src(), JetMap::get_algo(), Jet::get_id(), JetMap::get_par(), and Reset().

+ Here is the call graph for this function:

void JetMapv1::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 63 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 63 of file JetMapv1.cc

References _algo, _map, _par, _src, and Jet::NONE.

Referenced by clear(), operator=(), and ~JetMapv1().

+ Here is the caller graph for this function:

void JetMapv1::set_algo ( Jet::ALGO  algo)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 29 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 29 of file JetMapv1.h

References _algo.

void JetMapv1::set_par ( float  par)
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 32 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 32 of file JetMapv1.h

References _par.

size_t JetMapv1::size ( void  ) const
inlineoverridevirtual

Reimplemented from JetMap.

Definition at line 51 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 51 of file JetMapv1.h

References _map.

std::vector< Jet * > JetMapv1::vec ( )
overridevirtual

Implements JetMap.

Definition at line 113 of file JetMapv1.cc.

View newest version in sPHENIX GitHub at line 113 of file JetMapv1.cc

References _, and _map.

Member Data Documentation

Jet::ALGO JetMapv1::_algo = Jet::NONE
private

Definition at line 73 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 73 of file JetMapv1.h

Referenced by get_algo(), operator=(), Reset(), and set_algo().

typ_JetMap JetMapv1::_map
private

Definition at line 76 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 76 of file JetMapv1.h

Referenced by begin(), count(), empty(), end(), erase(), find(), get(), identify(), insert(), JetMapv1(), operator=(), Reset(), size(), and vec().

float JetMapv1::_par = NAN
private

Definition at line 74 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 74 of file JetMapv1.h

Referenced by get_par(), identify(), operator=(), Reset(), and set_par().

std::set<Jet::SRC> JetMapv1::_src
private

Definition at line 75 of file JetMapv1.h.

View newest version in sPHENIX GitHub at line 75 of file JetMapv1.h

Referenced by begin_src(), empty_src(), end_src(), find_src(), insert_src(), JetMapv1(), operator=(), and Reset().


The documentation for this class was generated from the following files: