test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

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

Definition at line 22 of file CSCWireHit.h.

Constructor & Destructor Documentation

CSCWireHit::CSCWireHit ( )

Definition at line 4 of file CSCWireHit.cc.

References i, theWgroups, theWgroupsHighBits, and theWgroupsLowBits.

Referenced by clone().

4  :
5  theDetId(),
7  theWgroups(),
9  theDeadWG(),
10  theTimeBinsOn(0)
11 {
12 theWgroupsHighBits.clear();
13 for(int i=0; i<(int)theWgroups.size(); i++)
14  theWgroupsHighBits.push_back((theWgroups[i] >> 16) & 0x0000FFFF);
15 theWgroupsLowBits.clear();
16 for(int i=0; i<(int)theWgroups.size(); i++)
17  theWgroupsLowBits.push_back(theWgroups[i] & 0x0000FFFF);
18 }
int i
Definition: DBlmapReader.cc:9
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:66
ChannelContainer theWgroups
Definition: CSCWireHit.h:64
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:69
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:65
short int theDeadWG
Definition: CSCWireHit.h:68
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:67
CSCDetId theDetId
Definition: CSCWireHit.h:62
float theWireHitPosition
Definition: CSCWireHit.h:63
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 20 of file CSCWireHit.cc.

References i, theWgroups, theWgroupsHighBits, and theWgroupsLowBits.

25  :
26  theDetId( id ),
29  theWireHitTmax ( tmax ),
30  theDeadWG ( deadWG ),
32 {
33 theWgroupsHighBits.clear();
34 for(int i=0; i<(int)theWgroups.size(); i++)
35  theWgroupsHighBits.push_back((theWgroups[i] >> 16) & 0x0000FFFF);
36 theWgroupsLowBits.clear();
37 for(int i=0; i<(int)theWgroups.size(); i++)
38  theWgroupsLowBits.push_back(theWgroups[i] & 0x0000FFFF);
39 }
int i
Definition: DBlmapReader.cc:9
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:41
std::vector< int > timeBinsOn() const
Vector of time bins ON for central wire digi, lower of center pair if even number.
Definition: CSCWireHit.h:56
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:37
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:66
ChannelContainer theWgroups
Definition: CSCWireHit.h:64
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:69
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:50
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:65
short int theDeadWG
Definition: CSCWireHit.h:68
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:67
CSCDetId theDetId
Definition: CSCWireHit.h:62
float theWireHitPosition
Definition: CSCWireHit.h:63
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:53
CSCWireHit::~CSCWireHit ( )

Definition at line 41 of file CSCWireHit.cc.

41 {}

Member Function Documentation

CSCWireHit* CSCWireHit::clone ( void  ) const
inline

CSCWireHit base class interface.

Definition at line 31 of file CSCWireHit.h.

References CSCWireHit().

31 { return new CSCWireHit( *this ); }
CSCDetId CSCWireHit::cscDetId ( ) const
inline

Position of the wire hit in CSC.

Definition at line 34 of file CSCWireHit.h.

References theDetId.

Referenced by print().

34 { return theDetId; }
CSCDetId theDetId
Definition: CSCWireHit.h:62
short int CSCWireHit::deadWG ( ) const
inline

a dead WG in the cluster?

Definition at line 53 of file CSCWireHit.h.

References theDeadWG.

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

53 {return theDeadWG; };
short int theDeadWG
Definition: CSCWireHit.h:68
void CSCWireHit::print ( void  ) const

Print content of the wirehit.

Debug.

Definition at line 45 of file CSCWireHit.cc.

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

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

References theTimeBinsOn.

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

56 {return theTimeBinsOn; };
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:69
int CSCWireHit::tmax ( ) const
inline

The timing for the wire hit.

Definition at line 50 of file CSCWireHit.h.

References theWireHitTmax.

Referenced by print().

50 { return theWireHitTmax; }
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:67
ChannelContainer CSCWireHit::wgroups ( ) const
inline

The wire groups used for forming the cluster.

Definition at line 41 of file CSCWireHit.h.

References theWgroupsLowBits.

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

41 { return theWgroupsLowBits; }
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:66
ChannelContainer CSCWireHit::wgroupsBX ( ) const
inline

The BX number.

Definition at line 44 of file CSCWireHit.h.

References theWgroupsHighBits.

Referenced by print().

44 { return theWgroupsHighBits; }
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:65
ChannelContainer CSCWireHit::wgroupsBXandWire ( ) const
inline

The BX + wire group number.

Definition at line 47 of file CSCWireHit.h.

References theWgroups.

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

47 { return theWgroups; }
ChannelContainer theWgroups
Definition: CSCWireHit.h:64
float CSCWireHit::wHitPos ( ) const
inline

The wire hit position expressed in terms of wire #.

Definition at line 37 of file CSCWireHit.h.

References theWireHitPosition.

Referenced by print().

37 { return theWireHitPosition; }
float theWireHitPosition
Definition: CSCWireHit.h:63

Member Data Documentation

short int CSCWireHit::theDeadWG
private

Definition at line 68 of file CSCWireHit.h.

Referenced by deadWG().

CSCDetId CSCWireHit::theDetId
private

Definition at line 62 of file CSCWireHit.h.

Referenced by cscDetId().

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

Definition at line 69 of file CSCWireHit.h.

Referenced by timeBinsOn().

ChannelContainer CSCWireHit::theWgroups
private

Definition at line 64 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroupsBXandWire().

ChannelContainer CSCWireHit::theWgroupsHighBits
private

BX and wire group number combined.

Definition at line 65 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroupsBX().

ChannelContainer CSCWireHit::theWgroupsLowBits
private

to extract BX

Definition at line 66 of file CSCWireHit.h.

Referenced by CSCWireHit(), and wgroups().

float CSCWireHit::theWireHitPosition
private

Definition at line 63 of file CSCWireHit.h.

Referenced by wHitPos().

int CSCWireHit::theWireHitTmax
private

to extract the wire group number

Definition at line 67 of file CSCWireHit.h.

Referenced by tmax().