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 ()
 Constructor. More...
 
 DTSectCollThCand (const DTSectCollThCand &tsccand)
 Constructor. More...
 
 DTSectCollThCand (DTSC *, const DTChambThSegm *)
 
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

\Class DTSectCollThCand.h A Trigger Server Theta Candidate

\Author 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) {}

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

50 { _tstsegm = nullptr; }

References _tstsegm.

◆ CoarseSync()

int DTSectCollThCand::CoarseSync ( ) const

Return the Coarse Sync Parameter.

Definition at line 52 of file DTSectCollThCand.cc.

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 }

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

Referenced by print().

◆ config()

const DTConfigSectColl* DTSectCollThCand::config ( void  ) const
inline

Configuration set.

Definition at line 55 of file DTSectCollThCand.h.

55 { return _tsc->config(); }

References _tsc, and DTSC::config().

Referenced by CoarseSync().

◆ operator=()

DTSectCollThCand & DTSectCollThCand::operator= ( const DTSectCollThCand tsccand)

Assignment operator.

Definition at line 42 of file DTSectCollThCand.cc.

42  {
43  if (this != &tsccand) {
44  _tsc = tsccand._tsc;
45  _tstsegm = tsccand._tstsegm;
46  }
47  return *this;
48 }

References _tsc, and _tstsegm.

◆ print()

void DTSectCollThCand::print ( void  ) const

Print the trigger.

Definition at line 62 of file DTSectCollThCand.cc.

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 }

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

◆ tsc()

DTSC* DTSectCollThCand::tsc ( ) const
inline

Return the DTTSS.

Definition at line 58 of file DTSectCollThCand.h.

58 { return _tsc; }

References _tsc.

◆ tsTr()

const DTChambThSegm* DTSectCollThCand::tsTr ( ) const
inline

Return associated TSTheta trigger.

Definition at line 61 of file DTSectCollThCand.h.

61 { return _tstsegm; }

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

DTConfigSectColl::CoarseSync
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station)
Definition: DTConfigSectColl.h:67
DTSectCollThCand::CoarseSync
int CoarseSync() const
Return the Coarse Sync Parameter.
Definition: DTSectCollThCand.cc:52
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTChambThSegm::step
int step() const
Return step number.
Definition: DTChambThSegm.h:57
DTSectCollThCand::_tsc
DTSC * _tsc
Definition: DTSectCollThCand.h:70
DTSectCollThCand::config
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSectCollThCand.h:55
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1111
DTSectCollThCand::tsc
DTSC * tsc() const
Return the DTTSS.
Definition: DTSectCollThCand.h:58
DTChambThSegm::print
void print() const override
Print.
Definition: DTChambThSegm.cc:97
DTSC::config
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSC.h:82
DTSectCollThCand::_tstsegm
const DTChambThSegm * _tstsegm
Definition: DTSectCollThCand.h:71
DTChambThSegm::ChamberId
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42