ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16#include "CLHEP/Geometry/Point3D.h"
17#include <string>
18
19class CaloIdManager;
21class 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
72 int m_type; // i.e. in the barrel or in the endcap.
78 double m_distance;
80 bool m_failed{false};
81 Type m_hitType; // ie. active, inactive dead.
84};
85
87
88#endif
Class to store calorimeter calibration hit.
Helper class for Calo Dead Material offline identifiers.
Definition CaloDM_ID.h:102
This class groups all DetDescr information related to a CaloCell.
This class provides the client interface for accessing the detector description information common to...
This class initializes the Calo (LAr and Tile) offline identifiers.
bool isBarrel() const
double etaMin() const
int type() const
double phiMin() const
double energyTotal() const
const CaloCalibrationHit * m_hit
const CaloDetDescrElement * m_ddElement
const CaloDetDescrElement * getDetDescrElement() const
int region() const
bool isEndcap() const
double etaMax() const
double energyNonEM() const
GeoCaloCalibHit(const CaloCalibrationHit &hit, const std::string &collectionName, const CaloDetDescrManager *caloMgr)
int sampling() const
std::string hitType() const
double energyEM() const
double energyEscaped() const
double phiMax() const
double eta() const
void init(const std::string &collectionName)
int subdet() const
const CaloDetDescrManager * m_ddManager
double distance() const
double energyInvisible() const
GeoCaloCalibHit()=delete
double phi() const