ATLAS Offline Software
|
Data container for event Et densities. More...
#include <EventEtDensity.h>
Public Types | |
enum | DataIndex { RHOVALUE = 2, RHOSIGMA = 3, AREAVALUE = 4, ETARANGELOW = 0, ETARANGEHIGH = 1, MAXINDEX = 5, INVALIDINDEX = -1 } |
Data indices in external vectors. More... | |
Public Member Functions | |
EventEtDensity () | |
Constructor. More... | |
EventEtDensity (double rho, double sigma=0., double area=40.0 *M_PI_2, double etaLow=-5., double etaHigh=5.) | |
Constructor. More... | |
EventEtDensity (double rho, double sigma, double area, const fastjet::RangeDefinition &range) | |
Constructor. More... | |
~EventEtDensity () | |
Destructor. More... | |
fastjet::RangeDefinition | range () const |
Convert \( \eta \) range into fastjet::RangeDefinition . More... | |
bool | copyData (const std::vector< double > &lparm, size_t lindx=0) |
Fill this EventEtDensity from a vector. More... | |
bool | extractData (std::vector< double > &lparm, size_t lindx=0) const |
void | clear () |
Clear this EventEtDensity store. More... | |
void | reset () |
bool | inRange (double eta) const |
Static Public Member Functions | |
static size_t | capacity () |
static fastjet::RangeDefinition | range (const EventEtDensity &data) |
Convert \( \eta \) range into fastjet::RangeDefinition . More... | |
static bool | copyData (const std::vector< double > &lparm, EventEtDensity &data, size_t lindx=0) |
Fill EventEtDensity from a vector. More... | |
static bool | extractData (const EventEtDensity &data, std::vector< double > &lparm, size_t lindx=0) |
static EventEtDensity | createStore (const std::vector< double > &lparm, size_t lindx=0) |
Create EventEtDensity store. More... | |
static void | clear (EventEtDensity &data) |
Clear EventEtDensity store. More... | |
static void | reset (EventEtDensity &data) |
Public Attributes | |
double | rhoValue |
Access to event transverse energy density \( \rho \). More... | |
double | rhoSigma |
Access to spread of transverse energy density \( \sigma \). More... | |
double | areaValue |
Access to total area occupied by \( p_T > 0. \) probe jets. More... | |
double | etaRangeLow |
Access to lower \( \eta \) range limit. More... | |
double | etaRangeHigh |
Access to upper \( \eta \) range limit. More... | |
Data container for event Et densities.
Allows compact distribution and access to transverse energy event densities as provided by fastjet
Definition at line 14 of file EventEtDensity.h.
Data indices in external vectors.
Deines the order in an external vector, as e.g. used in the copyData
function.
Enumerator | |
---|---|
RHOVALUE | |
RHOSIGMA | |
AREAVALUE | |
ETARANGELOW | |
ETARANGEHIGH | |
MAXINDEX | |
INVALIDINDEX |
Definition at line 67 of file EventEtDensity.h.
|
inline |
Constructor.
Generates empty EventEtDensity
structure - generally not very useful.
Definition at line 200 of file EventEtDensity.h.
|
inline |
Constructor.
Generates loaded EventEtDensity
structure.
[in] | rho | event transverse energy density |
[in] | sigma | event transverse energy fluctuation (default 0. - optional argument from e.g. fastjet ) |
[in] | area | total area in range occupied by probe jets with \( p_T > 0 \) (default no jets, i.e. \( \Delta\eta \times 2\pi$ \) - optional argument from e.g. fastjet ) |
[in] | etaLow | lower limit \( \eta_L \) of \( \eta \) range in which density is evaluated (default: ATLAS coverage \( \eta_L = -5. \) - optional argument ) |
[in] | etaHigh | upper limit \( \eta_H \) of \( \eta \) range in which density is evaluated (default: ATLAS coverage \( \eta_H = 5. \) - optional argument ) |
Definition at line 208 of file EventEtDensity.h.
|
inline |
Constructor.
Generates loaded EventEtDensity
structure.
[in] | rho | event transverse energy density |
[in] | sigma | event transverse energy fluctuation (typically from fastjet ) |
[in] | area | total area in range occupied by probe jets with \( p_T > 0 \) (typically from fastjet ) |
[in] | range | range in which density is to be evaluated, presented as fastjet::Rangedefinition |
Definition at line 217 of file EventEtDensity.h.
|
inline |
|
inlinestatic |
Definition at line 254 of file EventEtDensity.h.
void EventEtDensity::clear | ( | ) |
Clear this
EventEtDensity
store.
Sets all data to EventFeatureToolBase::invalidValue()
.
Definition at line 42 of file EventEtDensity.cxx.
|
inlinestatic |
Clear EventEtDensity
store.
Sets all data to EventFeatureToolBase::invalidValue()
.
Definition at line 251 of file EventEtDensity.h.
|
inlinestatic |
Fill EventEtDensity
from a vector.
[in] | lparm | const reference to non-modifiable list of density variables (needs to contain at least MAXINDEX variables) |
[out] | data | reference to modifiable EventEtDensity object |
[in] | lindx | starting index for parameter copy (optional, default lindx = 0 ) |
This function will make the following assignments (not the actual implementation, just to illustrate the behaviour):
size_t offset(lindx*(size_t)MAXINDEX); data.rhoValue = lparm.at(offset+(size_t)RHOVALUE); data.rhoSigma = lparm.at(offset+(size_t)RHOSIGMA); data.areaValue = lparm.at(offset+(size_t)AREAVALUE); data.etaRangeLow = lparm.at(offset+(size_t)ETARANGELOW); data.etaRangeHigh = lparm.at(offset+(size_t)ETARANGEHIGH);
Only full blocks of MAXINDEX
data words are copied. This means that only data up to the last full block of MAXINDEX
numbers is converted.
Definition at line 237 of file EventEtDensity.h.
bool EventEtDensity::copyData | ( | const std::vector< double > & | lparm, |
size_t | lindx = 0 |
||
) |
Fill this
EventEtDensity
from a vector.
[in] | lparm | const reference to non-modifiable list of density variables |
[in] | lindx | starting index for parameter copy (optional, default lindx = 0 ) |
This function will make the following assignments (not the actual implementation, just to illustrate the behaviour):
size_t offset(lindx*(size_t)MAXINDEX); data.rhoValue = lparm.at(offset+(size_t)RHOVALUE); data.rhoSigma = lparm.at(offset+(size_t)RHOSIGMA); data.areaValue = lparm.at(offset+(size_t)AREAVALUE); data.etaRangeLow = lparm.at(offset+(size_t)ETARANGELOW); data.etaRangeHigh = lparm.at(offset+(size_t)ETARANGEHIGH);
Only full blocks of MAXINDEX
data words are copied. This means that only data up to the last full block of MAXINDEX
numbers is converted.
Definition at line 10 of file EventEtDensity.cxx.
|
inlinestatic |
|
inlinestatic |
Definition at line 247 of file EventEtDensity.h.
bool EventEtDensity::extractData | ( | std::vector< double > & | lparm, |
size_t | lindx = 0 |
||
) | const |
Definition at line 30 of file EventEtDensity.cxx.
|
inline |
Definition at line 260 of file EventEtDensity.h.
|
inline |
Convert \( \eta \) range into fastjet::RangeDefinition
.
Definition at line 229 of file EventEtDensity.h.
|
inlinestatic |
Convert \( \eta \) range into fastjet::RangeDefinition
.
Definition at line 232 of file EventEtDensity.h.
void EventEtDensity::reset | ( | ) |
Definition at line 52 of file EventEtDensity.cxx.
|
inlinestatic |
Definition at line 257 of file EventEtDensity.h.
double EventEtDensity::areaValue |
Access to total area occupied by \( p_T > 0. \) probe jets.
Definition at line 80 of file EventEtDensity.h.
double EventEtDensity::etaRangeHigh |
Access to upper \( \eta \) range limit.
Definition at line 84 of file EventEtDensity.h.
double EventEtDensity::etaRangeLow |
Access to lower \( \eta \) range limit.
Definition at line 82 of file EventEtDensity.h.
double EventEtDensity::rhoSigma |
Access to spread of transverse energy density \( \sigma \).
Definition at line 78 of file EventEtDensity.h.
double EventEtDensity::rhoValue |
Access to event transverse energy density \( \rho \).
Definition at line 76 of file EventEtDensity.h.