ATLAS Offline Software
Loading...
Searching...
No Matches
CPMTobRoI_v1.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: CPMTobRoI_v1.h 687286 2015-08-04 11:20:22Z amazurov $
8#ifndef XAODTRIGL1CALO_VERSIONS_CPMTOBROI_V1_H
9#define XAODTRIGL1CALO_VERSIONS_CPMTOBROI_V1_H
10
11// EDM include(s):
12#include "AthLinks/ElementLink.h"
14
15namespace xAOD{
16
23
25 public:
29 virtual ~CPMTobRoI_v1(){}
30 virtual void initialize(int crate, int cpm, int chip, int location,
31 int type, int energy, int isol);
36
38 int crate() const;
40 int cpm() const;
42 int chip() const;
44 int location() const;
46 int type() const;
48 int energy() const;
50 int isolation() const;
51
52 private:
53
55 static const int s_wordIdVal = 0xa;
56 // Data locations
57 static const int s_wordIdBit = 28;
58 static const int s_crateBit = 26;
59 static const int s_cpmBit = 22;
60 static const int s_chipBit = 19;
61 static const int s_locationBit = 16;
62 static const int s_isolBit = 8;
63 static const int s_energyBit = 0;
64 // Data masks
65 static const int s_wordIdMask = 0xf;
66 static const int s_crateMask = 0x3;
67 static const int s_cpmMask = 0xf;
68 static const int s_chipMask = 0x7;
69 static const int s_locationMask = 0x7;
70 static const int s_isolMask = 0x1f;
71 static const int s_energyMask = 0xff;
72 static const int s_typeMask = 0x1;
73
74 }; // class CPMTobRoI_v1
75} // namespace xAOD
76#endif
77
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
uint32_t roiWord() const
get roiWord
virtual ~CPMTobRoI_v1()
Default desturctor.
static const int s_isolMask
static const int s_energyBit
static const int s_typeMask
int crate() const
Return crate number (0-1)
static const int s_chipMask
int cpm() const
Return CPM number (1-14)
static const int s_cpmMask
static const int s_chipBit
static const int s_energyMask
static const int s_cpmBit
static const int s_crateBit
int location() const
Return location (RoI local coords) (0-7)
static const int s_wordIdMask
CPMTobRoI_v1()
Default constructor.
int energy() const
Return energy.
static const int s_wordIdBit
static const int s_locationBit
static const int s_wordIdVal
RoI word ID.
int chip() const
Return CP chip number (0-7)
static const int s_isolBit
static const int s_crateMask
void setRoiWord(uint32_t)
set roiWord
int isolation() const
Return isolation.
static const int s_locationMask
int type() const
Return type em/tau (0/1)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()