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 39 of file DTSectCollThSegm.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 32 of file DTSectCollThSegm.cc.

33  :
34  m_sectcollid(scid), m_step(step), m_tsthetatrig(tstheta_seg) {
35 }
myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
step
DTSectCollThSegm::DTSectCollThSegm ( const DTSectCollThSegm seg)

Constructor.

Definition at line 37 of file DTSectCollThSegm.cc.

37  :
39 }
myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
DTSectCollThSegm::~DTSectCollThSegm ( )
override

Destructor.

Definition at line 44 of file DTSectCollThSegm.cc.

44  {
45 }

Member Function Documentation

DTChamberId DTSectCollThSegm::ChamberId ( ) const
inlineoverridevirtual

Identifier of the associated chamber.

Implements DTTrigData.

Definition at line 65 of file DTSectCollThSegm.h.

References DTChambThSegm::ChamberId(), m_tsthetatrig, and print().

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

Clear.

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

Return the code for a given set of 7 BTI.

Definition at line 71 of file DTSectCollThSegm.h.

References DTChambThSegm::code(), and m_tsthetatrig.

71 { return m_tsthetatrig->code(i); } ;
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
int code(const int i) const
Return the code for a given set of 7 BTI.
DTSectCollThSegm & DTSectCollThSegm::operator= ( const DTSectCollThSegm seg)

Assignment operator.

Definition at line 52 of file DTSectCollThSegm.cc.

References m_sectcollid, m_step, and m_tsthetatrig.

52  {
53  if(this != &seg){
55  m_step = seg.m_step;
57  }
58  return *this;
59 }
myint8 m_step
step number
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
int DTSectCollThSegm::position ( const int  i) const
inline

Return the position for a given set of 7 BTI.

Definition at line 74 of file DTSectCollThSegm.h.

References m_tsthetatrig, and DTChambThSegm::position().

Referenced by print().

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

Print.

Implements DTTrigData.

Definition at line 62 of file DTSectCollThSegm.cc.

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

Referenced by ChamberId().

62  {
63  std::cout << "TP at step " << step() << ", in wheel " << wheel();
64  std::cout << ", station " << station() << ", sector " << sector();
65  std::cout << " : " << std::endl;
66  std::cout << " output codes : ";
67  int i=0;
68  for(i=0;i<7;i++){
69  std::cout << (int)(position(i)+quality(i)) << " ";
70  }
71  std::cout << "\n";
72 
73 }
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.
int wheel() const
Return wheel number.
Definition: DTTrigData.h:48
int step() const
Return step number.
int sector() const
Return sector number.
Definition: DTTrigData.h:54
int station() const
Return station number.
Definition: DTTrigData.h:51
int DTSectCollThSegm::quality ( const int  i) const
inline

Return the quality for a given set of 7 BTI.

Definition at line 77 of file DTSectCollThSegm.h.

References m_sectcollid, m_tsthetatrig, and DTChambThSegm::quality().

Referenced by print().

77 { 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
DTSectCollId DTSectCollThSegm::SCId ( ) const
inline

Identifier of the associated chamber.

Definition at line 62 of file DTSectCollThSegm.h.

References m_sectcollid.

62 { return m_sectcollid; }
DTSectCollId m_sectcollid
parent sector collector
int DTSectCollThSegm::step ( ) const
inline

Return step number.

Definition at line 59 of file DTSectCollThSegm.h.

References m_step.

Referenced by print().

59 { return m_step; }
myint8 m_step
step number

Member Data Documentation

DTSectCollId DTSectCollThSegm::m_sectcollid
private

parent sector collector

Definition at line 77 of file DTSectCollThSegm.h.

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

myint8 DTSectCollThSegm::m_step
private

step number

Definition at line 85 of file DTSectCollThSegm.h.

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

const DTChambThSegm* DTSectCollThSegm::m_tsthetatrig
private

the corresponding TS theta trigger

Definition at line 88 of file DTSectCollThSegm.h.

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