CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Types | Public Member Functions | Private Attributes
CSCWireHit Class Reference

#include <CSCWireHit.h>

Public Types

typedef std::vector< int > ChannelContainer
 

Public Member Functions

CSCWireHitclone () const
 CSCWireHit base class interface. More...
 
CSCDetId cscDetId () const
 Position of the wire hit in CSC. More...
 
 CSCWireHit ()
 
 CSCWireHit (const CSCDetId &id, const float &wHitPos, ChannelContainer &wgroups, const int &tmax, const short int &deadWG, const std::vector< int > &timeBinsOn)
 
short int deadWG () const
 a dead WG in the cluster? More...
 
void print () const
 Print content of the wirehit. More...
 
std::vector< int > timeBinsOn () const
 Vector of time bins ON for central wire digi, lower of center pair if even number. More...
 
int tmax () const
 The timing for the wire hit. More...
 
ChannelContainer wgroups () const
 The wire groups used for forming the cluster. More...
 
ChannelContainer wgroupsBX () const
 The BX number. More...
 
ChannelContainer wgroupsBXandWire () const
 The BX + wire group number. More...
 
float wHitPos () const
 The wire hit position expressed in terms of wire #. More...
 
 ~CSCWireHit ()
 

Private Attributes

short int theDeadWG
 
CSCDetId theDetId
 
std::vector< int > theTimeBinsOn
 
ChannelContainer theWgroups
 
ChannelContainer theWgroupsHighBits
 BX and wire group number combined. More...
 
ChannelContainer theWgroupsLowBits
 to extract BX More...
 
float theWireHitPosition
 
int theWireHitTmax
 to extract the wire group number More...
 

Detailed Description

Definition at line 17 of file CSCWireHit.h.

Member Typedef Documentation

◆ ChannelContainer

typedef std::vector<int> CSCWireHit::ChannelContainer

Definition at line 19 of file CSCWireHit.h.

Constructor & Destructor Documentation

◆ CSCWireHit() [1/2]

CSCWireHit::CSCWireHit ( )

Definition at line 4 of file CSCWireHit.cc.

References mps_fire::i, createfilelist::int, theWgroups, theWgroupsHighBits, and theWgroupsLowBits.

Referenced by clone().

6  theWgroupsHighBits.clear();
7  for (int i = 0; i < (int)theWgroups.size(); i++)
8  theWgroupsHighBits.push_back((theWgroups[i] >> 16) & 0x0000FFFF);
9  theWgroupsLowBits.clear();
10  for (int i = 0; i < (int)theWgroups.size(); i++)
11  theWgroupsLowBits.push_back(theWgroups[i] & 0x0000FFFF);
12 }
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67
ChannelContainer theWgroups
Definition: CSCWireHit.h:65
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66
short int theDeadWG
Definition: CSCWireHit.h:69
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68
CSCDetId theDetId
Definition: CSCWireHit.h:63
float theWireHitPosition
Definition: CSCWireHit.h:64

◆ CSCWireHit() [2/2]

CSCWireHit::CSCWireHit ( const CSCDetId id,
const float &  wHitPos,
ChannelContainer wgroups,
const int &  tmax,
const short int &  deadWG,
const std::vector< int > &  timeBinsOn 
)

Definition at line 14 of file CSCWireHit.cc.

References mps_fire::i, createfilelist::int, theWgroups, theWgroupsHighBits, and theWgroupsLowBits.

20  : theDetId(id),
26  theWgroupsHighBits.clear();
27  for (int i = 0; i < (int)theWgroups.size(); i++)
28  theWgroupsHighBits.push_back((theWgroups[i] >> 16) & 0x0000FFFF);
29  theWgroupsLowBits.clear();
30  for (int i = 0; i < (int)theWgroups.size(); i++)
31  theWgroupsLowBits.push_back(theWgroups[i] & 0x0000FFFF);
32 }
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67
ChannelContainer theWgroups
Definition: CSCWireHit.h:65
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:51
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:38
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:54
std::vector< int > timeBinsOn() const
Vector of time bins ON for central wire digi, lower of center pair if even number.
Definition: CSCWireHit.h:57
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:42
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66
short int theDeadWG
Definition: CSCWireHit.h:69
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68
CSCDetId theDetId
Definition: CSCWireHit.h:63
float theWireHitPosition
Definition: CSCWireHit.h:64

◆ ~CSCWireHit()

CSCWireHit::~CSCWireHit ( )

Definition at line 34 of file CSCWireHit.cc.

34 {}

Member Function Documentation

◆ clone()

CSCWireHit* CSCWireHit::clone ( void  ) const
inline

CSCWireHit base class interface.

Definition at line 32 of file CSCWireHit.h.

References CSCWireHit().

32 { return new CSCWireHit(*this); }

◆ cscDetId()

CSCDetId CSCWireHit::cscDetId ( ) const
inline

Position of the wire hit in CSC.

Definition at line 35 of file CSCWireHit.h.

References theDetId.

Referenced by print().

35 { return theDetId; }
CSCDetId theDetId
Definition: CSCWireHit.h:63

◆ deadWG()

short int CSCWireHit::deadWG ( ) const
inline

a dead WG in the cluster?

Definition at line 54 of file CSCWireHit.h.

References theDeadWG.

Referenced by CSCMake2DRecHit::hitFromStripAndWire(), and print().

54 { return theDeadWG; };
short int theDeadWG
Definition: CSCWireHit.h:69

◆ print()

void CSCWireHit::print ( void  ) const

Print content of the wirehit.

Debug.

