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

Enumerator
null 
emulator 
jet_cluster 
jet_cluster_minimal 
jet_precluster 
gct_trig_object 

Definition at line 16 of file L1GctInternJetData.h.

Constructor & Destructor Documentation

◆ L1GctInternJetData() [1/2]

L1GctInternJetData::L1GctInternJetData ( )

default constructor (for vector initialisation etc.)

Definition at line 3 of file L1GctInternJetData.cc.

3 : capBlock_(0), capIndex_(0), bx_(0), type_(null), data_(0) {}

◆ 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.

17  : regionId_(rgn), capBlock_(capBlock), capIndex_(capIndex), bx_(bx), type_(null), data_(0) {
19 }

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

◆ ~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.

84 { return bx_; }

References bx_.

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

◆ capBlock()

uint16_t L1GctInternJetData::capBlock ( ) const
inline

get capture block

Definition at line 78 of file L1GctInternJetData.h.

78 { return capBlock_; }

References capBlock_.

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

◆ capIndex()

uint16_t L1GctInternJetData::capIndex ( ) const
inline

get index within capture block

Definition at line 81 of file L1GctInternJetData.h.

81 { return capIndex_; }

References capIndex_.

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

◆ empty()

bool L1GctInternJetData::empty ( ) const
inline

was an object really found?

Definition at line 75 of file L1GctInternJetData.h.

75 { return (data_ == 0); }

References data_.

◆ et()

uint16_t L1GctInternJetData::et ( ) const
inline

get et

Definition at line 102 of file L1GctInternJetData.h.

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

References data_.

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

◆ eta()

uint16_t L1GctInternJetData::eta ( ) const
inline

get eta

Definition at line 99 of file L1GctInternJetData.h.

99 { return (data_ >> 12) & 0xf; }

References data_.

Referenced by Particle.Particle::__str__(), fromEmulator(), Jet.Jet::jetID(), L1GctInternJetData(), Jet.Jet::puJetId(), and setData().

◆ 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.

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 }

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

Referenced by L1GctJetFinderBase::getInternalJets().

◆ 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.

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 }

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

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

◆ 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.

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 }

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

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

◆ 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.

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 }

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

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

◆ 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.

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 }

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

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

◆ oflow()

uint16_t L1GctInternJetData::oflow ( ) const
inline

get oflow

Definition at line 105 of file L1GctInternJetData.h.

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

References data_.

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

◆ operator!=()

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

inequality operator

Definition at line 139 of file L1GctInternJetData.h.

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

References c.

◆ operator==()

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

equality operator

operators

equality operator

Definition at line 115 of file L1GctInternJetData.cc.

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

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

◆ phi()

uint16_t L1GctInternJetData::phi ( ) const
inline

get phi

Definition at line 96 of file L1GctInternJetData.h.

96 { return (data_ >> 7) & 0x1f; }

References data_.

Referenced by Particle.Particle::__str__(), fromEmulator(), L1GctInternJetData(), ntupleDataFormat.Track::phiPull(), and setData().

◆ rank()

uint16_t L1GctInternJetData::rank ( ) const
inline

get rank bits

Definition at line 90 of file L1GctInternJetData.h.

90 { return data_ & 0x3f; }

References data_.

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

◆ raw()

uint32_t L1GctInternJetData::raw ( ) const
inline

get the raw data

Definition at line 87 of file L1GctInternJetData.h.

87 { return data_; }

References data_.

◆ regionId()

L1CaloRegionDetId L1GctInternJetData::regionId ( ) const
inline

region associated with the candidate

Definition at line 72 of file L1GctInternJetData.h.

72 { return regionId_; }

References regionId_.

◆ setBx()

void L1GctInternJetData::setBx ( uint16_t  bx)
inline

set bx

Definition at line 122 of file L1GctInternJetData.h.

122 { bx_ = bx; }

References bx(), and bx_.

◆ setCapBlock()

void L1GctInternJetData::setCapBlock ( uint16_t  capBlock)
inline

set cap block

Definition at line 116 of file L1GctInternJetData.h.

116 { capBlock_ = capBlock; }

References capBlock(), and capBlock_.

◆ setCapIndex()

void L1GctInternJetData::setCapIndex ( uint16_t  capIndex)
inline

set cap index

Definition at line 119 of file L1GctInternJetData.h.

119 { capIndex_ = capIndex; }

References capIndex(), and capIndex_.

◆ 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.

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 }

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

Referenced by L1GctInternJetData().

◆ setRawData()

void L1GctInternJetData::setRawData ( uint32_t  data)
inline

set data

Definition at line 128 of file L1GctInternJetData.h.

128 { data_ = data; }

References data, and data_.

◆ setRegionId()

void L1GctInternJetData::setRegionId ( L1CaloRegionDetId  rgn)
inline

set region

Definition at line 113 of file L1GctInternJetData.h.

113 { regionId_ = rgn; }

References regionId_.

◆ setType()

void L1GctInternJetData::setType ( L1GctInternJetType  type)
inline

set type

Definition at line 125 of file L1GctInternJetData.h.

125 { type_ = type; }

References type(), and type_.

◆ sgnEta()

uint16_t L1GctInternJetData::sgnEta ( ) const
inline

get sign of eta

Definition at line 108 of file L1GctInternJetData.h.

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

References data_.

Referenced by L1GctInternJetData(), and setData().

◆ tauVeto()

uint16_t L1GctInternJetData::tauVeto ( ) const
inline

get tau veto

Definition at line 93 of file L1GctInternJetData.h.

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

References data_.

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

◆ type()

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

'type' of object

Definition at line 69 of file L1GctInternJetData.h.

69 { return type_; }

References type_.

Referenced by setType().

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
L1GctInternJetData::type
L1GctInternJetData::L1GctInternJetType type() const
'type' of object
Definition: L1GctInternJetData.h:69
L1GctInternJetData::jet_precluster
Definition: L1GctInternJetData.h:16
L1GctInternJetData::jet_cluster
Definition: L1GctInternJetData.h:16
L1GctInternJetData::sgnEta
uint16_t sgnEta() const
get sign of eta
Definition: L1GctInternJetData.h:108
L1GctInternJetData::eta
uint16_t eta() const
get eta
Definition: L1GctInternJetData.h:99
L1GctInternJetData::setData
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
Definition: L1GctInternJetData.cc:100
L1GctInternJetData::bx_
int16_t bx_
Definition: L1GctInternJetData.h:148
L1GctInternJetData::capBlock_
uint16_t capBlock_
Definition: L1GctInternJetData.h:146
L1GctInternJetData::et
uint16_t et() const
get et
Definition: L1GctInternJetData.h:102
L1GctInternJetData::gct_trig_object
Definition: L1GctInternJetData.h:16
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
L1GctInternJetData::phi
uint16_t phi() const
get phi
Definition: L1GctInternJetData.h:96
L1GctInternJetData::bx
int16_t bx() const
get BX number
Definition: L1GctInternJetData.h:84
L1GctInternJetData::emulator
Definition: L1GctInternJetData.h:16
L1GctInternJetData::capIndex
uint16_t capIndex() const
get index within capture block
Definition: L1GctInternJetData.h:81
L1GctInternJetData::jet_cluster_minimal
Definition: L1GctInternJetData.h:16
L1GctInternJetData::regionId_
L1CaloRegionDetId regionId_
Definition: L1GctInternJetData.h:143
L1GctInternJetData::capBlock
uint16_t capBlock() const
get capture block
Definition: L1GctInternJetData.h:78
L1GctInternJetData::rank
uint16_t rank() const
get rank bits
Definition: L1GctInternJetData.h:90
L1GctInternJetData::oflow
uint16_t oflow() const
get oflow
Definition: L1GctInternJetData.h:105
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ztail.d
d
Definition: ztail.py:151
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
L1GctInternJetData::type_
L1GctInternJetType type_
Definition: L1GctInternJetData.h:151
L1GctInternJetData::tauVeto
uint16_t tauVeto() const
get tau veto
Definition: L1GctInternJetData.h:93
L1GctInternJetData::data_
uint32_t data_
Definition: L1GctInternJetData.h:154
L1GctInternJetData::capIndex_
uint16_t capIndex_
Definition: L1GctInternJetData.h:147
L1GctInternJetData
L1 GCT internal jet candidate.
Definition: L1GctInternJetData.h:14