CMS 3D CMS Logo

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.

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 }

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

Referenced by clone().

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

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 }

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

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

32 { return new CSCWireHit(*this); }

References CSCWireHit().

◆ cscDetId()

CSCDetId CSCWireHit::cscDetId ( ) const
inline

Position of the wire hit in CSC.

Definition at line 35 of file CSCWireHit.h.

35 { return theDetId; }

References theDetId.

Referenced by print().

◆ deadWG()

short int CSCWireHit::deadWG ( ) const
inline

a dead WG in the cluster?

Definition at line 54 of file CSCWireHit.h.

54 { return theDeadWG; };

References theDeadWG.

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

◆ print()

void CSCWireHit::print ( void  ) const

Print content of the wirehit.

Debug.

Definition at line 37 of file CSCWireHit.cc.

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 }

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

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

57 { return theTimeBinsOn; };

References theTimeBinsOn.

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

◆ tmax()

int CSCWireHit::tmax ( ) const
inline

The timing for the wire hit.

Definition at line 51 of file CSCWireHit.h.

51 { return theWireHitTmax; }

References theWireHitTmax.

Referenced by print().

◆ wgroups()

ChannelContainer CSCWireHit::wgroups ( ) const
inline

The wire groups used for forming the cluster.

Definition at line 42 of file CSCWireHit.h.

42 { return theWgroupsLowBits; }

References theWgroupsLowBits.

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

◆ wgroupsBX()

ChannelContainer CSCWireHit::wgroupsBX ( ) const
inline

The BX number.

Definition at line 45 of file CSCWireHit.h.

45 { return theWgroupsHighBits; }

References theWgroupsHighBits.

Referenced by print().

◆ wgroupsBXandWire()

ChannelContainer CSCWireHit::wgroupsBXandWire ( ) const
inline

The BX + wire group number.

Definition at line 48 of file CSCWireHit.h.

48 { return theWgroups; }

References theWgroups.

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

◆ wHitPos()

float CSCWireHit::wHitPos ( ) const
inline

The wire hit position expressed in terms of wire #.

Definition at line 38 of file CSCWireHit.h.

38 { return theWireHitPosition; }

References theWireHitPosition.

Referenced by print().

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().

CSCWireHit::theDeadWG
short int theDeadWG
Definition: CSCWireHit.h:69
mps_fire.i
i
Definition: mps_fire.py:428
CSCWireHit::theWireHitTmax
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68
gather_cfg.cout
cout
Definition: gather_cfg.py:144
CSCWireHit::theDetId
CSCDetId theDetId
Definition: CSCWireHit.h:63
CSCWireHit::CSCWireHit
CSCWireHit()
Definition: CSCWireHit.cc:4
CSCWireHit::wgroupsBX
ChannelContainer wgroupsBX() const
The BX number.
Definition: CSCWireHit.h:45
CSCWireHit::theWireHitPosition
float theWireHitPosition
Definition: CSCWireHit.h:64
CSCWireHit::tmax
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:51
CSCWireHit::wHitPos
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:38
createfilelist.int
int
Definition: createfilelist.py:10
CSCWireHit::theWgroups
ChannelContainer theWgroups
Definition: CSCWireHit.h:65
CSCWireHit::wgroupsBXandWire
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
Definition: CSCWireHit.h:48
CSCWireHit::theWgroupsLowBits
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67
CSCWireHit::timeBinsOn
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
CSCWireHit::theWgroupsHighBits
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66
CSCWireHit::theTimeBinsOn
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70
CSCWireHit::deadWG
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:54
CSCWireHit::cscDetId
CSCDetId cscDetId() const
Position of the wire hit in CSC.
Definition: CSCWireHit.h:35
CSCWireHit::wgroups
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:42
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142