Definition at line 37 of file CSCWireHit.cc.

References gather_cfg::cout, cscDetId(), deadWG(), TauDecayModes::dec, mps_fire::i, createfilelist::int, timeBinsOn(), tmax(), wgroups(), wgroupsBX(), wgroupsBXandWire(), and wHitPos().

37  {
38  std::cout << " CSCWireHit in CSC Detector: " << std::dec << cscDetId() << std::endl;
39  std::cout << " wHitPos: " << wHitPos() << std::endl;
40  std::cout << " BX + WireGroups combined: ";
41  for (int i = 0; i < (int)wgroupsBXandWire().size(); i++) {
42  std::cout //std::dec << wgroups()[i]
43  << "HEX: " << std::hex << wgroupsBXandWire()[i] << std::hex << " ";
44  }
45  std::cout << std::endl;
46  std::cout << " WireGroups: ";
47  for (int i = 0; i < (int)wgroups().size(); i++) {
48  std::cout << std::dec << wgroups()[i] << " ("
49  << "HEX: " << std::hex << wgroups()[i] << ")"
50  << " ";
51  }
52  std::cout << " BX#: ";
53  for (int i = 0; i < (int)wgroupsBX().size(); i++) {
54  std::cout << std::dec << wgroupsBX()[i] << " ("
55  << "HEX: " << std::hex << wgroupsBX()[i] << ")"
56  << " ";
57  }
58 
59  std::cout << std::endl;
60  std::cout << " TMAX: " << std::dec << tmax() << std::endl;
61  std::cout << " Dead WG: " << deadWG() << std::endl;
62  std::cout << " Time bins on: ";
63  for (int i = 0; i < (int)timeBinsOn().size(); i++)
64  std::cout << timeBinsOn()[i] << " ";
65  std::cout << std::endl;
66 }
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:51
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:38
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:54
CSCDetId cscDetId() const
Position of the wire hit in CSC.
Definition: CSCWireHit.h:35
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
Definition: CSCWireHit.h:48
std::vector< int > timeBinsOn() const
Vector of time bins ON for central wire digi, lower of center pair if even number.
Definition: CSCWireHit.h:57
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:42
ChannelContainer wgroupsBX() const
The BX number.
Definition: CSCWireHit.h:45

◆ timeBinsOn()

std::vector<int> CSCWireHit::timeBinsOn ( ) const
inline

Vector of time bins ON for central wire digi, lower of center pair if even number.

Definition at line 57 of file CSCWireHit.h.

References theTimeBinsOn.

Referenced by CSCMake2DRecHit::hitFromStripAndWire(), and print().

57 { return theTimeBinsOn; };
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70

◆ tmax()

int CSCWireHit::tmax ( ) const
inline

The timing for the wire hit.

Definition at line 51 of file CSCWireHit.h.

References theWireHitTmax.

Referenced by print().

51 { return theWireHitTmax; }
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68

◆ wgroups()

ChannelContainer CSCWireHit::wgroups ( ) const
inline

The wire groups used for forming the cluster.

Definition at line 42 of file CSCWireHit.h.

References theWgroupsLowBits.

Referenced by CSCMake2DRecHit::hitFromStripAndWire(), and print().

42 { return theWgroupsLowBits; }
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67

◆ wgroupsBX()

ChannelContainer CSCWireHit::wgroupsBX ( ) const
inline

The BX number.

Definition at line 45 of file CSCWireHit.h.

References theWgroupsHighBits.

Referenced by print().

45 { return theWgroupsHighBits; }
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66

◆ wgroupsBXandWire()

ChannelContainer CSCWireHit::wgroupsBXandWire ( ) const
inline

The BX + wire group number.

Definition at line 48 of file CSCWireHit.h.

References theWgroups.

Referenced by CSCMake2DRecHit::hitFromStripAndWire(), and print().

48 { return theWgroups; }
ChannelContainer theWgroups
Definition: CSCWireHit.h:65

◆ wHitPos()

float CSCWireHit::wHitPos ( ) const
inline

The wire hit position expressed in terms of wire #.

Definition at line 38 of file CSCWireHit.h.

References theWireHitPosition.

Referenced by print().

38 { return theWireHitPosition; }
float theWireHitPosition
Definition: CSCWireHit.h:64

Member Data Documentation

◆ theDeadWG

short int CSCWireHit::theDeadWG
private

Definition at line 69 of file CSCWireHit.h.

Referenced by deadWG().

◆ theDetId

CSCDetId CSCWireHit::theDetId
private

Definition at line 63 of file CSCWireHit.h.

Referenced by cscDetId().

◆ theTimeBinsOn

std::vector<int> CSCWireHit::theTimeBinsOn
private

Definition at line 70 of file CSCWireHit.h.

Referenced by timeBinsOn().

◆ theWgroups

ChannelContainer CSCWireHit::theWgroups
private

Definition at line 65 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroupsBXandWire().

◆ theWgroupsHighBits

ChannelContainer CSCWireHit::theWgroupsHighBits
private

BX and wire group number combined.

Definition at line 66 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroupsBX().

◆ theWgroupsLowBits

ChannelContainer CSCWireHit::theWgroupsLowBits
private

to extract BX

Definition at line 67 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroups().

◆ theWireHitPosition

float CSCWireHit::theWireHitPosition
private

Definition at line 64 of file CSCWireHit.h.

Referenced by wHitPos().

◆ theWireHitTmax

int CSCWireHit::theWireHitTmax
private

to extract the wire group number

Definition at line 68 of file CSCWireHit.h.

Referenced by tmax().