CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTSectCollThSegm Class Reference

#include <DTSectCollThSegm.h>

Inheritance diagram for DTSectCollThSegm:
DTTrigData

Public Member Functions

DTChamberId ChamberId () const override
 Identifier of the associated chamber. More...
 
void clear ()
 Clear. More...
 
int code (const int i) const
 Return the code for a given set of 7 BTI. More...
 
 DTSectCollThSegm (DTSectCollId, int, const DTChambThSegm *)
 Constructor. More...
 
 DTSectCollThSegm (const DTSectCollThSegm &seg)
 Constructor. More...
 
DTSectCollThSegmoperator= (const DTSectCollThSegm &seg)
 Assignment operator. More...
 
int position (const int i) const
 Return the position for a given set of 7 BTI. More...
 
void print () const override
 Print. More...
 
int quality (const int i) const
 Return the quality for a given set of 7 BTI. More...
 
DTSectCollId SCId () const
 Identifier of the associated chamber. More...
 
int step () const
 Return step number. More...
 
 ~DTSectCollThSegm () override
 Destructor. More...
 
- Public Member Functions inherited from DTTrigData
 DTTrigData ()
 Constructor. More...
 
int sector () const
 Return sector number. More...
 
int station () const
 Return station number. More...
 
int wheel () const
 Return wheel number. More...
 
virtual ~DTTrigData ()
 Destructor. More...
 

Private Attributes

DTSectCollId m_sectcollid
 parent sector collector More...
 
myint8 m_step
 step number More...
 
const DTChambThSegmm_tsthetatrig
 the corresponding TS theta trigger More...
 

Detailed Description

Muon Sector Collector Trigger Theta candidate

Author
C. Battilana

Definition at line 38 of file DTSectCollThSegm.h.

Constructor & Destructor Documentation

◆ DTSectCollThSegm() [1/2]

DTSectCollThSegm::DTSectCollThSegm ( DTSectCollId  scid,
int  step,
const DTChambThSegm tstheta_seg 
)

Constructor.

Definition at line 32 of file DTSectCollThSegm.cc.

33  : m_sectcollid(scid), m_step(step), m_tsthetatrig(tstheta_seg) {}
myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
step
Definition: StallMonitor.cc:98

◆ DTSectCollThSegm() [2/2]

DTSectCollThSegm::DTSectCollThSegm ( const DTSectCollThSegm seg)

Constructor.

Definition at line 35 of file DTSectCollThSegm.cc.

myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger

◆ ~DTSectCollThSegm()

DTSectCollThSegm::~DTSectCollThSegm ( )
override

Destructor.

Definition at line 41 of file DTSectCollThSegm.cc.

41 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTSectCollThSegm::ChamberId ( ) const
inlineoverridevirtual

Identifier of the associated chamber.

Implements DTTrigData.

Definition at line 62 of file DTSectCollThSegm.h.

References DTChambThSegm::ChamberId(), and m_tsthetatrig.

62 { return m_tsthetatrig->ChamberId(); }
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger

◆ clear()

void DTSectCollThSegm::clear ( )

Clear.

◆ code()

int DTSectCollThSegm::code ( const int  i) const
inline

Return the code for a given set of 7 BTI.

Definition at line 68 of file DTSectCollThSegm.h.

References DTChambThSegm::code(), mps_fire::i, and m_tsthetatrig.

68 { return m_tsthetatrig->code(i); };
int code(const int i) const
Return the code for a given set of 7 BTI.
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger

◆ operator=()

DTSectCollThSegm & DTSectCollThSegm::operator= ( const DTSectCollThSegm seg)

Assignment operator.

Definition at line 47 of file DTSectCollThSegm.cc.

References m_sectcollid, m_step, and m_tsthetatrig.

47  {
48  if (this != &seg) {
50  m_step = seg.m_step;
52  }
53  return *this;
54 }
myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger

◆ position()

int DTSectCollThSegm::position ( const int  i) const
inline

Return the position for a given set of 7 BTI.

Definition at line 71 of file DTSectCollThSegm.h.

References mps_fire::i, m_tsthetatrig, and DTChambThSegm::position().

Referenced by print().

71 { return m_tsthetatrig->position(i); };
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
int position(const int i) const
Return the position for a given set of 7 BTI.

◆ print()

void DTSectCollThSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 56 of file DTSectCollThSegm.cc.

References gather_cfg::cout, mps_fire::i, createfilelist::int, position(), quality(), DTTrigData::sector(), DTTrigData::station(), step(), and DTTrigData::wheel().

56  {
57  std::cout << "TP at step " << step() << ", in wheel " << wheel();
58  std::cout << ", station " << station() << ", sector " << sector();
59  std::cout << " : " << std::endl;
60  std::cout << " output codes : ";
61  int i = 0;
62  for (i = 0; i < 7; i++) {
63  std::cout << (int)(position(i) + quality(i)) << " ";
64  }
65  std::cout << "\n";
66 }
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
int sector() const
Return sector number.
Definition: DTTrigData.h:53
int step() const
Return step number.
int station() const
Return station number.
Definition: DTTrigData.h:50
int quality(const int i) const
Return the quality for a given set of 7 BTI.
int position(const int i) const
Return the position for a given set of 7 BTI.

◆ quality()

int DTSectCollThSegm::quality ( const int  i) const
inline

Return the quality for a given set of 7 BTI.

Definition at line 74 of file DTSectCollThSegm.h.

References mps_fire::i, m_tsthetatrig, and DTChambThSegm::quality().

Referenced by print().

74 { return m_tsthetatrig->quality(i); };
int quality(const int i) const
Return the quality for a given set of 7 BTI.
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger

◆ SCId()

DTSectCollId DTSectCollThSegm::SCId ( ) const
inline

Identifier of the associated chamber.

Definition at line 59 of file DTSectCollThSegm.h.

References m_sectcollid.

59 { return m_sectcollid; }
DTSectCollId m_sectcollid
parent sector collector

◆ step()

int DTSectCollThSegm::step ( ) const
inline

Return step number.

Definition at line 56 of file DTSectCollThSegm.h.

References m_step.

Referenced by print().

56 { return m_step; }
myint8 m_step
step number

Member Data Documentation

◆ m_sectcollid

DTSectCollId DTSectCollThSegm::m_sectcollid
private

parent sector collector

Definition at line 74 of file DTSectCollThSegm.h.

Referenced by operator=(), and SCId().

◆ m_step

myint8 DTSectCollThSegm::m_step
private

step number

Definition at line 81 of file DTSectCollThSegm.h.

Referenced by operator=(), and step().

◆ m_tsthetatrig

const DTChambThSegm* DTSectCollThSegm::m_tsthetatrig
private

the corresponding TS theta trigger

Definition at line 84 of file DTSectCollThSegm.h.

Referenced by ChamberId(), code(), operator=(), position(), and quality().