6 thePositionWithinStrip(-999.),
7 theErrorWithinStrip(-999.),
8 theEnergyDeposit(-994.),
16 theLocalPosition(0., 0.),
17 theLocalError(0., 0., 0.) {
36 short int badWireGroup,
41 thePositionWithinStrip(posInStrip),
42 theErrorWithinStrip(errInStrip),
43 theEnergyDeposit(energyDeposit),
45 theScaledWireTime(scaledWireTime),
46 theBadStrip(badStrip),
47 theBadWireGroup(badWireGroup),
48 theLocalPosition(
pos),
54 std::cout <<
"CSCRecHit2D: not enough strips in DataFormat! " << unsigned(
nStrips_) << std::endl;
130 bool foundWire =
false;
139 bool foundStrip =
false;
141 for (
unsigned int i = 0;
i <
nStrips();
i++) {
143 for (
unsigned int j = 0;
j <
nStrips();
j++) {
163 if (!foundWire && !foundStrip)
185 for (
unsigned int i = 0;
i <
nStrips();
i++) {
188 <<
"HEX: " << std::hex <<
channels(
i) <<
")" 197 for (
int k = 0;
k < 8;
k++) {
198 std::cout << ((channelsl1a(i) >> (15 -
k)) & 0x1) <<
" ";
208 os <<
"CSCRecHit2D: " 212 <<
" tpeak: " << rh.
tpeak() <<
" wireTime: " << rh.
wireTime() << std::endl;
214 for (
size_t iS = 0; iS < rh.
nStrips(); ++iS) {
219 os <<
"central wire: " << rh.
hitWire() <<
" of " << nwgs <<
" wiregroup" << std::endl;
221 os <<
"central wire: " << rh.
hitWire() <<
" of " << nwgs <<
" wiregroups" << std::endl;
SharedInputType
definition of equality via shared input
unsigned int nStrips() const
unsigned char nWireGroups_
bool sharesInput(const TrackingRecHit *other, TrackingRecHit::SharedInputType what) const override
Returns true if the two TrackingRecHits are using the same input information, false otherwise...
CSCDetId cscDetId() const
void print() const
Print the content of the RecHit2D including L1A (for debugging)
float errorWithinStrip() const
The uncertainty of the estimated position within the strip.
unsigned int nWireGroups() const
static const unsigned int MAXSTRIPS
short int theBadWireGroup
float adcs(unsigned int strip, unsigned int timebin) const
Map of strip ADCs for strips comprising the rechit.
LocalError localPositionError() const override
float tpeak() const
Fitted peaking time.
LocalPoint localPosition() const override
float thePositionWithinStrip
DetId geographicalId() const
float theErrorWithinStrip
float positionWithinStrip() const
The estimated position within the strip.
static const unsigned int MAXTIMEBINS
GloballyPositioned< float >::LocalPoint LocalPoint
int channels(unsigned int i) const
Extracting strip channel numbers comprising the rechit - low.
short int hitWire() const
L1A.
unsigned char theStrips_[MAXSTRIPS]
std::vector< int > ChannelContainer
std::ostream & operator<<(std::ostream &os, const CSCRecHit2D &rh)
Output operator for CSCRecHit2D.
int quality() const
quality flag of the reconstruction
unsigned char theL1APhaseBits_[MAXSTRIPS]