CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTSectCollThCand Class Reference

#include <DTSectCollThCand.h>

Public Member Functions

void clear ()
 Clear the trigger. More...
 
int CoarseSync () const
 Return the Coarse Sync Parameter. More...
 
DTConfigSectCollconfig () const
 Configuration set. More...
 
 DTSectCollThCand (DTSC *, const DTChambThSegm *)
 
 DTSectCollThCand ()
 Constructor. More...
 
 DTSectCollThCand (const DTSectCollThCand &tsccand)
 Constructor. More...
 
DTSectCollThCandoperator= (const DTSectCollThCand &tsccand)
 Assignment operator. More...
 
void print () const
 Print the trigger. More...
 
DTSCtsc () const
 Return the DTTSS. More...
 
const DTChambThSegmtsTr () const
 Return associated TSTheta trigger. More...
 
 ~DTSectCollThCand ()
 Destructor. More...
 

Private Attributes

DTSC_tsc
 
const DTChambThSegm_tstsegm
 

Detailed Description

DTSectCollThCand.h A Trigger Server Theta Candidate

Date:
2008/06/30 13:44:28

C. Battilana

Definition at line 32 of file DTSectCollThCand.h.

Constructor & Destructor Documentation

DTSectCollThCand::DTSectCollThCand ( DTSC tsc,
const DTChambThSegm tstsegm 
)

Definition at line 30 of file DTSectCollThCand.cc.

31  : _tsc(tsc), _tstsegm(tstsegm) {
32 }
const DTChambThSegm * _tstsegm
DTSectCollThCand::DTSectCollThCand ( )

Constructor.

Definition at line 35 of file DTSectCollThCand.cc.

35  {
36 
37 }
DTSectCollThCand::DTSectCollThCand ( const DTSectCollThCand tsccand)

Constructor.

DTSectCollThCand::~DTSectCollThCand ( )

Destructor.

Definition at line 42 of file DTSectCollThCand.cc.

42  {
43 }

Member Function Documentation

void DTSectCollThCand::clear ( void  )
inline

Clear the trigger.

Definition at line 60 of file DTSectCollThCand.cc.

References _tstsegm.

60  {
61  _tstsegm=0;
62 }
const DTChambThSegm * _tstsegm
int DTSectCollThCand::CoarseSync ( ) const

Return the Coarse Sync Parameter.

Definition at line 65 of file DTSectCollThCand.cc.

References _tstsegm, DTChambThSegm::ChamberId(), DTConfigSectColl::CoarseSync(), config(), gather_cfg::cout, and DTChamberId::station().

Referenced by print(), and DTSectColl::runSectColl().

65  {
66  int stat= _tstsegm->ChamberId().station();
67  if (stat>3){
68  std::cout << "DTSectCollThCand::CoarseSync: station number outside valid range: "
69  << stat << " 0 returned" << std::endl;
70  return 0;
71  }
72  return config()->CoarseSync(stat);
73 }
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const
Identifier of the associated chamber.
Definition: DTChambThSegm.h:65
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
DTConfigSectColl * config() const
Configuration set.
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:53
DTConfigSectColl* DTSectCollThCand::config ( void  ) const
inline

Configuration set.

Definition at line 58 of file DTSectCollThCand.h.

References _tsc, and DTSC::config().

Referenced by CoarseSync().

58 { return _tsc->config(); }
DTConfigSectColl * config() const
Configuration set.
Definition: DTSC.h:87
DTSectCollThCand & DTSectCollThCand::operator= ( const DTSectCollThCand tsccand)

Assignment operator.

Definition at line 51 of file DTSectCollThCand.cc.

References _tsc, and _tstsegm.

51  {
52  if(this != &tsccand){
53  _tsc = tsccand._tsc;
54  _tstsegm = tsccand._tstsegm;
55  }
56  return *this;
57 }
const DTChambThSegm * _tstsegm
void DTSectCollThCand::print ( void  ) const

Print the trigger.

Definition at line 76 of file DTSectCollThCand.cc.

References _tstsegm, CoarseSync(), gather_cfg::cout, DTChambThSegm::print(), and DTChambThSegm::step().

76  {
77  std::cout << "Sector Collector Theta Candidate: " << std::endl;
78  _tstsegm->print();
79  std::cout << "SC step: " << _tstsegm->step()+CoarseSync();
80  std::cout << std::endl;
81 
82  }
int CoarseSync() const
Return the Coarse Sync Parameter.
int step() const
Return step number.
Definition: DTChambThSegm.h:62
void print() const
Print.
const DTChambThSegm * _tstsegm
tuple cout
Definition: gather_cfg.py:121
DTSC* DTSectCollThCand::tsc ( ) const
inline

Return the DTTSS.

Definition at line 61 of file DTSectCollThCand.h.

References _tsc.

61 { return _tsc; }
const DTChambThSegm* DTSectCollThCand::tsTr ( ) const
inline

Return associated TSTheta trigger.

Definition at line 64 of file DTSectCollThCand.h.

References _tstsegm.

Referenced by DTSectColl::runSectColl().

64 { return _tstsegm; }
const DTChambThSegm * _tstsegm

Member Data Documentation

DTSC* DTSectCollThCand::_tsc
private

Definition at line 74 of file DTSectCollThCand.h.

Referenced by config(), operator=(), and tsc().

const DTChambThSegm* DTSectCollThCand::_tstsegm
private

Definition at line 75 of file DTSectCollThCand.h.

Referenced by clear(), CoarseSync(), operator=(), print(), and tsTr().