CMS 3D CMS Logo

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 14 of file L1GctInternJetData.h.

Member Enumeration Documentation

◆ L1GctInternJetType

Constructor & Destructor Documentation

◆ L1GctInternJetData() [1/2]

L1GctInternJetData::L1GctInternJetData ( )

default constructor (for vector initialisation etc.)

Definition at line 3 of file L1GctInternJetData.cc.

◆ L1GctInternJetData() [2/2]

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 6 of file L1GctInternJetData.cc.

References et(), eta(), oflow(), phi(), rank(), setData(), sgnEta(), and tauVeto().

19 }
uint16_t eta() const
get eta
uint16_t capBlock() const
get capture block
uint16_t sgnEta() const
get sign of eta
L1CaloRegionDetId regionId_
uint16_t tauVeto() const
get tau veto
uint16_t capIndex() const
get index within capture block
uint16_t rank() const
get rank bits
int16_t bx() const
get BX number
uint16_t phi() const
get phi
L1GctInternJetType type_
uint16_t oflow() const
get oflow
uint16_t et() const
get et
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::~L1GctInternJetData ( )
virtual

destructor (virtual to prevent compiler warnings)

Definition at line 97 of file L1GctInternJetData.cc.

97 {}

Member Function Documentation

◆ bx()

int16_t L1GctInternJetData::bx ( ) const
inline

get BX number

Definition at line 84 of file L1GctInternJetData.h.

References bx_.

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

84 { return bx_; }

◆ capBlock()

uint16_t L1GctInternJetData::capBlock ( ) const
inline

get capture block

Definition at line 78 of file L1GctInternJetData.h.

References capBlock_.

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

78 { return capBlock_; }

◆ capIndex()

uint16_t L1GctInternJetData::capIndex ( ) const
inline

get index within capture block

Definition at line 81 of file L1GctInternJetData.h.

References capIndex_.

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

81 { return capIndex_; }

◆ empty()

bool L1GctInternJetData::empty ( ) const
inline

was an object really found?

Definition at line 75 of file L1GctInternJetData.h.

References data_.

75 { return (data_ == 0); }

◆ et()

uint16_t L1GctInternJetData::et ( ) const
inline

get et

Definition at line 102 of file L1GctInternJetData.h.

References data_.

Referenced by fromEmulator(), L1GctInternJetData(), and setData().

102 { return (data_ >> 16) & 0xfff; }

◆ eta()

uint16_t L1GctInternJetData::eta ( ) const
inline

◆ fromEmulator()

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 24 of file L1GctInternJetData.cc.

References bx(), ztail::d, emulator, et(), eta(), oflow(), phi(), rank(), and tauVeto().

Referenced by L1GctJetFinderBase::getInternalJets().

25  {
27 
28  d.setType(emulator);
29  d.setRegionId(rgn);
30  d.setData(0, (oflow ? 1 : 0), et, eta, phi, (tauVeto ? 1 : 0), rank);
31  d.setBx(bx);
32 
33  return d;
34 }
L1 GCT internal jet candidate.
uint16_t eta() const
get eta
uint16_t tauVeto() const
get tau veto
uint16_t rank() const
get rank bits
int16_t bx() const
get BX number
d
Definition: ztail.py:151
uint16_t phi() const
get phi
uint16_t oflow() const
get oflow
uint16_t et() const
get et

◆ fromGctTrigObject()

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 82 of file L1GctInternJetData.cc.

References bx(), capBlock(), capIndex(), ztail::d, data, gct_trig_object, and testProducerWithPsetDescEmpty_cfi::x1.

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

83  {
85 
86  d.setRegionId(rgn);
87  d.setCapBlock(capBlock);
88  d.setCapIndex(capIndex);
89  d.setBx(bx);
90  d.setType(gct_trig_object);
91  d.setData((data >> 10) & 0x1, 0, 0, (data >> 6) & 0xf, (data >> 11) & 0x1f, 0, data & 0x3f);
92 
93  return d;
94 }
L1 GCT internal jet candidate.
uint16_t capBlock() const
get capture block
uint16_t capIndex() const
get index within capture block
int16_t bx() const
get BX number
d
Definition: ztail.py:151
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ fromJetCluster()

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 37 of file L1GctInternJetData.cc.

