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

C. Battilana

Definition at line 31 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 DTConfigSectColl * config() const
Configuration set.
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const
Identifier of the associated chamber.
Definition: DTChambThSegm.h:63
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
const DTConfigSectColl* DTSectCollThCand::config ( void  ) const
inline

Configuration set.

Definition at line 57 of file DTSectCollThCand.h.

References _tsc, and DTSC::config().

Referenced by CoarseSync().

57 { return _tsc->config(); }
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSC.h:86
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:60
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 60 of file DTSectCollThCand.h.

References _tsc.

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

Return associated TSTheta trigger.

Definition at line 63 of file DTSectCollThCand.h.

References _tstsegm.

Referenced by DTSectColl::runSectColl().

63 { return _tstsegm; }
const DTChambThSegm * _tstsegm

Member Data Documentation

DTSC* DTSectCollThCand::_tsc
private

Definition at line 73 of file DTSectCollThCand.h.

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

const DTChambThSegm* DTSectCollThCand::_tstsegm
private

Definition at line 74 of file DTSectCollThCand.h.

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