5 theLocalPosition(0.,0.),
6 theLocalError(0.,0.,0.),
11 thePositionWithinStrip(-999.),
12 theErrorWithinStrip(-999.),
13 theQuality( 0 ), theBadStrip( 0 ), theBadWireGroup( 0 ),
14 theScaledWireTime( 0 )
47 int quality,
short int badStrip,
short int badWireGroup,
50 theLocalPosition( pos ),
52 theStrips( channels ),
54 theWireGroups( wgroups ),
56 thePositionWithinStrip( posInStrip ),
57 theErrorWithinStrip( errInStrip ),
58 theQuality( quality ), theBadStrip( badStrip ), theBadWireGroup( badWireGroup ),
59 theScaledWireTime ( scaledWireTime )
113 if (
theStrips.size() == 0 && otherStrips.size() == 0 &&
theWireGroups.size() == 0 && otherWireGroups.size() == 0)
return true;
123 bool foundWire =
false;
128 for (ChannelContainer::const_iterator jWire = otherWireGroups.begin(); jWire != otherWireGroups.end(); ++jWire) {
129 if (*iWire == *jWire) {
140 if (what ==
someWires && !foundWire)
return false;
144 bool foundStrip =
false;
146 for (ChannelContainer::const_iterator iStrip =
theStrips.begin(); iStrip !=
theStrips.end(); ++iStrip) {
148 for (ChannelContainer::const_iterator jStrip = otherStrips.begin(); jStrip != otherStrips.end(); ++jStrip) {
161 if (what ==
someStrips && !foundStrip)
return false;
165 if (!foundWire && !foundStrip)
return false;
226 <<
" (" <<
"HEX: " << std::hex <<
channels()[
i] <<
")" <<
" ";
235 for (
int k=0;
k<8 ;
k++){
236 std::cout << ((channelsl1a()[i] >> (15-
k)) & 0x1) <<
" ";}
241 std::cout <<
" BX + WireGroups combined: ";
251 <<
" (" <<
"HEX: " << std::hex <<
wgroupsBX()[
i] <<
")" <<
" | ";
269 for(
size_t iS =0;iS< rh.
channels().size();++iS){
272 os <<
"\n wire # : ";
273 for(
size_t iW =0;iW< rh.
wgroups().size();++iW){
SharedInputType
definition of equality via shared input
ChannelContainer theWgroupsLowBits
BX.
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
CSCDetId cscDetId() const
ChannelContainer wgroups() const
Container of wire groups comprising the rechit.
ChannelContainer theStrips
std::ostream & operator<<(std::ostream &out, const ALILine &li)
virtual bool sharesInput(const TrackingRecHit *other, TrackingRecHit::SharedInputType what) const
Returns true if the two TrackingRecHits are using the same input information, false otherwise...
const ChannelContainer & channelsl1a() const
const ChannelContainer& channels() const { return theStrips; }
const ChannelContainer & channelsTotal() const
L1A.
void print() const
Print the content of the RecHit2D including L1A (for debugging)
LocalError localPositionError() const
ChannelContainer theStripsLowBits
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
ChannelContainer theStripsHighBits
L1A.
float positionWithinStrip() const
The estimated position within the strip.
ChannelContainer theWireGroups
int quality() const
quality flag of the reconstruction
const ChannelContainer & channels() const
Extracting strip channel numbers comprising the rechit.
float errorWithinStrip() const
The uncertainty of the estimated position within the strip.
DetId geographicalId() const
LocalPoint localPosition() const
ChannelContainer theWgroupsHighBits
L1A.
std::vector< int > ChannelContainer
ChannelContainer wgroupsBX() const
The BX number.