References bx(), capBlock(), capIndex(), ztail::d, data, and jet_cluster.

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

38  {
40 
41  d.setRegionId(rgn);
42  d.setCapBlock(capBlock);
43  d.setCapIndex(capIndex);
44  d.setBx(bx);
45  d.setType(jet_cluster);
46  d.setRawData(data & 0x1fffffff);
47 
48  return d;
49 }
L1 GCT internal jet candidate.
uint16_t capBlock() const
get capture block
uint16_t capIndex() const
get index within capture block
int16_t bx() const
get BX number
d
Definition: ztail.py:151
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ fromJetClusterMinimal()

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 67 of file L1GctInternJetData.cc.

References bx(), capBlock(), capIndex(), ztail::d, data, jet_cluster_minimal, and testProducerWithPsetDescEmpty_cfi::x1.

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

68  {
70 
71  d.setRegionId(rgn);
72  d.setCapBlock(capBlock);
73  d.setCapIndex(capIndex);
74  d.setBx(bx);
75  d.setType(jet_cluster_minimal);
76  d.setData(0, (data >> 10) & 0x1, 0, (data >> 6) & 0xf, (data >> 12) & 0x1, (data >> 11) & 0x1, data & 0x3f);
77 
78  return d;
79 }
L1 GCT internal jet candidate.
uint16_t capBlock() const
get capture block
uint16_t capIndex() const
get index within capture block
int16_t bx() const
get BX number
d
Definition: ztail.py:151
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ fromJetPreCluster()

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 52 of file L1GctInternJetData.cc.

References bx(), capBlock(), capIndex(), ztail::d, data, jet_precluster, and testProducerWithPsetDescEmpty_cfi::x1.

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

53  {
55 
56  d.setRegionId(rgn);
57  d.setCapBlock(capBlock);
58  d.setCapIndex(capIndex);
59  d.setBx(bx);
60  d.setType(jet_precluster);
61  d.setData(0, (data >> 10) & 0x1, data & 0x3ff, (data >> 12) & 0xf, 0, (data >> 11) & 0x1, 0);
62 
63  return d;
64 }
L1 GCT internal jet candidate.
uint16_t capBlock() const
get capture block
uint16_t capIndex() const
get index within capture block
int16_t bx() const
get BX number
d
Definition: ztail.py:151
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ oflow()

uint16_t L1GctInternJetData::oflow ( ) const
inline

get oflow

Definition at line 105 of file L1GctInternJetData.h.

References data_.

Referenced by fromEmulator(), L1GctInternJetData(), and setData().

105 { return (data_ >> 28) & 0x1; }

◆ operator!=()

bool L1GctInternJetData::operator!= ( const L1GctInternJetData c) const
inline

inequality operator

Definition at line 139 of file L1GctInternJetData.h.

References HltBtagPostValidation_cff::c.

139 { return !(*this == c); }

◆ operator==()

bool L1GctInternJetData::operator== ( const L1GctInternJetData c) const

equality operator

operators

equality operator

Definition at line 115 of file L1GctInternJetData.cc.

References bx_, HltBtagPostValidation_cff::c, data_, regionId_, and type_.

115  {
116  return (type_ == c.type() && data_ == c.raw() && regionId_ == c.regionId() && bx_ == c.bx());
117 }
L1CaloRegionDetId regionId_
L1GctInternJetType type_

◆ phi()

uint16_t L1GctInternJetData::phi ( ) const
inline

◆ rank()

uint16_t L1GctInternJetData::rank ( ) const
inline

get rank bits

Definition at line 90 of file L1GctInternJetData.h.

References data_.

Referenced by fromEmulator(), L1GctInternJetData(), and setData().

90 { return data_ & 0x3f; }

◆ raw()

uint32_t L1GctInternJetData::raw ( ) const
inline

get the raw data

Definition at line 87 of file L1GctInternJetData.h.

References data_.

87 { return data_; }

◆ regionId()

L1CaloRegionDetId L1GctInternJetData::regionId ( ) const
inline

region associated with the candidate

Definition at line 72 of file L1GctInternJetData.h.

References regionId_.

72 { return regionId_; }
L1CaloRegionDetId regionId_

◆ setBx()

void L1GctInternJetData::setBx ( uint16_t  bx)
inline

