ATLAS Offline Software
JEMTobRoI_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: JEMTobRoI_v1.h 685662 2015-07-27 10:30:15Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_JEMTOBROI_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_JEMTOBROI_V1_H
10 
11 // EDM include(s):
12 #include "AthLinks/ElementLink.h"
14 #include <ostream>
15 
16 namespace xAOD{
17 
24 
25  class JEMTobRoI_v1 : public SG::AuxElement {
26  public:
28  JEMTobRoI_v1();
30  virtual ~JEMTobRoI_v1(){}
31 
33  uint32_t roiWord() const;
36 
38  int crate() const;
40  int jem() const;
42  int frame() const;
44  int location() const;
46  int energyLarge() const;
48  int energySmall() const;
49 
50  virtual void initialize(const int crate, const int jem, const int frame,
51  const int location, const int energyLarge, const int energySmall );
52 
53  private:
54 
56  static const int s_wordIdVal = 0;
57  // Data locations
58  static const int s_wordIdBit = 29;
59  static const int s_crateBit = 28;
60  static const int s_jemBit = 24;
61  static const int s_frameBit = 21;
62  static const int s_locationBit = 19;
63  static const int s_energySmallBit = 10;
64  static const int s_energyLargeBit = 0;
65  // Data masks
66  static const int s_wordIdMask = 0x7;
67  static const int s_crateMask = 0x1;
68  static const int s_jemMask = 0xf;
69  static const int s_frameMask = 0x7;
70  static const int s_locationMask = 0x3;
71  static const int s_energySmallMask = 0x1ff;
72  static const int s_energyLargeMask = 0x3ff;
73 
74  }; // class JEMTobRoI_v1
75 
76 
77  std::ostream &operator<<(std::ostream &os, const xAOD::JEMTobRoI_v1 &el);
78 
79 
80 } // namespace xAOD
81 #endif
82 
xAOD::JEMTobRoI_v1::energyLarge
int energyLarge() const
Return energy large window size.
Definition: JEMTobRoI_v1.cxx:61
xAOD::JEMTobRoI_v1::~JEMTobRoI_v1
virtual ~JEMTobRoI_v1()
Default desturctor.
Definition: JEMTobRoI_v1.h:30
xAOD::JEMTobRoI_v1::s_locationMask
static const int s_locationMask
Definition: JEMTobRoI_v1.h:70
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::JEMTobRoI_v1::setRoiWord
void setRoiWord(uint32_t)
set roiWord
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
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::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_wordIdMask
static const int s_wordIdMask
Definition: JEMTobRoI_v1.h:66
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
xAOD::JEMTobRoI_v1::initialize
virtual void initialize(const int crate, const int jem, const int frame, const int location, const int energyLarge, const int energySmall)
Definition: JEMTobRoI_v1.cxx:23
xAOD::JEMTobRoI_v1::s_energyLargeBit
static const int s_energyLargeBit
Definition: JEMTobRoI_v1.h:64
xAOD::JEMTobRoI_v1::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition: JEMTobRoI_v1.h:56
xAOD::JEMTobRoI_v1::crate
int crate() const
Return crate number (0-1)
Definition: JEMTobRoI_v1.cxx:37
AuxElement.h
Base class for elements of a container that can have aux data.
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
xAOD::JEMTobRoI_v1::s_wordIdBit
static const int s_wordIdBit
Definition: JEMTobRoI_v1.h:58