CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 29 of file DTSectCollThCand.cc.

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

Constructor.

Definition at line 31 of file DTSectCollThCand.cc.

31 {}
DTSectCollThCand::DTSectCollThCand ( const DTSectCollThCand tsccand)

Constructor.

DTSectCollThCand::~DTSectCollThCand ( )

Destructor.

Definition at line 36 of file DTSectCollThCand.cc.

36 {}

Member Function Documentation

void DTSectCollThCand::clear ( void  )
inline

Clear the trigger.

Definition at line 50 of file DTSectCollThCand.cc.

References _tstsegm.

50 { _tstsegm = nullptr; }
const DTChambThSegm * _tstsegm
int DTSectCollThCand::CoarseSync ( ) const

Return the Coarse Sync Parameter.

Definition at line 52 of file DTSectCollThCand.cc.

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

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

52  {
53  int stat = _tstsegm->ChamberId().station();
54  if (stat > 3) {
55  std::cout << "DTSectCollThCand::CoarseSync: station number outside valid range: " << stat << " 0 returned"
56  << std::endl;
57  return 0;
58  }
59  return config()->CoarseSync(stat);
60 }
const DTConfigSectColl * config() const
Configuration set.
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
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:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
const DTConfigSectColl* DTSectCollThCand::config ( void  ) const
inline

Configuration set.

Definition at line 55 of file DTSectCollThCand.h.

References _tsc, and DTSC::config().

Referenced by CoarseSync(), and zMuMuValidation.ZMuMuValidation::trackcollection().

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

Assignment operator.

Definition at line 42 of file DTSectCollThCand.cc.

References _tsc, and _tstsegm.

42  {
43  if (this != &tsccand) {
44  _tsc = tsccand._tsc;
45  _tstsegm = tsccand._tstsegm;
46  }
47  return *this;
48 }
const DTChambThSegm * _tstsegm
void DTSectCollThCand::print ( void  ) const

Print the trigger.

Definition at line 62 of file DTSectCollThCand.cc.

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

62  {
63  std::cout << "Sector Collector Theta Candidate: " << std::endl;
64  _tstsegm->print();
65  std::cout << "SC step: " << _tstsegm->step() + CoarseSync();
66  std::cout << std::endl;
67 }
int CoarseSync() const
Return the Coarse Sync Parameter.
int step() const
Return step number.
Definition: DTChambThSegm.h:57
const DTChambThSegm * _tstsegm
void print() const override
Print.
tuple cout
Definition: gather_cfg.py:144
DTSC* DTSectCollThCand::tsc ( ) const
inline

Return the DTTSS.

Definition at line 58 of file DTSectCollThCand.h.

References _tsc.

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

Return associated TSTheta trigger.

Definition at line 61 of file DTSectCollThCand.h.

References _tstsegm.

Referenced by DTSectColl::runSectColl().

61 { return _tstsegm; }
const DTChambThSegm * _tstsegm

Member Data Documentation

DTSC* DTSectCollThCand::_tsc
private

Definition at line 70 of file DTSectCollThCand.h.

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

const DTChambThSegm* DTSectCollThCand::_tstsegm
private

Definition at line 71 of file DTSectCollThCand.h.

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