ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTower.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/********************************************************************
6
7NAME: CalorTower.cxx
8PACKAGE: offline/Calorimeter/CaloRec
9
10AUTHORS: S. Rajagopalan
11CREATED: Oct 2000
12
13PURPOSE: Tower data class for Calorimeter.
14
15Updated: Feb 5, 2001 (HM)
16 Made it to be a concrete class.
17
18 Jan 16, 2003 (P.Loch)
19 Introduce new navigation system, needed map of cell weights
20
21********************************************************************/
22
23#include "CaloEvent/CaloTower.h"
24#include "CaloEvent/CaloCell.h"
25
26
27
29// Destructor //
31
33= default;
34
36// Kinematics Update //
38
39void CaloTower::updateKine(const CaloCell* theCell, double weight)
40{
41 // updates E and Et (no change of tower direction!)
42 this->setE( this->e() + weight * theCell->e() );
43}
44
46// Basic Energy Signal //
48
49
50double
51CaloTower::getBasicEnergy() const { return this->e(); }
52
53void
54CaloTower::setBasicEnergy(double theEnergy) { this->setE(theEnergy); }
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition CaloCell.h:333
virtual void setBasicEnergy(double theEnergy) override
Basic signal setter.
Definition CaloTower.cxx:54
virtual double e() const override final
get energy data member
virtual ~CaloTower() override
Destructor.
virtual double getBasicEnergy() const override
Basic signal getter.
Definition CaloTower.cxx:51
virtual void updateKine(const CaloCell *theCell, double weight) override
Update tower kinematics when cell is added.
Definition CaloTower.cxx:39
virtual void setE(double theE)
set energy data member
Definition P4EEtaPhiM.h:114