Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664423
JetNegEnergyTool.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
JetNegEnergyTool.hh
View Options
#ifndef _JETNEGENERGYTOOL_HH_
#define _JETNEGENERGYTOOL_HH_
/// ******************************************************
/// JetNegEnergyTool. A JetTool to manage jet constituent with e<0
// ToDo next :
// Use moment to store amounts of negative energy detected
#include
"JetTool.hh"
#include
<set>
namespace
SpartyJet
{
class
JetNegEnergyTool
:
public
JetTool
{
public
:
JetNegEnergyTool
(
std
::
string
name
)
:
JetTool
(
name
),
m_acquiring
(
true
){};
/// execute() call either acquisition() or correction() depending on m_acquiring switch
virtual
void
execute
(
JetCollection
&
inputJets
);
protected
:
typedef
std
::
set
<
Jet
*>
jet_list_t
;
/// acquisition is supposed to run before jet finding
/// It keeps tracks of all jets constituent having negative energy, changing
/// the energy sign so jet finding can correctly handle this constituent
void
acquisition
(
JetCollection
&
inputJets
);
/// correction is supposed to run after jet finding
/// It loop on constituents of each jets, checking if a constituent has been kept as negative.
/// if so it substracts the amount of energy to the parent jet
void
correction
(
JetCollection
&
inputJets
);
jet_list_t
m_neg_constits
;
bool
m_acquiring
;
};
}
// namespace SpartyJet
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Apr 24, 6:39 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4833135
Default Alt Text
JetNegEnergyTool.hh (1 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment