CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
L1GctInternJetData Class Reference

L1 GCT internal jet candidate. More...

#include <L1GctInternJetData.h>

Public Types

enum  L1GctInternJetType {
  null, emulator, jet_cluster, jet_cluster_minimal,
  jet_precluster, gct_trig_object
}
 

Public Member Functions

int16_t bx () const
 get BX number More...
 
uint16_t capBlock () const
 get capture block More...
 
uint16_t capIndex () const
 get index within capture block More...
 
bool empty () const
 was an object really found? More...
 
uint16_t et () const
 get et More...
 
uint16_t eta () const
 get eta More...
 
 L1GctInternJetData ()
 default constructor (for vector initialisation etc.) More...
 
 L1GctInternJetData (L1CaloRegionDetId rgn, uint16_t capBlock, uint16_t capIndex, int16_t bx, uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
 construct from individual quantities More...
 
uint16_t oflow () const
 get oflow More...
 
bool operator!= (const L1GctInternJetData &c) const
 inequality operator More...
 
bool operator== (const L1GctInternJetData &c) const
 equality operator More...
 
uint16_t phi () const
 get phi More...
 
uint16_t rank () const
 get rank bits More...
 
uint32_t raw () const
 get the raw data More...
 
L1CaloRegionDetId regionId () const
 region associated with the candidate More...
 
void setBx (uint16_t bx)
 set bx More...
 
void setCapBlock (uint16_t capBlock)
 set cap block More...
 
void setCapIndex (uint16_t capIndex)
 set cap index More...
 
void setData (uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
 construct data word from components More...
 
void setRawData (uint32_t data)
 set data More...
 
void setRegionId (L1CaloRegionDetId rgn)
 set region More...
 
void setType (L1GctInternJetType type)
 set type More...
 
uint16_t sgnEta () const
 get sign of eta More...
 
uint16_t tauVeto () const
 get tau veto More...
 
L1GctInternJetData::L1GctInternJetType type () const
 'type' of object More...
 
virtual ~L1GctInternJetData ()
 destructor (virtual to prevent compiler warnings) More...
 

Static Public Member Functions

static L1GctInternJetData fromEmulator (L1CaloRegionDetId rgn, int16_t bx, uint16_t et, bool overFlow, bool tauVeto, uint8_t eta, uint8_t phi, uint16_t rank)
 
static L1GctInternJetData fromGctTrigObject (L1CaloRegionDetId rgn, uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
 construct from "gct_trig_object" More...
 
static L1GctInternJetData fromJetCluster (L1CaloRegionDetId rgn, uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
 construct from "jet_cluster" More...
 
static L1GctInternJetData fromJetClusterMinimal (L1CaloRegionDetId rgn, uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
 construct from "jet_cluster_minimal" More...
 
static L1GctInternJetData fromJetPreCluster (L1CaloRegionDetId rgn, uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
 construct from "jet_precluster" More...
 

Private Attributes

int16_t bx_
 
uint16_t capBlock_
 
uint16_t capIndex_
 
uint32_t data_
 
L1CaloRegionDetId regionId_
 
L1GctInternJetType type_
 

Detailed Description

L1 GCT internal jet candidate.

Author
Jim Brooke
Date
June 2006

Definition at line 15 of file L1GctInternJetData.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

L1GctInternJetData::L1GctInternJetData ( )

default constructor (for vector initialisation etc.)

Definition at line 3 of file L1GctInternJetData.cc.

3  :
4  capBlock_(0),
5  capIndex_(0),
6  bx_(0),
7  type_(null),
8  data_(0)
9 {
10 
11 }
L1GctInternJetType type_
L1GctInternJetData::L1GctInternJetData ( L1CaloRegionDetId  rgn,
uint16_t  capBlock,
uint16_t  capIndex,
int16_t  bx,
uint8_t  sgnEta,
uint8_t  oflow,
uint16_t  et,
uint8_t  eta,
uint8_t  phi,
uint8_t  tauVeto,
uint8_t  rank 
)

construct from individual quantities

Definition at line 14 of file L1GctInternJetData.cc.

References setData().

24  :
25  regionId_(rgn),
28  bx_(bx),
29  type_(null),
30  data_(0)
31 {
33 }
uint16_t rank() const
get rank bits
uint16_t tauVeto() const
get tau veto
uint16_t capIndex() const
get index within capture block
uint16_t eta() const
get eta
uint16_t oflow() const
get oflow
L1CaloRegionDetId regionId_
L1GctInternJetType type_
int16_t bx() const
get BX number
uint16_t et() const
get et
uint16_t phi() const
get phi
uint16_t sgnEta() const
get sign of eta
uint16_t capBlock() const
get capture block
void setData(uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
construct data word from components
L1GctInternJetData::~L1GctInternJetData ( )
virtual

destructor (virtual to prevent compiler warnings)

Definition at line 129 of file L1GctInternJetData.cc.

129  {
130 
131 }

Member Function Documentation

int16_t L1GctInternJetData::bx ( ) const
inline

get BX number

Definition at line 102 of file L1GctInternJetData.h.

References bx_.

Referenced by operator<<(), operator==(), and setBx().

102 { return bx_; }
uint16_t L1GctInternJetData::capBlock ( ) const
inline

get capture block

Definition at line 96 of file L1GctInternJetData.h.

References capBlock_.

Referenced by operator<<(), and setCapBlock().

96 { return capBlock_; }
uint16_t L1GctInternJetData::capIndex ( ) const
inline

get index within capture block

Definition at line 99 of file L1GctInternJetData.h.

References capIndex_.

Referenced by operator<<(), and setCapIndex().

99 { return capIndex_; }
bool L1GctInternJetData::empty ( ) const
inline

was an object really found?

Definition at line 93 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

93 { return (data_ == 0); }
uint16_t L1GctInternJetData::et ( ) const
inline

get et

Definition at line 120 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

120 { return (data_>>16) & 0xfff; }
uint16_t L1GctInternJetData::eta ( ) const
inline

get eta

Definition at line 117 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

117 { return (data_>>12) & 0xf; }
L1GctInternJetData L1GctInternJetData::fromEmulator ( L1CaloRegionDetId  rgn,
int16_t  bx,
uint16_t  et,
bool  overFlow,
bool  tauVeto,
uint8_t  eta,
uint8_t  phi,
uint16_t  rank 
)
static

Definition at line 38 of file L1GctInternJetData.cc.

References emulator, setBx(), setData(), setRegionId(), and setType().

Referenced by L1GctJetFinderBase::getInternalJets().

45  {
47 
48  d.setType(emulator);
49  d.setRegionId(rgn);
50  d.setData(0, (oflow ? 1 : 0), et, eta, phi, (tauVeto ? 1 : 0), rank);
51  d.setBx(bx);
52 
53  return d;
54 }
uint16_t rank() const
get rank bits
void setType(L1GctInternJetType type)
set type
uint16_t tauVeto() const
get tau veto
L1 GCT internal jet candidate.
uint16_t eta() const
get eta
uint16_t oflow() const
get oflow
void setRegionId(L1CaloRegionDetId rgn)
set region
int16_t bx() const
get BX number
void setBx(uint16_t bx)
set bx
uint16_t et() const
get et
uint16_t phi() const
get phi
void setData(uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
construct data word from components
L1GctInternJetData L1GctInternJetData::fromGctTrigObject ( L1CaloRegionDetId  rgn,
uint16_t  capBlock,
uint16_t  capIndex,
int16_t  bx,
uint32_t  data 
)
static

construct from "gct_trig_object"

Definition at line 111 of file L1GctInternJetData.cc.

References gct_trig_object, setBx(), setCapBlock(), setCapIndex(), setData(), setRegionId(), and setType().

Referenced by GctFormatTranslateV35::blockToGctTrigObjects(), and GctFormatTranslateV38::blockToGctTrigObjects().

115  {
117 
118  d.setRegionId(rgn);
121  d.setBx(bx);
123  d.setData( (data>>10)&0x1, 0, 0, (data>>6)&0xf, (data>>11)&0x1f, 0, data&0x3f );
124 
125  return d;
126 }
void setCapBlock(uint16_t capBlock)
set cap block
void setType(L1GctInternJetType type)
set type
L1 GCT internal jet candidate.
uint16_t capIndex() const
get index within capture block
void setCapIndex(uint16_t capIndex)
set cap index
void setRegionId(L1CaloRegionDetId rgn)
set region
int16_t bx() const
get BX number
void setBx(uint16_t bx)
set bx
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t capBlock() const
get capture block
void setData(uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
construct data word from components
L1GctInternJetData L1GctInternJetData::fromJetCluster ( L1CaloRegionDetId  rgn,
uint16_t  capBlock,
uint16_t  capIndex,
int16_t  bx,
uint32_t  data 
)
static

construct from "jet_cluster"

Definition at line 57 of file L1GctInternJetData.cc.

References jet_cluster, setBx(), setCapBlock(), setCapIndex(), setRawData(), setRegionId(), and setType().

Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().

61  {
63 
64  d.setRegionId(rgn);
67  d.setBx(bx);
69  d.setRawData(data&0x1fffffff);
70 
71  return d;
72 }
void setCapBlock(uint16_t capBlock)
set cap block
void setType(L1GctInternJetType type)
set type
L1 GCT internal jet candidate.
void setRawData(uint32_t data)
set data
uint16_t capIndex() const
get index within capture block
void setCapIndex(uint16_t capIndex)
set cap index
void setRegionId(L1CaloRegionDetId rgn)
set region
int16_t bx() const
get BX number
void setBx(uint16_t bx)
set bx
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t capBlock() const
get capture block
L1GctInternJetData L1GctInternJetData::fromJetClusterMinimal ( L1CaloRegionDetId  rgn,
uint16_t  capBlock,
uint16_t  capIndex,
int16_t  bx,
uint32_t  data 
)
static

construct from "jet_cluster_minimal"

Definition at line 93 of file L1GctInternJetData.cc.

References jet_cluster_minimal, setBx(), setCapBlock(), setCapIndex(), setData(), setRegionId(), and setType().

Referenced by GctFormatTranslateV35::blockToGctJetClusterMinimal(), and GctFormatTranslateV38::blockToGctJetClusterMinimal().

97  {
99 
100  d.setRegionId(rgn);
103  d.setBx(bx);
105  d.setData( 0, (data>>10)&0x1, 0, (data>>6)&0xf, (data>>12)&0x1, (data>>11)&0x1, data&0x3f );
106 
107  return d;
108 }
void setCapBlock(uint16_t capBlock)
set cap block
void setType(L1GctInternJetType type)
set type
L1 GCT internal jet candidate.
uint16_t capIndex() const
get index within capture block
void setCapIndex(uint16_t capIndex)
set cap index
void setRegionId(L1CaloRegionDetId rgn)
set region
int16_t bx() const
get BX number
void setBx(uint16_t bx)
set bx
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t capBlock() const
get capture block
void setData(uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
construct data word from components
L1GctInternJetData L1GctInternJetData::fromJetPreCluster ( L1CaloRegionDetId  rgn,
uint16_t  capBlock,
uint16_t  capIndex,
int16_t  bx,
uint32_t  data 
)
static

construct from "jet_precluster"

Definition at line 75 of file L1GctInternJetData.cc.

References jet_precluster, setBx(), setCapBlock(), setCapIndex(), setData(), setRegionId(), and setType().

Referenced by GctFormatTranslateV35::blockToGctJetPreCluster(), and GctFormatTranslateV38::blockToGctJetPreCluster().

79  {
81 
82  d.setRegionId(rgn);
85  d.setBx(bx);
87  d.setData( 0, (data>>10)&0x1, data&0x3ff, (data>>12)&0xf, 0, (data>>11)&0x1, 0 );
88 
89  return d;
90 }
void setCapBlock(uint16_t capBlock)
set cap block
void setType(L1GctInternJetType type)
set type
L1 GCT internal jet candidate.
uint16_t capIndex() const
get index within capture block
void setCapIndex(uint16_t capIndex)
set cap index
void setRegionId(L1CaloRegionDetId rgn)
set region
int16_t bx() const
get BX number
void setBx(uint16_t bx)
set bx
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t capBlock() const
get capture block
void setData(uint8_t sgnEta, uint8_t oflow, uint16_t et, uint8_t eta, uint8_t phi, uint8_t tauVeto, uint8_t rank)
construct data word from components
uint16_t L1GctInternJetData::oflow ( ) const
inline

get oflow

Definition at line 123 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

123 { return (data_>>28) & 0x1; }
bool L1GctInternJetData::operator!= ( const L1GctInternJetData c) const
inline

inequality operator

Definition at line 165 of file L1GctInternJetData.h.

References trackerHits::c.

165 { return !(*this == c); }
bool L1GctInternJetData::operator== ( const L1GctInternJetData c) const

equality operator

operators

equality operator

Definition at line 156 of file L1GctInternJetData.cc.

References bx(), bx_, data_, raw(), regionId(), regionId_, type(), and type_.

156  {
157  return (type_ == c.type() && data_ == c.raw() && regionId_ == c.regionId() && bx_ == c.bx());
158 }
L1CaloRegionDetId regionId_
L1GctInternJetType type_
int16_t bx() const
get BX number
uint32_t raw() const
get the raw data
L1CaloRegionDetId regionId() const
region associated with the candidate
L1GctInternJetData::L1GctInternJetType type() const
&#39;type&#39; of object
uint16_t L1GctInternJetData::phi ( ) const
inline

get phi

Definition at line 114 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

114 { return (data_>>7) & 0x1f; }
uint16_t L1GctInternJetData::rank ( ) const
inline

get rank bits

Definition at line 108 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

108 { return data_ & 0x3f; }
uint32_t L1GctInternJetData::raw ( ) const
inline

get the raw data

Definition at line 105 of file L1GctInternJetData.h.

References data_.

Referenced by operator==().

105 { return data_; }
L1CaloRegionDetId L1GctInternJetData::regionId ( ) const
inline

region associated with the candidate

Definition at line 90 of file L1GctInternJetData.h.

References regionId_.

Referenced by operator==().

90 { return regionId_; }
L1CaloRegionDetId regionId_
void L1GctInternJetData::setBx ( uint16_t  bx)
inline

set bx

Definition at line 141 of file L1GctInternJetData.h.

References bx(), and bx_.

Referenced by fromEmulator(), fromGctTrigObject(), fromJetCluster(), fromJetClusterMinimal(), and fromJetPreCluster().

141 { bx_ = bx; }
int16_t bx() const
get BX number
void L1GctInternJetData::setCapBlock ( uint16_t  capBlock)
inline

set cap block

Definition at line 135 of file L1GctInternJetData.h.

References capBlock(), and capBlock_.

Referenced by fromGctTrigObject(), fromJetCluster(), fromJetClusterMinimal(), and fromJetPreCluster().

135 { capBlock_ = capBlock; }
uint16_t capBlock() const
get capture block
void L1GctInternJetData::setCapIndex ( uint16_t  capIndex)
inline

set cap index

Definition at line 138 of file L1GctInternJetData.h.

References capIndex(), and capIndex_.

Referenced by fromGctTrigObject(), fromJetCluster(), fromJetClusterMinimal(), and fromJetPreCluster().

138 { capIndex_ = capIndex; }
uint16_t capIndex() const
get index within capture block
void L1GctInternJetData::setData ( uint8_t  sgnEta,
uint8_t  oflow,
uint16_t  et,
uint8_t  eta,
uint8_t  phi,
uint8_t  tauVeto,
uint8_t  rank 
)

construct data word from components

construct

Definition at line 135 of file L1GctInternJetData.cc.

References data_.

Referenced by fromEmulator(), fromGctTrigObject(), fromJetClusterMinimal(), fromJetPreCluster(), and L1GctInternJetData().

141  {
142  data_ = 0;
143  data_ = rank & 0x3f;
144  data_ |= (tauVeto & 0x1) << 6;
145  data_ |= (phi & 0x1f) << 7;
146  data_ |= (eta & 0xf) << 12;
147  data_ |= (et & 0xfff) << 16;
148  data_ |= (oflow & 0x1) << 28;
149  data_ |= (sgnEta & 0x1) << 29;
150 }
uint16_t rank() const
get rank bits
uint16_t tauVeto() const
get tau veto
uint16_t eta() const
get eta
uint16_t oflow() const
get oflow
uint16_t et() const
get et
uint16_t phi() const
get phi
uint16_t sgnEta() const
get sign of eta
void L1GctInternJetData::setRawData ( uint32_t  data)
inline

set data

Definition at line 147 of file L1GctInternJetData.h.

References data, and data_.

Referenced by fromJetCluster().

147 { data_ = data; }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void L1GctInternJetData::setRegionId ( L1CaloRegionDetId  rgn)
inline

set region

Definition at line 132 of file L1GctInternJetData.h.

References regionId_.

Referenced by fromEmulator(), fromGctTrigObject(), fromJetCluster(), fromJetClusterMinimal(), and fromJetPreCluster().

132 { regionId_ = rgn; }
L1CaloRegionDetId regionId_
void L1GctInternJetData::setType ( L1GctInternJetType  type)
inline

set type

Definition at line 144 of file L1GctInternJetData.h.

References type(), and type_.

Referenced by fromEmulator(), fromGctTrigObject(), fromJetCluster(), fromJetClusterMinimal(), and fromJetPreCluster().

144 { type_ = type; }
L1GctInternJetType type_
L1GctInternJetData::L1GctInternJetType type() const
&#39;type&#39; of object
uint16_t L1GctInternJetData::sgnEta ( ) const
inline

get sign of eta

Definition at line 126 of file L1GctInternJetData.h.

References data_.

126 { return (data_>>29) & 0x1; }
uint16_t L1GctInternJetData::tauVeto ( ) const
inline

get tau veto

Definition at line 111 of file L1GctInternJetData.h.

References data_.

Referenced by operator<<().

111 { return (data_>>6) & 0x1; }
L1GctInternJetData::L1GctInternJetType L1GctInternJetData::type ( ) const
inline

Member Data Documentation

int16_t L1GctInternJetData::bx_
private

Definition at line 176 of file L1GctInternJetData.h.

Referenced by bx(), operator==(), and setBx().

uint16_t L1GctInternJetData::capBlock_
private

Definition at line 174 of file L1GctInternJetData.h.

Referenced by capBlock(), and setCapBlock().

uint16_t L1GctInternJetData::capIndex_
private

Definition at line 175 of file L1GctInternJetData.h.

Referenced by capIndex(), and setCapIndex().

uint32_t L1GctInternJetData::data_
private
L1CaloRegionDetId L1GctInternJetData::regionId_
private

Definition at line 171 of file L1GctInternJetData.h.

Referenced by operator==(), regionId(), and setRegionId().

L1GctInternJetType L1GctInternJetData::type_
private