ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace xAOD{
17
24
26 public:
30 virtual ~JEMTobRoI_v1(){}
31
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
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Description of JEMTobRoI_v1.
JEMTobRoI_v1()
Default constructor.
static const int s_locationBit
static const int s_wordIdBit
static const int s_jemBit
static const int s_energySmallBit
static const int s_energyLargeBit
static const int s_jemMask
uint32_t roiWord() const
get roiWord
static const int s_energyLargeMask
int frame() const
Return RoI frame number (0-7)
void setRoiWord(uint32_t)
set roiWord
int energyLarge() const
Return energy large window size.
static const int s_crateMask
int crate() const
Return crate number (0-1)
static const int s_energySmallMask
int energySmall() const
Return energy small window size.
static const int s_frameMask
virtual ~JEMTobRoI_v1()
Default desturctor.
static const int s_frameBit
static const int s_wordIdVal
RoI word ID.
int jem() const
Return JEM number (0-15)
int location() const
Return location (RoI local coords) (0-3)
static const int s_wordIdMask
static const int s_crateBit
static const int s_locationMask
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
setEventNumber uint32_t
void initialize()