ATLAS Offline Software
CaloId.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef LArCaloId_H
11 #define LArCaloId_H
12 
13 #include "TString.h"
14 
15 class TH2;
16 class TH2D;
17 class TProfile2D;
18 
19 namespace LArSamples {
20 
21  enum CaloId {
22  FCAL_C = -5, HEC_C = -4, EMEC_INNER_C = -3, EMEC_OUTER_C = -2, EMB_C = -1,
24  EMB_A = 1, EMEC_OUTER_A = 2, EMEC_INNER_A = 3, HEC_A = 4, FCAL_A = 5,
25  EMEC_C = -10, EMEC_A = 10, EMB = 101, EMEC = 102, EMEC_OUTER = 103, EMEC_INNER = 104,
26  HEC = 105, FCAL = 106, EM = 107, PRECISION_EM = 108
27  };
28 
29  enum PartitionId {
32  };
33 
34 
35  class Id {
36 
37  public:
38 
41 
42  static CaloId caloId(const TString& str);
43  static TString str(CaloId id);
44  static CaloId summary(CaloId id);
45 
46  static PartitionId partitionId(const TString& str);
47  static TString str(PartitionId id);
48  static CaloId summary(PartitionId id);
49 
50  static TString summary_str(CaloId id) { return str(summary(id)); }
51  static PartitionId partition(CaloId id);
52  static bool matchCalo(CaloId id, CaloId idSpec);
53 
54  static short sign(CaloId id);
55  static CaloId mirror(CaloId id);
56  };
57 }
58 
59 #endif
LArSamples::HEC_C_PARTITION
@ HEC_C_PARTITION
Definition: CaloId.h:31
LArSamples::HEC
@ HEC
Definition: CaloId.h:26
LArSamples::Id::matchCalo
static bool matchCalo(CaloId id, CaloId idSpec)
Definition: CaloId.cxx:188
LArSamples::Id::partition
static PartitionId partition(CaloId id)
Definition: CaloId.cxx:157
LArSamples::UNKNOWN_PARTITION
@ UNKNOWN_PARTITION
Definition: CaloId.h:31
LArSamples::Id::PartitionId
LArSamples::PartitionId PartitionId
Definition: CaloId.h:40
LArSamples::Id::summary
static CaloId summary(CaloId id)
Definition: CaloId.cxx:74
LArSamples::Id::str
static TString str(CaloId id)
Definition: CaloId.cxx:15
LArSamples::FCAL_C
@ FCAL_C
Definition: CaloId.h:22
LArSamples::EMEC_A_PARTITION
@ EMEC_A_PARTITION
Definition: CaloId.h:30
LArSamples::EMEC_INNER
@ EMEC_INNER
Definition: CaloId.h:25
LArSamples
Definition: AbsShape.h:24
LArSamples::Id::partitionId
static PartitionId partitionId(const TString &str)
Definition: CaloId.cxx:123
LArSamples::HEC_A
@ HEC_A
Definition: CaloId.h:24
LArSamples::EMB_A_PARTITION
@ EMB_A_PARTITION
Definition: CaloId.h:30
LArSamples::FCAL_A
@ FCAL_A
Definition: CaloId.h:24
LArSamples::Id::caloId
static CaloId caloId(const TString &str)
Definition: CaloId.cxx:45
LArSamples::PRECISION_EM
@ PRECISION_EM
Definition: CaloId.h:26
LArSamples::EMEC_OUTER_C
@ EMEC_OUTER_C
Definition: CaloId.h:22
LArSamples::EMEC
@ EMEC
Definition: CaloId.h:25
LArSamples::Id
Definition: CaloId.h:35
LArSamples::FCAL_A_PARTITION
@ FCAL_A_PARTITION
Definition: CaloId.h:31
LArSamples::EMB
@ EMB
Definition: CaloId.h:25
LArSamples::EMB_C
@ EMB_C
Definition: CaloId.h:22
LArSamples::FCAL_C_PARTITION
@ FCAL_C_PARTITION
Definition: CaloId.h:31
LArSamples::EMEC_OUTER
@ EMEC_OUTER
Definition: CaloId.h:25
LArSamples::EMEC_C_PARTITION
@ EMEC_C_PARTITION
Definition: CaloId.h:30
LArSamples::EM
@ EM
Definition: CaloId.h:26
LArSamples::PartitionId
PartitionId
Definition: CaloId.h:29
LArSamples::EMB_C_PARTITION
@ EMB_C_PARTITION
Definition: CaloId.h:30
LArSamples::Id::CaloId
LArSamples::CaloId CaloId
Definition: CaloId.h:39
LArSamples::UNKNOWN_CALO
@ UNKNOWN_CALO
Definition: CaloId.h:23
LArSamples::EMEC_OUTER_A
@ EMEC_OUTER_A
Definition: CaloId.h:24
LArSamples::Id::summary_str
static TString summary_str(CaloId id)
Definition: CaloId.h:50
LArSamples::HEC_A_PARTITION
@ HEC_A_PARTITION
Definition: CaloId.h:31
LArSamples::CaloId
CaloId
Definition: CaloId.h:21
LArSamples::FCAL
@ FCAL
Definition: CaloId.h:26
LArSamples::EMEC_A
@ EMEC_A
Definition: CaloId.h:25
LArSamples::EMEC_INNER_C
@ EMEC_INNER_C
Definition: CaloId.h:22
LArSamples::HEC_C
@ HEC_C
Definition: CaloId.h:22
LArSamples::EMB_A
@ EMB_A
Definition: CaloId.h:24
str
Definition: BTagTrackIpAccessor.cxx:11
LArSamples::EMEC_INNER_A
@ EMEC_INNER_A
Definition: CaloId.h:24
LArSamples::Id::mirror
static CaloId mirror(CaloId id)
Definition: CaloId.cxx:236
LArSamples::EMEC_C
@ EMEC_C
Definition: CaloId.h:25
LArSamples::Id::sign
static short sign(CaloId id)
Definition: CaloId.cxx:206