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 (const DTSectCollThSegm &seg)
 Constructor. More...
 
 DTSectCollThSegm (DTSectCollId, int, const DTChambThSegm *)
 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) {}

◆ DTSectCollThSegm() [2/2]

DTSectCollThSegm::DTSectCollThSegm ( const DTSectCollThSegm seg)

Constructor.

Definition at line 35 of file DTSectCollThSegm.cc.

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

62 { return m_tsthetatrig->ChamberId(); }

References DTChambThSegm::ChamberId(), and m_tsthetatrig.

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

68 { return m_tsthetatrig->code(i); };

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

◆ operator=()

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

Assignment operator.

Definition at line 47 of file DTSectCollThSegm.cc.

47  {
48  if (this != &seg) {
50  m_step = seg.m_step;
52  }
53  return *this;
54 }

References m_sectcollid, m_step, and m_tsthetatrig.

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

71 { return m_tsthetatrig->position(i); };

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

Referenced by print().

◆ print()

void DTSectCollThSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 56 of file DTSectCollThSegm.cc.

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 }

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

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

74 { return m_tsthetatrig->quality(i); };

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

Referenced by print().

◆ SCId()

DTSectCollId DTSectCollThSegm::SCId ( ) const
inline

Identifier of the associated chamber.

Definition at line 59 of file DTSectCollThSegm.h.

59 { return m_sectcollid; }

References m_sectcollid.

◆ step()

int DTSectCollThSegm::step ( ) const
inline

Return step number.

Definition at line 56 of file DTSectCollThSegm.h.

56 { return m_step; }

References m_step.

Referenced by print().

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

mps_fire.i
i
Definition: mps_fire.py:355
step
step
Definition: StallMonitor.cc:94
DTTrigData::sector
int sector() const
Return sector number.
Definition: DTTrigData.h:53
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTTrigData::station
int station() const
Return station number.
Definition: DTTrigData.h:50
DTChambThSegm::quality
int quality(const int i) const
Return the quality for a given set of 7 BTI.
Definition: DTChambThSegm.cc:88
DTSectCollThSegm::step
int step() const
Return step number.
Definition: DTSectCollThSegm.h:56
DTChambThSegm::code
int code(const int i) const
Return the code for a given set of 7 BTI.
Definition: DTChambThSegm.cc:70
DTSectCollThSegm::quality
int quality(const int i) const
Return the quality for a given set of 7 BTI.
Definition: DTSectCollThSegm.h:74
DTSectCollThSegm::m_step
myint8 m_step
step number
Definition: DTSectCollThSegm.h:81
DTSectCollThSegm::m_sectcollid
DTSectCollId m_sectcollid
parent sector collector
Definition: DTSectCollThSegm.h:74
createfilelist.int
int
Definition: createfilelist.py:10
DTSectCollThSegm::m_tsthetatrig
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
Definition: DTSectCollThSegm.h:84
DTChambThSegm::ChamberId
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
DTSectCollThSegm::position
int position(const int i) const
Return the position for a given set of 7 BTI.
Definition: DTSectCollThSegm.h:71
DTChambThSegm::position
int position(const int i) const
Return the position for a given set of 7 BTI.
Definition: DTChambThSegm.cc:79
DTTrigData::wheel
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47