ATLAS Offline Software
Loading...
Searching...
No Matches
EventEtDensity.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7
9
10bool EventEtDensity::copyData(const std::vector<double>& lparm,
11 size_t lindx)
12{
13 // check consistency
14 static const size_t nn((size_t)MAXINDEX);
15 if ( (lindx+1) * nn > lparm.size() )
16 {
17 this->clear();
18 return false;
19 }
20
21 // pick up
22 rhoValue = lparm[lindx+(size_t)RHOVALUE];
23 rhoSigma = lparm[lindx+(size_t)RHOSIGMA];
24 areaValue = lparm[lindx+(size_t)AREAVALUE];
25 etaRangeLow = lparm[lindx+(size_t)ETARANGELOW];
26 etaRangeHigh = lparm[lindx+(size_t)ETARANGEHIGH];
27 return true;
28}
29
30bool EventEtDensity::extractData(std::vector<double>& lparm,size_t lindx) const
31{
32 static const size_t nn((size_t)MAXINDEX);
33 if ( nn*(lindx+1) > lparm.size() ) lparm.resize(nn*(lindx+1));
34 lparm[lindx+(size_t)RHOVALUE] = rhoValue;
35 lparm[lindx+(size_t)RHOSIGMA] = rhoSigma;
36 lparm[lindx+(size_t)AREAVALUE] = areaValue;
37 lparm[lindx+(size_t)ETARANGELOW] = etaRangeLow;
38 lparm[lindx+(size_t)ETARANGEHIGH] = etaRangeHigh;
39 return true;
40}
41
43{
44 double invVal(EventShapeConstants::invalidValue());
45 rhoValue = invVal;
46 rhoSigma = invVal;
47 areaValue = invVal;
48 etaRangeLow = invVal;
49 etaRangeHigh = invVal;
50}
51
53{
54 double nullVal(EventShapeConstants::nullValue());
55 rhoValue = nullVal;
56 rhoSigma = nullVal;
57 areaValue = nullVal;
58 etaRangeLow = nullVal;
59 etaRangeHigh = nullVal;
60}
static bool extractData(const EventEtDensity &data, std::vector< double > &lparm, size_t lindx=0)
void clear()
Clear this EventEtDensity store.
double etaRangeLow
Access to lower range limit.
double etaRangeHigh
Access to upper range limit.
double rhoSigma
Access to spread of transverse energy density .
double rhoValue
Access to event transverse energy density .
static bool copyData(const std::vector< double > &lparm, EventEtDensity &data, size_t lindx=0)
Fill EventEtDensity from a vector.
double areaValue
Access to total area occupied by probe jets.
static double invalidValue()
static double nullValue()