set bx

Definition at line 122 of file L1GctInternJetData.h.

References bx(), and bx_.

122 { bx_ = bx; }
int16_t bx() const
get BX number

◆ setCapBlock()

void L1GctInternJetData::setCapBlock ( uint16_t  capBlock)
inline

set cap block

Definition at line 116 of file L1GctInternJetData.h.

References capBlock(), and capBlock_.

116 { capBlock_ = capBlock; }
uint16_t capBlock() const
get capture block

◆ setCapIndex()

void L1GctInternJetData::setCapIndex ( uint16_t  capIndex)
inline

set cap index

Definition at line 119 of file L1GctInternJetData.h.

References capIndex(), and capIndex_.

119 { capIndex_ = capIndex; }
uint16_t capIndex() const
get index within capture block

◆ setData()

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 100 of file L1GctInternJetData.cc.

References data_, et(), eta(), oflow(), phi(), rank(), sgnEta(), and tauVeto().

Referenced by L1GctInternJetData().

101  {
102  data_ = 0;
103  data_ = rank & 0x3f;
104  data_ |= (tauVeto & 0x1) << 6;
105  data_ |= (phi & 0x1f) << 7;
106  data_ |= (eta & 0xf) << 12;
107  data_ |= (et & 0xfff) << 16;
108  data_ |= (oflow & 0x1) << 28;
109  data_ |= (sgnEta & 0x1) << 29;
110 }
uint16_t eta() const
get eta
uint16_t sgnEta() const
get sign of eta
uint16_t tauVeto() const
get tau veto
uint16_t rank() const
get rank bits
uint16_t phi() const
get phi
uint16_t oflow() const
get oflow
uint16_t et() const
get et

◆ setRawData()

void L1GctInternJetData::setRawData ( uint32_t  data)
inline

set data

Definition at line 128 of file L1GctInternJetData.h.

References data, and data_.

128 { data_ = data; }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ setRegionId()

void L1GctInternJetData::setRegionId ( L1CaloRegionDetId  rgn)
inline

set region

Definition at line 113 of file L1GctInternJetData.h.

References regionId_.

113 { regionId_ = rgn; }
L1CaloRegionDetId regionId_

◆ setType()

void L1GctInternJetData::setType ( L1GctInternJetType  type)
inline

set type

Definition at line 125 of file L1GctInternJetData.h.

References type(), and type_.

125 { type_ = type; }
L1GctInternJetData::L1GctInternJetType type() const
&#39;type&#39; of object
L1GctInternJetType type_

◆ sgnEta()

uint16_t L1GctInternJetData::sgnEta ( ) const
inline

get sign of eta

Definition at line 108 of file L1GctInternJetData.h.

References data_.

Referenced by L1GctInternJetData(), and setData().

108 { return (data_ >> 29) & 0x1; }

◆ tauVeto()

uint16_t L1GctInternJetData::tauVeto ( ) const
inline

get tau veto

Definition at line 93 of file L1GctInternJetData.h.

References data_.

Referenced by fromEmulator(), L1GctInternJetData(), and setData().

93 { return (data_ >> 6) & 0x1; }

◆ type()

L1GctInternJetData::L1GctInternJetType L1GctInternJetData::type ( ) const
inline

'type' of object

Definition at line 69 of file L1GctInternJetData.h.

References type_.

Referenced by setType().

69 { return type_; }
L1GctInternJetType type_

Member Data Documentation

◆ bx_

int16_t L1GctInternJetData::bx_
private

Definition at line 148 of file L1GctInternJetData.h.

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

◆ capBlock_

uint16_t L1GctInternJetData::capBlock_
private

Definition at line 146 of file L1GctInternJetData.h.

Referenced by capBlock(), and setCapBlock().

◆ capIndex_

uint16_t L1GctInternJetData::capIndex_
private

Definition at line 147 of file L1GctInternJetData.h.

Referenced by capIndex(), and setCapIndex().

◆ data_

uint32_t L1GctInternJetData::data_
private

◆ regionId_

L1CaloRegionDetId L1GctInternJetData::regionId_
private

Definition at line 143 of file L1GctInternJetData.h.

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

◆ type_

L1GctInternJetType L1GctInternJetData::type_
private