ATLAS Offline Software
Loading...
Searching...
No Matches
CaloDmDescrArea Class Reference

This object is used to compute calibration energy deposits in the dead material. More...

#include <CaloDmDescrArea.h>

Collaboration diagram for CaloDmDescrArea:

Public Types

enum  DmArea {
  DMA_ALL , DMA_EMB0 , DMA_EMB1 , DMA_EMB_HALVES ,
  DMA_EMB3_TILE0 , DMA_SCN , DMA_EME_EXT , DMA_EME0 ,
  DMA_EME11 , DMA_EME12 , DMA_EME13 , DMA_EME14 ,
  DMA_EME_INNER_OUTER , DMA_EME3_HEC0 , DMA_HECWHEEL , DMA_HEC_AZIMUTH ,
  DMA_HEC_FCAL , DMA_FCAL0_FCAL1 , DMA_FCAL1_FCAL2 , DMA_FCAL0 ,
  DMA_LEAK , DMA_DEFCALC , DMA_UNCLASS , DMA_MAX
}

Public Member Functions

 CaloDmDescrArea ()
 ~CaloDmDescrArea ()=default

Static Public Member Functions

static int getArea (const int &dmkey, const float &eta)

Detailed Description

This object is used to compute calibration energy deposits in the dead material.

Author
Gennady Pospelov guenn.nosp@m.adi..nosp@m.pospe.nosp@m.lov@.nosp@m.cern..nosp@m.ch
Date
27-January-2010

It serves to centralize the naming conventions for dead material areas outside of calorimeter instrumented regions.

Definition at line 19 of file CaloDmDescrArea.h.

Member Enumeration Documentation

◆ DmArea

Enumerator
DMA_ALL 
DMA_EMB0 
DMA_EMB1 
DMA_EMB_HALVES 
DMA_EMB3_TILE0 
DMA_SCN 
DMA_EME_EXT 
DMA_EME0 
DMA_EME11 
DMA_EME12 
DMA_EME13 
DMA_EME14 
DMA_EME_INNER_OUTER 
DMA_EME3_HEC0 
DMA_HECWHEEL 
DMA_HEC_AZIMUTH 
DMA_HEC_FCAL 
DMA_FCAL0_FCAL1 
DMA_FCAL1_FCAL2 
DMA_FCAL0 
DMA_LEAK 
DMA_DEFCALC 
DMA_UNCLASS 
DMA_MAX 

Definition at line 23 of file CaloDmDescrArea.h.

23 {
24 DMA_ALL, // 0, total energy in the dead material (all calibration hits sum)
25 DMA_EMB0, // 1, energy before PreSamplerB, |eta|<1.5
26 DMA_EMB1, // 2, energy between PreSamplerB and EMB1
27 DMA_EMB_HALVES, // 3, energy between two barrel halves
28 DMA_EMB3_TILE0, // 4, energy between EMB3 and TILE0
29 DMA_SCN, // 5, energy before scintillator
30 DMA_EME_EXT, // 6, energy between (emec+hec) and TileExt0
31 DMA_EME0, // 7, energy before PreSamplerE |eta|<1.5
32 DMA_EME11, // 8, energy before EME1 |eta|<1.5
33 DMA_EME12, // 9, energy before EME1 1.5<|eta|<1.8
34 DMA_EME13, // 10, energy before EME1 1.8<|eta|<2.5
35 DMA_EME14, // 11, energy before EME1 2.5<|eta|<3.2
36 DMA_EME_INNER_OUTER, // 12, energy between inner and outer wheel
37 DMA_EME3_HEC0, // 13, energy between EME3 and HEC0
38 DMA_HECWHEEL, // 14, energy between HEC1 and HEC2
39 DMA_HEC_AZIMUTH, // 15, energy in HEC azimuthal cracks
40 DMA_HEC_FCAL, // 16, energy between HEC and FCAL
41 DMA_FCAL0_FCAL1, // 17, energy between FCAL0 and FCAL1
42 DMA_FCAL1_FCAL2, // 18, energy between FCAL1 and FCAL2
43 DMA_FCAL0, // 19, energy before FCAL0
44 DMA_LEAK, // 20, leakage and energy flow (+TILE girder)
45 DMA_DEFCALC, // 21, default calclulator energy
46 DMA_UNCLASS, // 22, energy in hits out of this classification
47 DMA_MAX // 23.
48 };

Constructor & Destructor Documentation

◆ CaloDmDescrArea()

CaloDmDescrArea::CaloDmDescrArea ( )
default

◆ ~CaloDmDescrArea()

CaloDmDescrArea::~CaloDmDescrArea ( )
default

Member Function Documentation

◆ getArea()

int CaloDmDescrArea::getArea ( const int & dmkey,
const float & eta )
static

Definition at line 25 of file CaloDmDescrArea.cxx.

26{
27 int nsmp=DMA_UNCLASS;
28
29 float eta = std::abs(xeta);
30
31 if(key >=4101 && key <=4105) { // inner detector
32 if(eta <1.5) {
33 nsmp = DMA_EMB0;
34 } else if (eta>=1.5 && eta<1.6){
35 nsmp = DMA_SCN;
36 } else if (eta>=1.6 && eta<1.8){
37 nsmp = DMA_EME0;
38 } else if (eta>=1.8 && eta<2.5){
39 nsmp = DMA_EME13;
40 } else if (eta>=2.5 && eta<3.2){
41 nsmp = DMA_EME14;
42 } else if (eta>=3.2) {
43 nsmp = DMA_FCAL0;
44 }
45 } else if(key==4110 || key==4111 || key==4112) {
46 nsmp = DMA_EMB0;
47 } else if(key==4113) {
48 nsmp = DMA_EMB1;
49 }else if(key==4114 || key==4122 || key==4121 || key==5110 || key==5111) {
50 nsmp = DMA_SCN;
51 } else if(key==4115) {
52 nsmp = DMA_EME0;
53 } else if(key==4116) {
54 if(eta<1.5){
55 nsmp = DMA_EME11;
56 }else if(eta<1.8){
57 nsmp = DMA_EME12;
58 }else if(eta<2.5){
59 nsmp = DMA_EME13;
60 }else if(eta<3.2){
61 nsmp = DMA_EME14;
62 }
63 } else if(key==4120 || key==5100) {
64 nsmp = DMA_EMB3_TILE0;
65 } else if(key==4123) {
66 nsmp = DMA_EME3_HEC0;
67 } else if(key==4125 || key==5101) {
68 nsmp = DMA_EME_EXT;
69 } else if((key >=4130 && key<=4132) || key==5130) {
70 nsmp = DMA_LEAK;
71 } else if(key == 4202 || key == 4203 || key == 4212 || key == 4213
72 || key == 4222 || key == 4223 || key == 4232 || key == 4233 ) {
73 nsmp=DMA_HEC_AZIMUTH;
74 } else if(key == 4204 || key == 4214 || key==4224 || key == 4234) {
75 nsmp=DMA_HEC_FCAL;
76 } else if(key == 4117 || key==4205 || key==4215 ) {
77 nsmp = DMA_FCAL0;
78 } else if(key == 4225) {
79 nsmp = DMA_FCAL0_FCAL1;
80 } else if(key == 4235) {
81 nsmp = DMA_FCAL1_FCAL2;
82 }else if(key == 4100) {
83 nsmp = DMA_DEFCALC;
84 } else if(key == 4124) {
85 nsmp = DMA_HECWHEEL;
86 }else if(key == 4200 || key == 4210|| key == 4220|| key == 4230) {
87 nsmp = DMA_EMB_HALVES;
88 }else if(key == 4201 || key == 4211|| key == 4221|| key == 4231) {
90 } else if(key == 5120 || key == 5121|| key == 5122 || key == 5112) {
91 nsmp = DMA_LEAK;
92 } else if(key == 5200) {
93 nsmp = DMA_LEAK; // actually it's TILE default calculator, let it be inside DMA_LEAK
94 }
95
96 if(nsmp == DMA_UNCLASS ) {
97 std::cout << " CaloDmDescrArea::getArea() -> Warning! Can not classify dead material hit," << " key:" << key << " eta:" << eta << std::endl;
98 }
99
100 return nsmp;
101}
Scalar eta() const
pseudorapidity method

The documentation for this class was generated from the following files: