Main Page
Namespaces
Classes
Package Documentation
DataFormats
CSCDigi
interface
CSCCorrelatedLCTDigi.h
Go to the documentation of this file.
1
#ifndef CSCDigi_CSCCorrelatedLCTDigi_h
2
#define CSCDigi_CSCCorrelatedLCTDigi_h
3
12
#include <cstdint>
13
#include <iosfwd>
14
#include "
DataFormats/CSCDigi/interface/CSCALCTDigi.h
"
15
#include "
DataFormats/CSCDigi/interface/CSCCLCTDigi.h
"
16
#include "
DataFormats/GEMDigi/interface/GEMPadDigi.h
"
17
18
class
CSCCorrelatedLCTDigi
{
19
public
:
21
CSCCorrelatedLCTDigi
(
const
int
trknmb
,
22
const
int
valid
,
23
const
int
quality
,
24
const
int
keywire
,
25
const
int
strip
,
26
const
int
pattern
,
27
const
int
bend
,
28
const
int
bx
,
29
const
int
mpclink
= 0,
30
const
uint16_t
bx0
= 0,
31
const
uint16_t
syncErr
= 0,
32
const
uint16_t
cscID
= 0);
33
CSCCorrelatedLCTDigi
();
34
36
void
clear
();
37
39
int
getTrknmb
()
const
{
return
trknmb
; }
40
42
bool
isValid
()
const
{
return
valid
; }
43
45
int
getQuality
()
const
{
return
quality
; }
46
48
int
getKeyWG
()
const
{
return
keywire
; }
49
51
int
getStrip
()
const
{
return
strip
; }
52
54
float
getFractionalStrip
()
const
;
55
57
int
getPattern
()
const
{
return
pattern
; }
58
60
int
getBend
()
const
{
return
bend
; }
61
63
int
getBX
()
const
{
return
bx
; }
64
66
int
getCLCTPattern
()
const
{
return
(pattern & 0xF); }
67
69
int
getStripType
()
const
{
return
((pattern & 0x8) >> 3); }
70
72
int
getMPCLink
()
const
{
return
mpclink
; }
73
74
uint16_t
getCSCID
()
const
{
return
cscID
; }
75
uint16_t
getBX0
()
const
{
return
bx0
; }
76
uint16_t
getSyncErr
()
const
{
return
syncErr
; }
77
79
void
setTrknmb
(
const
uint16_t number) { trknmb = number; }
80
82
void
setMPCLink
(
const
uint16_t& link) {
mpclink
= link; }
83
85
void
print
()
const
;
86
88
bool
operator==
(
const
CSCCorrelatedLCTDigi
&)
const
;
89
bool
operator!=
(
const
CSCCorrelatedLCTDigi
& rhs)
const
{
return
!(this->
operator==
(rhs)); }
90
92
void
setWireGroup
(
unsigned
int
wiregroup) { keywire = wiregroup; }
93
95
void
setQuality
(
unsigned
int
q
) { quality =
q
; }
96
98
void
setValid
(
unsigned
int
v
) { valid =
v
; }
99
101
void
setStrip
(
unsigned
int
s
) { strip =
s
; }
102
104
void
setPattern
(
unsigned
int
p
) { pattern =
p
; }
105
107
void
setBend
(
unsigned
int
b
) { bend =
b
; }
108
110
void
setBX
(
unsigned
int
b
) { bx =
b
; }
111
113
void
setBX0
(
unsigned
int
b
) {
bx0
=
b
; }
114
116
void
setSyncErr
(
unsigned
int
s
) {
syncErr
=
s
; }
117
119
void
setCSCID
(
unsigned
int
c
) {
cscID
=
c
; }
120
122
enum
Type
{
123
CLCTALCT
,
// CLCT-centric
124
ALCTCLCT
,
// ALCT-centric
125
ALCTCLCTGEM
,
// ALCT-CLCT-1 GEM pad
126
ALCTCLCT2GEM
,
// ALCT-CLCT-2 GEM pads in coincidence
127
ALCT2GEM
,
// ALCT-2 GEM pads in coincidence
128
CLCT2GEM
,
// CLCT-2 GEM pads in coincidence
129
CLCTONLY
,
// Missing ALCT
130
ALCTONLY
// Missing CLCT
131
};
132
133
int
getType
()
const
{
return
type_
; }
134
void
setType
(
int
type
) {
type_
=
type
; }
135
136
void
setALCT
(
const
CSCALCTDigi
& alct) {
alct_
= alct; }
137
void
setCLCT
(
const
CSCCLCTDigi
& clct) {
clct_
= clct; }
138
void
setGEM1
(
const
GEMPadDigi
&
gem
) {
gem1_
=
gem
; }
139
void
setGEM2
(
const
GEMPadDigi
&
gem
) {
gem2_
=
gem
; }
140
const
CSCALCTDigi
&
getALCT
()
const
{
return
alct_
; }
141
const
CSCCLCTDigi
&
getCLCT
()
const
{
return
clct_
; }
142
const
GEMPadDigi
&
getGEM1
()
const
{
return
gem1_
; }
143
const
GEMPadDigi
&
getGEM2
()
const
{
return
gem2_
; }
144
145
private
:
146
uint16_t
trknmb
;
147
uint16_t
valid
;
148
uint16_t
quality
;
149
uint16_t
keywire
;
150
uint16_t
strip
;
151
uint16_t
pattern
;
152
uint16_t
bend
;
153
uint16_t
bx
;
154
uint16_t
mpclink
;
155
uint16_t
bx0
;
156
uint16_t
syncErr
;
157
uint16_t
cscID
;
158
160
int
type_
;
161
162
CSCALCTDigi
alct_
;
163
CSCCLCTDigi
clct_
;
164
GEMPadDigi
gem1_
;
165
GEMPadDigi
gem2_
;
166
};
167
168
std::ostream&
operator<<
(std::ostream&
o
,
const
CSCCorrelatedLCTDigi
& digi);
169
170
#endif
CSCCorrelatedLCTDigi::strip
uint16_t strip
Definition:
CSCCorrelatedLCTDigi.h:150
CSCCorrelatedLCTDigi::getALCT
const CSCALCTDigi & getALCT() const
Definition:
CSCCorrelatedLCTDigi.h:140
type
type
Definition:
HCALResponse.h:21
CSCCorrelatedLCTDigi::getStrip
int getStrip() const
return the key halfstrip from 0,159
Definition:
CSCCorrelatedLCTDigi.h:51
CSCCorrelatedLCTDigi::setALCT
void setALCT(const CSCALCTDigi &alct)
Definition:
CSCCorrelatedLCTDigi.h:136
CSCCorrelatedLCTDigi::alct_
CSCALCTDigi alct_
Definition:
CSCCorrelatedLCTDigi.h:162
CSCCorrelatedLCTDigi::setGEM2
void setGEM2(const GEMPadDigi &gem)
Definition:
CSCCorrelatedLCTDigi.h:139
CSCCorrelatedLCTDigi::bend
uint16_t bend
Definition:
CSCCorrelatedLCTDigi.h:152
CSCCorrelatedLCTDigi::getSyncErr
uint16_t getSyncErr() const
Definition:
CSCCorrelatedLCTDigi.h:76
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CSCCorrelatedLCTDigi::setType
void setType(int type)
Definition:
CSCCorrelatedLCTDigi.h:134
CSCALCTDigi
Definition:
CSCALCTDigi.h:15
CSCCorrelatedLCTDigi::setWireGroup
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition:
CSCCorrelatedLCTDigi.h:92
CSCCorrelatedLCTDigi::setBend
void setBend(unsigned int b)
set bend
Definition:
CSCCorrelatedLCTDigi.h:107
CSCCorrelatedLCTDigi::getCLCTPattern
int getCLCTPattern() const
return CLCT pattern number (in use again Feb 2011)
Definition:
CSCCorrelatedLCTDigi.h:66
CSCCorrelatedLCTDigi::getGEM1
const GEMPadDigi & getGEM1() const
Definition:
CSCCorrelatedLCTDigi.h:142
CSCCorrelatedLCTDigi::CLCTALCT
Definition:
CSCCorrelatedLCTDigi.h:123
CSCCorrelatedLCTDigi::ALCT2GEM
Definition:
CSCCorrelatedLCTDigi.h:127
CSCCorrelatedLCTDigi::Type
Type
SIMULATION ONLY ////.
Definition:
CSCCorrelatedLCTDigi.h:122
CSCCorrelatedLCTDigi::getQuality
int getQuality() const
return the 4 bit Correlated LCT Quality
Definition:
CSCCorrelatedLCTDigi.h:45
CSCCorrelatedLCTDigi::setBX0
void setBX0(unsigned int b)
set bx0
Definition:
CSCCorrelatedLCTDigi.h:113
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
CSCCorrelatedLCTDigi::getBend
int getBend() const
return bend
Definition:
CSCCorrelatedLCTDigi.h:60
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
CSCCorrelatedLCTDigi::keywire
uint16_t keywire
Definition:
CSCCorrelatedLCTDigi.h:149
CSCCorrelatedLCTDigi::setQuality
void setQuality(unsigned int q)
set quality code
Definition:
CSCCorrelatedLCTDigi.h:95
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
CSCCorrelatedLCTDigi::getType
int getType() const
Definition:
CSCCorrelatedLCTDigi.h:133
CSCCorrelatedLCTDigi::getCLCT
const CSCCLCTDigi & getCLCT() const
Definition:
CSCCorrelatedLCTDigi.h:141
CSCCorrelatedLCTDigi::ALCTCLCT
Definition:
CSCCorrelatedLCTDigi.h:124
CSCCorrelatedLCTDigi::CSCCorrelatedLCTDigi
CSCCorrelatedLCTDigi()
Default.
Definition:
CSCCorrelatedLCTDigi.cc:40
gem
Definition:
AMC13Event.h:6
CSCCorrelatedLCTDigi::CLCT2GEM
Definition:
CSCCorrelatedLCTDigi.h:128
mixOne_premix_on_sim_cfi.gem
gem
Definition:
mixOne_premix_on_sim_cfi.py:194
CSCCorrelatedLCTDigi::getStripType
int getStripType() const
return strip type (obsolete since mid-2008)
Definition:
CSCCorrelatedLCTDigi.h:69
CSCCorrelatedLCTDigi::setMPCLink
void setMPCLink(const uint16_t &link)
Set mpc link number after MPC sorting.
Definition:
CSCCorrelatedLCTDigi.h:82
CSCCorrelatedLCTDigi::ALCTCLCTGEM
Definition:
CSCCorrelatedLCTDigi.h:125
GEMPadDigi.h
CSCALCTDigi.h
CSCCorrelatedLCTDigi::setPattern
void setPattern(unsigned int p)
set pattern
Definition:
CSCCorrelatedLCTDigi.h:104
CSCCorrelatedLCTDigi::getFractionalStrip
float getFractionalStrip() const
return the fractional strip. counts from 0.25
Definition:
CSCCorrelatedLCTDigi.cc:61
CSCCorrelatedLCTDigi::setValid
void setValid(unsigned int v)
set valid
Definition:
CSCCorrelatedLCTDigi.h:98
CSCCorrelatedLCTDigi::CLCTONLY
Definition:
CSCCorrelatedLCTDigi.h:129
CSCCorrelatedLCTDigi::operator==
bool operator==(const CSCCorrelatedLCTDigi &) const
Comparison.
Definition:
CSCCorrelatedLCTDigi.cc:64
CSCCorrelatedLCTDigi::type_
int type_
SIMULATION ONLY ////.
Definition:
CSCCorrelatedLCTDigi.h:160
CSCCorrelatedLCTDigi::setSyncErr
void setSyncErr(unsigned int s)
set syncErr
Definition:
CSCCorrelatedLCTDigi.h:116
CSCCorrelatedLCTDigi::operator!=
bool operator!=(const CSCCorrelatedLCTDigi &rhs) const
Definition:
CSCCorrelatedLCTDigi.h:89
CSCCorrelatedLCTDigi::setStrip
void setStrip(unsigned int s)
set strip
Definition:
CSCCorrelatedLCTDigi.h:101
CSCCorrelatedLCTDigi::getCSCID
uint16_t getCSCID() const
Definition:
CSCCorrelatedLCTDigi.h:74
CSCCorrelatedLCTDigi::setCSCID
void setCSCID(unsigned int c)
set cscID
Definition:
CSCCorrelatedLCTDigi.h:119
CSCCorrelatedLCTDigi::ALCTCLCT2GEM
Definition:
CSCCorrelatedLCTDigi.h:126
CSCCorrelatedLCTDigi::trknmb
uint16_t trknmb
Definition:
CSCCorrelatedLCTDigi.h:146
CSCCorrelatedLCTDigi::getTrknmb
int getTrknmb() const
return track number
Definition:
CSCCorrelatedLCTDigi.h:39
CSCCLCTDigi
Definition:
CSCCLCTDigi.h:15
CSCCorrelatedLCTDigi::getBX
int getBX() const
return BX
Definition:
CSCCorrelatedLCTDigi.h:63
CSCCorrelatedLCTDigi::gem1_
GEMPadDigi gem1_
Definition:
CSCCorrelatedLCTDigi.h:164
CSCCorrelatedLCTDigi::getBX0
uint16_t getBX0() const
Definition:
CSCCorrelatedLCTDigi.h:75
CSCCorrelatedLCTDigi::gem2_
GEMPadDigi gem2_
Definition:
CSCCorrelatedLCTDigi.h:165
connectstrParser.o
o
Definition:
connectstrParser.py:72
CSCCorrelatedLCTDigi::quality
uint16_t quality
Definition:
CSCCorrelatedLCTDigi.h:148
CSCCorrelatedLCTDigi::getGEM2
const GEMPadDigi & getGEM2() const
Definition:
CSCCorrelatedLCTDigi.h:143
CSCCorrelatedLCTDigi::mpclink
uint16_t mpclink
Definition:
CSCCorrelatedLCTDigi.h:154
GEMPadDigi
Definition:
GEMPadDigi.h:15
CSCCorrelatedLCTDigi::setBX
void setBX(unsigned int b)
set bx
Definition:
CSCCorrelatedLCTDigi.h:110
b
double b
Definition:
hdecay.h:120
CSCCorrelatedLCTDigi::getMPCLink
int getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
Definition:
CSCCorrelatedLCTDigi.h:72
CSCCorrelatedLCTDigi::isValid
bool isValid() const
return valid pattern bit
Definition:
CSCCorrelatedLCTDigi.h:42
CSCCorrelatedLCTDigi::valid
uint16_t valid
Definition:
CSCCorrelatedLCTDigi.h:147
CSCCorrelatedLCTDigi::getPattern
int getPattern() const
return pattern
Definition:
CSCCorrelatedLCTDigi.h:57
operator<<
std::ostream & operator<<(std::ostream &o, const CSCCorrelatedLCTDigi &digi)
Definition:
CSCCorrelatedLCTDigi.cc:83
CSCCorrelatedLCTDigi::syncErr
uint16_t syncErr
Definition:
CSCCorrelatedLCTDigi.h:156
CSCCorrelatedLCTDigi::ALCTONLY
Definition:
CSCCorrelatedLCTDigi.h:130
CSCCLCTDigi.h
CSCCorrelatedLCTDigi::clct_
CSCCLCTDigi clct_
Definition:
CSCCorrelatedLCTDigi.h:163
CSCCorrelatedLCTDigi::bx0
uint16_t bx0
Definition:
CSCCorrelatedLCTDigi.h:155
lumiQueryAPI.q
q
Definition:
lumiQueryAPI.py:1843
CSCCorrelatedLCTDigi::setTrknmb
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting LCTs.
Definition:
CSCCorrelatedLCTDigi.h:79
CSCCorrelatedLCTDigi::setCLCT
void setCLCT(const CSCCLCTDigi &clct)
Definition:
CSCCorrelatedLCTDigi.h:137
CSCCorrelatedLCTDigi::print
void print() const
Print content of correlated LCT digi.
Definition:
CSCCorrelatedLCTDigi.cc:71
CSCCorrelatedLCTDigi::clear
void clear()
default
Definition:
CSCCorrelatedLCTDigi.cc:45
CSCCorrelatedLCTDigi::setGEM1
void setGEM1(const GEMPadDigi &gem)
Definition:
CSCCorrelatedLCTDigi.h:138
CSCCorrelatedLCTDigi
Definition:
CSCCorrelatedLCTDigi.h:18
CSCCorrelatedLCTDigi::cscID
uint16_t cscID
Definition:
CSCCorrelatedLCTDigi.h:157
CSCCorrelatedLCTDigi::getKeyWG
int getKeyWG() const
return the key wire group. counts from 0.
Definition:
CSCCorrelatedLCTDigi.h:48
CSCCorrelatedLCTDigi::pattern
uint16_t pattern
Definition:
CSCCorrelatedLCTDigi.h:151
CSCCorrelatedLCTDigi::bx
uint16_t bx
Definition:
CSCCorrelatedLCTDigi.h:153
Generated for CMSSW Reference Manual by
1.8.11