ATLAS Offline Software
GeoCaloCalibHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GEOADAPTORS_GEOCALOCALIBHIT_H
6 #define GEOADAPTORS_GEOCALOCALIBHIT_H
7 
16 #include "CLHEP/Geometry/Point3D.h"
17 #include <string>
18 
19 class CaloIdManager;
20 class CaloCalibrationHit;
21 class CaloDM_ID;
24 
26 {
27  public:
28 
30 
31  GeoCaloCalibHit() = delete;
33  , const std::string & collectionName
34  , const CaloDetDescrManager* caloMgr);
35 
36  double energyEM() const;
37  double energyNonEM() const;
38  double energyInvisible() const;
39  double energyEscaped() const;
40  double energyTotal() const;
41 
42  int subdet() const;
43  int type() const;
44  int sampling() const;
45  int region() const;
46 
47  double phiMin() const;
48  double phiMax() const;
49  double etaMin() const;
50  double etaMax() const;
51  double eta() const;
52  double phi() const;
53  double distance() const;
54  bool isBarrel() const;
55  bool isEndcap() const;
56 
57  // Is this hit OK?
58  operator bool () const;
59 
60  // Which type of hit is this??
61  std::string hitType() const;
62 
63  // Get the detetector element:
65 
66  private:
67  void init(const std::string & collectionName);
68 
69  const CaloCalibrationHit* m_hit{nullptr};
70 
71  int m_subdet;
72  int m_type; // i.e. in the barrel or in the endcap.
74  int m_region;
75  int m_etaBin;
76  int m_phiBin;
77  double m_etaOffset;
78  double m_distance;
79  bool m_isBarrel;
80  bool m_failed{false};
81  Type m_hitType; // ie. active, inactive dead.
84 };
85 
87 
88 #endif
GeoCaloCalibHit::m_type
int m_type
Definition: GeoCaloCalibHit.h:72
GeoCaloCalibHit::hitType
std::string hitType() const
GeoCaloCalibHit
Adaptor for CaloCalibHits.
Definition: GeoCaloCalibHit.h:26
GeoCaloCalibHit::energyEscaped
double energyEscaped() const
GeoCaloCalibHit::m_region
int m_region
Definition: GeoCaloCalibHit.h:74
GeoCaloCalibHit::subdet
int subdet() const
GeoCaloCalibHit::GeoCaloCalibHit
GeoCaloCalibHit()=delete
GeoCaloCalibHit::INACTIVE
@ INACTIVE
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::energyEM
double energyEM() const
GeoCaloCalibHit::phiMax
double phiMax() const
GeoCaloCalibHit::eta
double eta() const
GeoCaloCalibHit::m_isBarrel
bool m_isBarrel
Definition: GeoCaloCalibHit.h:79
GeoCaloCalibHit::TILEAI
@ TILEAI
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::GeoCaloCalibHit
GeoCaloCalibHit(const CaloCalibrationHit &hit, const std::string &collectionName, const CaloDetDescrManager *caloMgr)
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
GeoCaloCalibHit::type
int type() const
GeoCaloCalibHit::m_etaBin
int m_etaBin
Definition: GeoCaloCalibHit.h:75
GeoCaloCalibHit::m_hitType
Type m_hitType
Definition: GeoCaloCalibHit.h:81
GeoCaloCalibHit::DEAD
@ DEAD
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::m_failed
bool m_failed
Definition: GeoCaloCalibHit.h:80
GeoCaloCalibHit::energyNonEM
double energyNonEM() const
GeoCaloCalibHit::phi
double phi() const
GeoCaloCalibHit::m_sampling
int m_sampling
Definition: GeoCaloCalibHit.h:73
GeoCaloCalibHit::isBarrel
bool isBarrel() const
GeoCaloCalibHit::getDetDescrElement
const CaloDetDescrElement * getDetDescrElement() const
GeoCaloCalibHit::TILEINACTIVE
@ TILEINACTIVE
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::TILEDM
@ TILEDM
Definition: GeoCaloCalibHit.h:29
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
GeoCaloCalibHit::energyInvisible
double energyInvisible() const
GeoCaloCalibHit.icc
GeoCaloCalibHit::ACTIVE
@ ACTIVE
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::m_phiBin
int m_phiBin
Definition: GeoCaloCalibHit.h:76
GeoCaloCalibHit::m_distance
double m_distance
Definition: GeoCaloCalibHit.h:78
GeoCaloCalibHit::m_ddElement
const CaloDetDescrElement * m_ddElement
Definition: GeoCaloCalibHit.h:82
GeoCaloCalibHit::TILEACTIVE
@ TILEACTIVE
Definition: GeoCaloCalibHit.h:29
xAODType
Definition: ObjectType.h:13
GeoCaloCalibHit::region
int region() const
CaloCalibrationHit
Class to store calorimeter calibration hit.
Definition: CaloCalibrationHit.h:23
GeoCaloCalibHit::distance
double distance() const
GeoCaloCalibHit::isEndcap
bool isEndcap() const
GeoCaloCalibHit::etaMax
double etaMax() const
GeoCaloCalibHit::etaMin
double etaMin() const
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
GeoCaloCalibHit::phiMin
double phiMin() const
CaloDM_ID
Helper class for Calo Dead Material offline identifiers.
Definition: CaloDM_ID.h:102
GeoCaloCalibHit::TILEDEAD
@ TILEDEAD
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::energyTotal
double energyTotal() const
GeoCaloCalibHit::sampling
int sampling() const
GeoCaloCalibHit::m_hit
const CaloCalibrationHit * m_hit
Definition: GeoCaloCalibHit.h:69
GeoCaloCalibHit::m_subdet
int m_subdet
Definition: GeoCaloCalibHit.h:71
GeoCaloCalibHit::m_ddManager
const CaloDetDescrManager * m_ddManager
Definition: GeoCaloCalibHit.h:83
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60
GeoCaloCalibHit::init
void init(const std::string &collectionName)
GeoCaloCalibHit::UNRECOGNIZED
@ UNRECOGNIZED
Definition: GeoCaloCalibHit.h:29
GeoCaloCalibHit::m_etaOffset
double m_etaOffset
Definition: GeoCaloCalibHit.h:77