Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664175
JetCollection.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
JetCollection.hh
View Options
#ifndef _JETCOLLECTION_HH_
#define _JETCOLLECTION_HH_
#include
"Jet.hh"
#include
"JetMomentMap.hh"
#include
"CommonUtils.hh"
//////////////////////////////////////////////////////////////////
/// a JetCollection is simply a list of jet with a JetMomentMap.
/// JetMoment are associated to jets through a map (in JetMomentMap) which allows
/// fast retrieval/setting of moments for a given jet
namespace
SpartyJet
{
//////////////////////////////////////////////////////////////////
class
JetCollection
:
public
Jet
::
jet_list_t
{
public
:
JetCollection
()
:
Jet
::
jet_list_t
(){};
JetCollection
(
Jet
::
jet_list_t
&
jetlist
)
:
Jet
::
jet_list_t
(
jetlist
){};
~
JetCollection
(){}
/// Shortcut functions to jetMoment
float
get_jet_moment
(
std
::
string
mom_name
,
Jet
*
jet
);
float
get_jet_moment
(
std
::
string
mom_name
,
int
jet_index
);
/// Shortcut functions to jetMoment array
std
::
vector
<
float
>
get_jet_moment_array
(
std
::
string
mom_name
,
Jet
*
jet
);
std
::
vector
<
float
>
get_jet_moment_array
(
std
::
string
mom_name
,
int
jet_index
);
// This destroy the pointed Jets and clear the lists
void
clear_and_delete
();
JetMomentMap
*
get_JetMomentMap
(){
return
&
m_map
;}
// The = operation copies only the list of jets, not the map
JetCollection
&
operator
=
(
const
JetCollection
&
coll
);
protected
:
JetMomentMap
m_map
;
};
}
// namespace SpartyJet
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Apr 24, 6:31 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4851101
Default Alt Text
JetCollection.hh (1 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment