ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CaloSubdetNames Class Reference

This class contains the ENUM needed to label the calorimeter pieces which be mooved independently, including the Cryostats, and mapping with the corresponding identifiers and strings when possible. More...

#include <CaloSubdetNames.h>

Collaboration diagram for CaloSubdetNames:

Public Types

enum  ALIGNVOL {
  LARCRYO_B = 0, LARCRYO_EC_POS = 1, LARCRYO_EC_NEG = 2, PRESAMPLER_B_POS = 3,
  PRESAMPLER_B_NEG = 4, EMB_POS = 5, EMB_NEG = 6, PRESAMPLER_EC_POS = 7,
  PRESAMPLER_EC_NEG = 8, EMEC_POS = 9, EMEC_NEG = 10, HEC1_POS = 11,
  HEC1_NEG = 12, HEC2_POS = 13, HEC2_NEG = 14, FCAL1_POS = 15,
  FCAL1_NEG = 16, FCAL2_POS = 17, FCAL2_NEG = 18, FCAL3_POS = 19,
  FCAL3_NEG = 20, SOLENOID = 21, UNKNOWN = 22
}
 LAr Alignable volumes. More...
 

Public Member Functions

 CaloSubdetNames ()
 standard constructor More...
 
virtual ~CaloSubdetNames ()
 destructor More...
 
std::string alignVolName (CaloSubdetNames::ALIGNVOL alvol)
 Matching between names and enum. More...
 
CaloSubdetNames::ALIGNVOL alignVolEnum (const std::string &reconame)
 Matching between names and enum. More...
 

Private Member Functions

void match_names ()
 match names and enum More...
 

Private Attributes

std::vector< std::string > m_reconame
 vector of names More...
 
std::vector< CaloSubdetNames::ALIGNVOLm_alvol
 vector of ALIGNVOL enum values More...
 

Detailed Description

This class contains the ENUM needed to label the calorimeter pieces which be mooved independently, including the Cryostats, and mapping with the corresponding identifiers and strings when possible.

Claire Adam-Bourdarios, sept 2005

Definition at line 31 of file CaloSubdetNames.h.

Member Enumeration Documentation

◆ ALIGNVOL

LAr Alignable volumes.

Enumerator
LARCRYO_B 
LARCRYO_EC_POS 
LARCRYO_EC_NEG 
PRESAMPLER_B_POS 
PRESAMPLER_B_NEG 
EMB_POS 
EMB_NEG 
PRESAMPLER_EC_POS 
PRESAMPLER_EC_NEG 
EMEC_POS 
EMEC_NEG 
HEC1_POS 
HEC1_NEG 
HEC2_POS 
HEC2_NEG 
FCAL1_POS 
FCAL1_NEG 
FCAL2_POS 
FCAL2_NEG 
FCAL3_POS 
FCAL3_NEG 
SOLENOID 
UNKNOWN 

Definition at line 36 of file CaloSubdetNames.h.

36  { LARCRYO_B = 0, LARCRYO_EC_POS = 1, LARCRYO_EC_NEG = 2,
38  EMB_POS = 5, EMB_NEG = 6,
40  EMEC_POS = 9, EMEC_NEG = 10,
41  HEC1_POS = 11, HEC1_NEG = 12,
42  HEC2_POS = 13, HEC2_NEG = 14,
43  FCAL1_POS = 15, FCAL1_NEG = 16,
44  FCAL2_POS = 17, FCAL2_NEG = 18,
45  FCAL3_POS = 19, FCAL3_NEG = 20,
46  SOLENOID = 21, UNKNOWN = 22 };

Constructor & Destructor Documentation

◆ CaloSubdetNames()

CaloSubdetNames::CaloSubdetNames ( )

standard constructor

Definition at line 17 of file CaloSubdetNames.cxx.

18 {
19  match_names();
20 }

◆ ~CaloSubdetNames()

CaloSubdetNames::~CaloSubdetNames ( )
virtualdefault

destructor

Member Function Documentation

◆ alignVolEnum()

CaloSubdetNames::ALIGNVOL CaloSubdetNames::alignVolEnum ( const std::string &  reconame)

Matching between names and enum.

Definition at line 89 of file CaloSubdetNames.cxx.

90 {
91  for ( unsigned int i = 0; i < (unsigned int) CaloSubdetNames::UNKNOWN; i++)
92  {
93  if ( reconame == m_reconame[i] ) return m_alvol[i];
94  }
96 }

◆ alignVolName()

std::string CaloSubdetNames::alignVolName ( CaloSubdetNames::ALIGNVOL  alvol)

Matching between names and enum.

Definition at line 82 of file CaloSubdetNames.cxx.

83 {
84 
85  return m_reconame[ (unsigned int) alvol];
86 }

◆ match_names()

void CaloSubdetNames::match_names ( )
private

match names and enum

Definition at line 23 of file CaloSubdetNames.cxx.

24 {
25  int alignsize = (int) CaloSubdetNames::UNKNOWN;
26  m_reconame.resize( alignsize, "unknown" );
27  m_alvol.resize( alignsize, CaloSubdetNames::UNKNOWN);
28 
30  m_reconame [ (int)CaloSubdetNames::LARCRYO_B ] = "LARCRYO_B";
32  m_reconame [ (int)CaloSubdetNames::LARCRYO_EC_POS ] = "LARCRYO_EC_POS";
34  m_reconame [ (int)CaloSubdetNames::LARCRYO_EC_NEG ] = "LARCRYO_EC_NEG";
35 
37  m_reconame [ (int)CaloSubdetNames::PRESAMPLER_B_POS ] = "PRESAMPLER_B_POS";
39  m_reconame [ (int)CaloSubdetNames::PRESAMPLER_B_NEG ] = "PRESAMPLER_B_NEG";
41  m_reconame [ (int)CaloSubdetNames::EMB_POS ] = "EMB_POS";
43  m_reconame [ (int)CaloSubdetNames::EMB_NEG ] = "EMB_NEG";
44 
46  m_reconame [ (int)CaloSubdetNames::PRESAMPLER_EC_POS ] = "PRESAMPLER_EC_POS";
48  m_reconame [ (int)CaloSubdetNames::PRESAMPLER_EC_NEG ] = "PRESAMPLER_EC_NEG";
50  m_reconame [ (int)CaloSubdetNames::EMEC_POS ] = "EMEC_POS";
52  m_reconame [ (int)CaloSubdetNames::EMEC_NEG ] = "EMEC_NEG";
53 
55  m_reconame [ (int)CaloSubdetNames::HEC1_POS ] = "HEC1_POS";
57  m_reconame [ (int)CaloSubdetNames::HEC1_NEG ] = "HEC1_NEG";
59  m_reconame [ (int)CaloSubdetNames::HEC2_POS ] = "HEC2_POS";
61  m_reconame [ (int)CaloSubdetNames::HEC2_NEG ] = "HEC2_NEG";
62 
64  m_reconame [ (int)CaloSubdetNames::FCAL1_POS ] = "FCAL1_POS";
66  m_reconame [ (int)CaloSubdetNames::FCAL1_NEG ] = "FCAL1_NEG";
68  m_reconame [ (int)CaloSubdetNames::FCAL2_POS ] = "FCAL2_POS";
70  m_reconame [ (int)CaloSubdetNames::FCAL2_NEG ] = "FCAL2_NEG";
72  m_reconame [ (int)CaloSubdetNames::FCAL3_POS ] = "FCAL3_POS";
74  m_reconame [ (int)CaloSubdetNames::FCAL3_NEG ] = "FCAL3_NEG";
75 
77  m_reconame [ (int)CaloSubdetNames::SOLENOID ] = "SOLENOID";
78 
79 }

Member Data Documentation

◆ m_alvol

std::vector<CaloSubdetNames::ALIGNVOL> CaloSubdetNames::m_alvol
private

vector of ALIGNVOL enum values

Definition at line 73 of file CaloSubdetNames.h.

◆ m_reconame

std::vector<std::string> CaloSubdetNames::m_reconame
private

vector of names

Definition at line 70 of file CaloSubdetNames.h.


The documentation for this class was generated from the following files:
CaloSubdetNames::HEC2_POS
@ HEC2_POS
Definition: CaloSubdetNames.h:42
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
CaloSubdetNames::EMB_POS
@ EMB_POS
Definition: CaloSubdetNames.h:38
CaloSubdetNames::PRESAMPLER_B_NEG
@ PRESAMPLER_B_NEG
Definition: CaloSubdetNames.h:37
CaloSubdetNames::FCAL2_POS
@ FCAL2_POS
Definition: CaloSubdetNames.h:44
CaloSubdetNames::HEC1_NEG
@ HEC1_NEG
Definition: CaloSubdetNames.h:41
CaloSubdetNames::FCAL1_POS
@ FCAL1_POS
Definition: CaloSubdetNames.h:43
CaloSubdetNames::EMEC_POS
@ EMEC_POS
Definition: CaloSubdetNames.h:40
CaloSubdetNames::HEC2_NEG
@ HEC2_NEG
Definition: CaloSubdetNames.h:42
CaloSubdetNames::FCAL3_POS
@ FCAL3_POS
Definition: CaloSubdetNames.h:45
CaloSubdetNames::PRESAMPLER_EC_POS
@ PRESAMPLER_EC_POS
Definition: CaloSubdetNames.h:39
CaloSubdetNames::UNKNOWN
@ UNKNOWN
Definition: CaloSubdetNames.h:46
CaloSubdetNames::PRESAMPLER_B_POS
@ PRESAMPLER_B_POS
Definition: CaloSubdetNames.h:37
CaloSubdetNames::EMEC_NEG
@ EMEC_NEG
Definition: CaloSubdetNames.h:40
CaloSubdetNames::LARCRYO_B
@ LARCRYO_B
Definition: CaloSubdetNames.h:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
CaloSubdetNames::LARCRYO_EC_POS
@ LARCRYO_EC_POS
Definition: CaloSubdetNames.h:36
CaloSubdetNames::FCAL3_NEG
@ FCAL3_NEG
Definition: CaloSubdetNames.h:45
CaloSubdetNames::m_alvol
std::vector< CaloSubdetNames::ALIGNVOL > m_alvol
vector of ALIGNVOL enum values
Definition: CaloSubdetNames.h:73
CaloSubdetNames::HEC1_POS
@ HEC1_POS
Definition: CaloSubdetNames.h:41
CaloSubdetNames::match_names
void match_names()
match names and enum
Definition: CaloSubdetNames.cxx:23
CaloSubdetNames::PRESAMPLER_EC_NEG
@ PRESAMPLER_EC_NEG
Definition: CaloSubdetNames.h:39
CaloSubdetNames::EMB_NEG
@ EMB_NEG
Definition: CaloSubdetNames.h:38
CaloSubdetNames::m_reconame
std::vector< std::string > m_reconame
vector of names
Definition: CaloSubdetNames.h:70
CaloSubdetNames::FCAL2_NEG
@ FCAL2_NEG
Definition: CaloSubdetNames.h:44
CaloSubdetNames::SOLENOID
@ SOLENOID
Definition: CaloSubdetNames.h:46
CaloSubdetNames::FCAL1_NEG
@ FCAL1_NEG
Definition: CaloSubdetNames.h:43
CaloSubdetNames::LARCRYO_EC_NEG
@ LARCRYO_EC_NEG
Definition: CaloSubdetNames.h:36