|
ATLAS Offline Software
|
Go to the documentation of this file.
25 return StatusCode::SUCCESS;
33 return StatusCode::SUCCESS;
56 towerItr != navInColl->
end(); ++towerItr)
62 (*towerItr)->fillToken(cellToken,
double(1.));
65 float eta0 = (*towerItr)->eta();
66 float phi0 = (*towerItr)->phi();
68 if (cellToken.
size() == 0)
continue;
72 return StatusCode::SUCCESS;
89 e->setArea(area_slice);
94 std::unique_ptr<std::vector<float> > weight_vector(
new std::vector<float>());
95 weight_vector->reserve(theClusters->
size());
98 std::unique_ptr<std::vector<float> > cm_vector(
new std::vector<float>());
99 cm_vector->reserve(theClusters->
size());
109 for (
auto cl : *theClusters)
111 double ET =
cl->e() / std::cosh(
cl->eta0());
112 double phi =
cl->phi0();
113 double eta =
cl->eta0();
120 if (recip != 0.)
weight = 1. / recip;
122 weight_vector->push_back(
weight);
132 if (!
cl->hasSampling(
s))
continue;
133 float esamp = std::abs(
cl->eSample(
s));
141 if (etot2 != 0)
cm = er2 / etot2;
143 cm_vector->push_back(
cm);
144 cm_decorator(*
cl) =
cm;
150 for (
unsigned int i = 0; i < static_cast<unsigned int>(
m_numOrders);
i++)
153 float tmp_cos =
slice->etCos().at(
i);
155 float tmp_sin =
slice->etSin().at(
i);
160 for (
auto es : *evtShape)
163 << std::setw(10) << es->etaMax()
164 << std::setw(15) << es->et() * 1
e-3);
166 for (
unsigned int i = 0; i < static_cast<unsigned int>(
m_numOrders);
i++)
169 << std::setw(15) << es->etCos().at(
i)
170 << std::setw(15) << es->etSin().at(
i));
174 return StatusCode::SUCCESS;
190 for (
const auto cellItr : *CellContainer)
updateShape(evtShape,
m_index, cellItr, 1., cellItr->eta(), cellItr->phi());
191 return StatusCode::SUCCESS;
197 float sgn = (isNeg) ? -1 : 1;
200 float cell_et = theCell->
et();
206 slice->setEt(
slice->et() + sgn * cell_et * geoWeight);
209 float area = std::abs(deta * dphi);
215 for (
unsigned int ih = 0; ih <
slice->etCos().
size(); ih++)
218 float tmp_cos =
slice->etCos().at(ih);
219 slice->etCos()[ih] = tmp_cos + cell_et *
cos(ih_f *
phi0) * geoWeight;
221 float tmp_sin =
slice->etSin().at(ih);
222 slice->etSin()[ih] = tmp_sin + cell_et *
sin(ih_f *
phi0) * geoWeight;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
float deta() const
cell deta
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
const_pointer_type cptr()
Dereference the pointer.
Scalar eta() const
pseudorapidity method
unsigned int findBinEta(float eta)
HIEventShape_v2 HIEventShape
Definition of the latest event info version.
float getBinLowEdgeEta(unsigned int eb)
constexpr float getBinArea()
void initializeEventShapeContainer(std::unique_ptr< xAOD::HIEventShapeContainer > &shape_container, unsigned int num_harmonics) const
Interface class for the HI reconstruction EDM.
float getBinUpEdgeEta(unsigned int eb)
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
virtual double et() const override final
get et
virtual bool isValid() override final
Can the handle be successfully dereferenced?
constexpr unsigned int numEtaBins()
const_iterator begin() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Container class for CaloCell.
const_iterator end() const
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
float dphi() const
cell dphi
Data object for each calorimeter readout cell.
CaloCell_ID::CaloSample getSampling() const
cell sampling
const T * at(size_type n) const
Access an element, as an rvalue.
CHILDPAR getParameter(const_child_ptr data) const
constexpr unsigned int numPhiBins()
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.