CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTSectCollThSegm Class Reference

#include <DTSectCollThSegm.h>

Inheritance diagram for DTSectCollThSegm:
DTTrigData

List of all members.

Public Member Functions

DTChamberId ChamberId () const
 Identifier of the associated chamber.
void clear ()
 Clear.
int code (const int i) const
 Return the code for a given set of 7 BTI.
 DTSectCollThSegm (DTSectCollId, int, const DTChambThSegm *)
 Constructor.
 DTSectCollThSegm (const DTSectCollThSegm &seg)
 Constructor.
DTSectCollThSegmoperator= (const DTSectCollThSegm &seg)
 Assignment operator.
int position (const int i) const
 Return the position for a given set of 7 BTI.
void print () const
 Print.
int quality (const int i) const
 Return the quality for a given set of 7 BTI.
DTSectCollId SCId () const
 Identifier of the associated chamber.
int step () const
 Return step number.
 ~DTSectCollThSegm ()
 Destructor.

Private Attributes

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

Detailed Description

Muon Sector Collector Trigger Theta candidate

Date:
2007/04/27 08:45:51
Revision:
1.3
Author:
C. Battilana

Definition at line 41 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.

                                                                       : 
  m_sectcollid(scid),  m_step(step), m_tsthetatrig(tstheta_seg) {
}
DTSectCollThSegm::DTSectCollThSegm ( const DTSectCollThSegm seg)

Constructor.

Definition at line 37 of file DTSectCollThSegm.cc.

DTSectCollThSegm::~DTSectCollThSegm ( )

Destructor.

Definition at line 44 of file DTSectCollThSegm.cc.

                                   {
}

Member Function Documentation

DTChamberId DTSectCollThSegm::ChamberId ( ) const [inline, virtual]

Identifier of the associated chamber.

Implements DTTrigData.

Definition at line 67 of file DTSectCollThSegm.h.

References DTChambThSegm::ChamberId(), and m_tsthetatrig.

{ return m_tsthetatrig->ChamberId(); }
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 73 of file DTSectCollThSegm.h.

References DTChambThSegm::code(), and m_tsthetatrig.

{ return m_tsthetatrig->code(i); } ;
DTSectCollThSegm & DTSectCollThSegm::operator= ( const DTSectCollThSegm seg)

Assignment operator.

Definition at line 52 of file DTSectCollThSegm.cc.

References m_sectcollid, m_step, and m_tsthetatrig.

                                                      {
  if(this != &seg){
    m_sectcollid = seg.m_sectcollid;
    m_step = seg.m_step;
    m_tsthetatrig = seg.m_tsthetatrig;
  }
  return *this;
}
int DTSectCollThSegm::position ( const int  i) const [inline]

Return the position for a given set of 7 BTI.

Definition at line 76 of file DTSectCollThSegm.h.

References m_tsthetatrig, and DTChambThSegm::position().

Referenced by print().

{ return m_tsthetatrig->position(i); } ;
void DTSectCollThSegm::print ( void  ) const [virtual]

Print.

Implements DTTrigData.

Definition at line 62 of file DTSectCollThSegm.cc.

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

                              {
  std::cout << "TP at step " << step() << ", in wheel " << wheel();
  std::cout << ", station " << station() << ", sector " << sector();
  std::cout << " : " << std::endl;
  std::cout << "  output codes : ";
  int i=0;
  for(i=0;i<7;i++){
    std::cout << (int)(position(i)+quality(i)) << " ";
  }
  std::cout << "\n";
  
}
int DTSectCollThSegm::quality ( const int  i) const [inline]

Return the quality for a given set of 7 BTI.

Definition at line 79 of file DTSectCollThSegm.h.

References m_tsthetatrig, and DTChambThSegm::quality().

Referenced by print().

{ return m_tsthetatrig->quality(i); };
DTSectCollId DTSectCollThSegm::SCId ( ) const [inline]

Identifier of the associated chamber.

Definition at line 64 of file DTSectCollThSegm.h.

References m_sectcollid.

{ return m_sectcollid; }
int DTSectCollThSegm::step ( ) const [inline]

Return step number.

Definition at line 61 of file DTSectCollThSegm.h.

References m_step.

Referenced by print().

{ return m_step; }

Member Data Documentation

parent sector collector

Definition at line 79 of file DTSectCollThSegm.h.

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

step number

Definition at line 87 of file DTSectCollThSegm.h.

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

the corresponding TS theta trigger

Definition at line 90 of file DTSectCollThSegm.h.

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