Basic container storing all information need for xAOD::CaloTower_v1 objects.
More...
#include <CaloTowerContainer_v1.h>
Public Member Functions | |||||||||||||
| CaloTowerContainer_v1 (SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES) | |||||||||||||
Default constructor Constructs a tower container without structure (binning) or content. The configureGrid method has to be called after this container is instantiated and an auxiliary store is assigned. | |||||||||||||
| CaloTowerContainer_v1 (int nEtaBins, double etaMin, double etaMax, int nPhiBins, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES) | |||||||||||||
| Loaded constructor. | |||||||||||||
| CaloTowerContainer_v1 (CaloTowerContainer_v1 &other, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) | |||||||||||||
| Copy constructor used by POOL converter (allows also shallow copies) Constructs a view-container and copies the metadata. | |||||||||||||
| ~CaloTowerContainer_v1 () | |||||||||||||
| Destructor. | |||||||||||||
Container management | |||||||||||||
Configure the tower grid with individual parameters
| |||||||||||||
| bool | configureGrid (int nEtaBins, double etaMin, double etaMax, int nPhiBins) | ||||||||||||
Tower grid description accessors | |||||||||||||
| int | nEtaBins () const | ||||||||||||
| double | etaMin () const | ||||||||||||
| > | |||||||||||||
| double | etaMax () const | ||||||||||||
| > | |||||||||||||
| double | deltaEta () const | ||||||||||||
| > | |||||||||||||
| int | nPhiBins () const | ||||||||||||
| > | |||||||||||||
| double | phiMin () const | ||||||||||||
| > | |||||||||||||
| double | phiMax () const | ||||||||||||
| > | |||||||||||||
| double | deltaPhi () const | ||||||||||||
| > | |||||||||||||
| int | nTowers () const | ||||||||||||
| > | |||||||||||||
Conversion to/from indices | |||||||||||||
| int | index (double eta, double phi) const | ||||||||||||
| double | eta (size_t index) const | ||||||||||||
| double | phi (size_t index) const | ||||||||||||
| const CaloTower_v1 * | tower (double eta, double phi) const | ||||||||||||
Basic container storing all information need for xAOD::CaloTower_v1 objects.
This container does not only provide the store for CaloTower_v1 object, but also all meta-data needed to provide the tower grid and kinematics. The tower grid is defined in terms of pseudorapidity (
) and azimuth (
). In this it follows the CaloCell direction descriptors. As calorimeter towers represented by xAOD::CaloTower_v1 objects are by definition massless, any four-momentum representation extracted from a calorimeter tower (a bin in tower grid specified by this container) yields
for rapidity
.
There is no need to rebuild this container event-by-event, because the direction of any given tower never changes, only its energy content; the direction is related to the tower's index in the container.
Usage default tower grid version (without the code recording in the event store):
// create an empty container xAOD::CaloTowerContainer_v1* towCont = new xAOD::CaloTowerContainer_v1(); // allocate the auxiliary store xAOD::CaloTowerAuxContainer_v1* towAuxCont = new xAOD::CaloTowerAuxContainer(); // associate the two containers towCont->setStore(towAuxCont); // configure with a typical hadronic tower grid (0.1 x 0.1) and fill in empty CaloTowers towCont->configureGrid(100,-5.,5.,64);
| xAOD::CaloTowerContainer_v1::CaloTowerContainer_v1 | ( | SG::OwnershipPolicy | ownPolicy = SG::OWN_ELEMENTS, |
|
| SG::IndexTrackingPolicy | trackIndices = SG::DEFAULT_TRACK_INDICES | |||
| ) |
Default constructor Constructs a tower container without structure (binning) or content. The configureGrid method has to be called after this container is instantiated and an auxiliary store is assigned.
Arguments correspond to the DataVector constructor:
| [in] | ownPolicy | ownership policy tag (default owns its elements) |
| [in] | trackIndices | tracking indicies policy (default track indices) |
| xAOD::CaloTowerContainer_v1::CaloTowerContainer_v1 | ( | int | nEtaBins, | |
| double | etaMin, | |||
| double | etaMax, | |||
| int | nPhiBins, | |||
| SG::OwnershipPolicy | ownPolicy = SG::OWN_ELEMENTS, |
|||
| SG::IndexTrackingPolicy | trackIndices = SG::DEFAULT_TRACK_INDICES | |||
| ) |
Loaded constructor.
Constructs a configured CaloTowerContainer_v1 object with tower grid parameters
CaloTowerContainer_v1::configureGrid method will do nothing - the tower grid cannot be overwritten when using this constructor.
boundaries are hardcoded to ![$ [-\pi,\pi] $](../../form_35.png)
| [in] | nEtaBins | number of bins |
| [in] | etaMin | lower boundary of range |
| [in] | etaMax | upper boundary of range |
| [in] | nPhiBins | number of bins (default 64) |
| [in] | towDescr | reference to non-modifiable CaloTowerDescriptor |
| [in] | ownPolicy | ownership policy tag (default owns its elements) |
| [in] | trackIndices | tracking indicies policy (default track indices) |
| double xAOD::CaloTowerContainer_v1::deltaEta | ( | ) | const [inline] |
>
Returns upper boudnary of
range
| double xAOD::CaloTowerContainer_v1::deltaPhi | ( | ) | const [inline] |
>
Returns upper boundary of
range
| double xAOD::CaloTowerContainer_v1::etaMax | ( | ) | const [inline] |
>
Returns lower boundary of
range
| double xAOD::CaloTowerContainer_v1::etaMin | ( | ) | const [inline] |
>
Returns number of
bins
| int xAOD::CaloTowerContainer_v1::nPhiBins | ( | ) | const [inline] |
>
Returns grid size in
| int xAOD::CaloTowerContainer_v1::nTowers | ( | ) | const [inline] |
>
Returns grid size in
| double xAOD::CaloTowerContainer_v1::phiMax | ( | ) | const [inline] |
>
Returns lower boundary of
range
| double xAOD::CaloTowerContainer_v1::phiMin | ( | ) | const [inline] |
>
Returns number of
bins
1.6.1