CMS 3D CMS Logo

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() [1/3]

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

Definition at line 29 of file DTSectCollThCand.cc.

29 : _tsc(tsc), _tstsegm(tstsegm) {}
DTSC * tsc() const
Return the DTTSS.
const DTChambThSegm * _tstsegm

◆ DTSectCollThCand() [2/3]

DTSectCollThCand::DTSectCollThCand ( )

Constructor.

Definition at line 31 of file DTSectCollThCand.cc.

31 {}

◆ DTSectCollThCand() [3/3]

DTSectCollThCand::DTSectCollThCand ( const DTSectCollThCand tsccand)

Constructor.

◆ ~DTSectCollThCand()

DTSectCollThCand::~DTSectCollThCand ( )

Destructor.

Definition at line 36 of file DTSectCollThCand.cc.

36 {}

Member Function Documentation

◆ clear()

void DTSectCollThCand::clear ( void  )
inline

Clear the trigger.

Definition at line 50 of file DTSectCollThCand.cc.

References _tstsegm.

50 { _tstsegm = nullptr; }
const DTChambThSegm * _tstsegm

◆ CoarseSync()

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, and DTChamberId::station().

Referenced by print().

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 }
int station() const
Return the station number.
Definition: DTChamberId.h:42
const DTConfigSectColl * config() const
Configuration set.
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60

◆ config()

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().

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

◆ operator=()

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

◆ print()

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 step() const
Return step number.
Definition: DTChambThSegm.h:57
int CoarseSync() const
Return the Coarse Sync Parameter.
const DTChambThSegm * _tstsegm
void print() const override
Print.

◆ tsc()

DTSC* DTSectCollThCand::tsc ( ) const
inline

Return the DTTSS.

Definition at line 58 of file DTSectCollThCand.h.

References _tsc.

58 { return _tsc; }

◆ tsTr()

const DTChambThSegm* DTSectCollThCand::tsTr ( ) const
inline

Return associated TSTheta trigger.

Definition at line 61 of file DTSectCollThCand.h.

References _tstsegm.

61 { return _tstsegm; }
const DTChambThSegm * _tstsegm

Member Data Documentation

◆ _tsc

DTSC* DTSectCollThCand::_tsc
private

Definition at line 70 of file DTSectCollThCand.h.

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

◆ _tstsegm

const DTChambThSegm* DTSectCollThCand::_tstsegm
private

Definition at line 71 of file DTSectCollThCand.h.

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