ATLAS Offline Software
JEMTobRoI_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: JEMTobRoI_v1.cxx 685662 2015-07-27 10:30:15Z amazurov $
6 
7 // EDM includes(s):
9 
10 // Local include(s):
12 
13 namespace xAOD{
14 
16  SG::AuxElement()
17  {
18  }
19 
21 
22 
23  void JEMTobRoI_v1::initialize(const int crate, const int jem, const int frame,
24  const int location, const int energyLarge, const int energySmall ) {
25  uint32_t roiWord = s_wordIdVal << s_wordIdBit;
26  roiWord |= (crate & s_crateMask) << s_crateBit;
27  roiWord |= (jem & s_jemMask) << s_jemBit;
28  roiWord |= (frame & s_frameMask) << s_frameBit;
29  roiWord |= (location & s_locationMask) << s_locationBit;
30  roiWord |= (energySmall & s_energySmallMask) << s_energySmallBit;
31  roiWord |= (energyLarge & s_energyLargeMask) << s_energyLargeBit;
32 
33  setRoiWord(roiWord);
34  }
35 
37  int JEMTobRoI_v1::crate() const
38  {
39  return (roiWord() >> s_crateBit) & s_crateMask;
40  }
41 
43  int JEMTobRoI_v1::jem() const
44  {
45  return (roiWord() >> s_jemBit) & s_jemMask;
46  }
47 
49  int JEMTobRoI_v1::frame() const
50  {
51  return (roiWord() >> s_frameBit) & s_frameMask;
52  }
53 
56  {
57  return (roiWord() >> s_locationBit) & s_locationMask;
58  }
59 
62  {
64  }
65 
68  {
70  }
71 
72 
73  std::ostream &operator<<(std::ostream &os, const xAOD::JEMTobRoI_v1 &el)
74  {
75  os << "xAOD::JEMTobRoI crate=" << int(el.crate())
76  << " jem=" << el.jem()
77  << " frame=" << el.frame()
78  << " location=" << el.location()
79  << " energyLarge=" << el.energyLarge()
80  << " energySmall=" << el.energySmall();
81  return os;
82  }
83 
84 
85 } // namespace xAOD
86 
xAOD::JEMTobRoI_v1::energyLarge
int energyLarge() const
Return energy large window size.
Definition: JEMTobRoI_v1.cxx:61
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::int
setRawEt setRawPhi int
Definition: TrigCaloCluster_v1.cxx:33
xAOD::JEMTobRoI_v1::s_locationMask
static const int s_locationMask
Definition: JEMTobRoI_v1.h:70
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
initialize
void initialize()
Definition: run_EoverP.cxx:894
xAOD::JEMTobRoI_v1::s_energySmallBit
static const int s_energySmallBit
Definition: JEMTobRoI_v1.h:63
xAOD::JEMTobRoI_v1::jem
int jem() const
Return JEM number (0-15)
Definition: JEMTobRoI_v1.cxx:43
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::JEMTobRoI_v1::s_jemBit
static const int s_jemBit
Definition: JEMTobRoI_v1.h:60
xAOD::JEMTobRoI_v1::energySmall
int energySmall() const
Return energy small window size.
Definition: JEMTobRoI_v1.cxx:67
xAOD::JEMTobRoI_v1::s_locationBit
static const int s_locationBit
Definition: JEMTobRoI_v1.h:62
xAOD::JEMTobRoI_v1::frame
int frame() const
Return RoI frame number (0-7)
Definition: JEMTobRoI_v1.cxx:49
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
xAOD::JEMTobRoI_v1::s_energyLargeMask
static const int s_energyLargeMask
Definition: JEMTobRoI_v1.h:72
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
xAOD::JEMTobRoI_v1::s_crateMask
static const int s_crateMask
Definition: JEMTobRoI_v1.h:67
xAOD::JEMTobRoI_v1::s_energySmallMask
static const int s_energySmallMask
Definition: JEMTobRoI_v1.h:71
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
xAOD::JEMTobRoI_v1::location
int location() const
Return location (RoI local coords) (0-3)
Definition: JEMTobRoI_v1.cxx:55
xAOD::JEMTobRoI_v1::s_crateBit
static const int s_crateBit
Definition: JEMTobRoI_v1.h:59
xAOD::JEMTobRoI_v1::roiWord
uint32_t roiWord() const
get roiWord
xAOD::JEMTobRoI_v1
Description of JEMTobRoI_v1.
Definition: JEMTobRoI_v1.h:25
xAOD::JEMTobRoI_v1::s_frameMask
static const int s_frameMask
Definition: JEMTobRoI_v1.h:69
xAOD::JEMTobRoI_v1::JEMTobRoI_v1
JEMTobRoI_v1()
Default constructor.
Definition: JEMTobRoI_v1.cxx:15
JEMTobRoI_v1.h
xAOD::JEMTobRoI_v1::s_energyLargeBit
static const int s_energyLargeBit
Definition: JEMTobRoI_v1.h:64
xAOD::JEMTobRoI_v1::crate
int crate() const
Return crate number (0-1)
Definition: JEMTobRoI_v1.cxx:37
xAOD::operator<<
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
Definition: RDataSource.cxx:53
xAOD::JEMTobRoI_v1::s_jemMask
static const int s_jemMask
Definition: JEMTobRoI_v1.h:68
xAOD::JEMTobRoI_v1::s_frameBit
static const int s_frameBit
Definition: JEMTobRoI_v1.h:61