CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTSectCollThCand Class Reference

#include <DTSectCollThCand.h>

List of all members.

Public Member Functions

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

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.

  : _tsc(tsc), _tstsegm(tstsegm) {
}
DTSectCollThCand::DTSectCollThCand ( )

Constructor.

Definition at line 35 of file DTSectCollThCand.cc.

                                   {
 
}
DTSectCollThCand::DTSectCollThCand ( const DTSectCollThCand tsccand)

Constructor.

DTSectCollThCand::~DTSectCollThCand ( )

Destructor.

Definition at line 42 of file DTSectCollThCand.cc.

                                   {
}

Member Function Documentation

void DTSectCollThCand::clear ( void  ) [inline]

Clear the trigger.

Definition at line 60 of file DTSectCollThCand.cc.

References _tstsegm.

                         { 
  _tstsegm=0; 
}
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().

                                  {
  int stat= _tstsegm->ChamberId().station();
  if (stat>3){
    std::cout << "DTSectCollThCand::CoarseSync: station number outside valid range: " 
              << stat << " 0 returned" << std::endl;
    return 0;
  }
    return config()->CoarseSync(stat);
}
DTConfigSectColl* DTSectCollThCand::config ( void  ) const [inline]

Configuration set.

Definition at line 58 of file DTSectCollThCand.h.

References _tsc, and DTSC::config().

Referenced by CoarseSync().

{ return _tsc->config(); }
DTSectCollThCand & DTSectCollThCand::operator= ( const DTSectCollThCand tsccand)

Assignment operator.

Definition at line 51 of file DTSectCollThCand.cc.

References _tsc, and _tstsegm.

                                                           {
  if(this != &tsccand){
    _tsc = tsccand._tsc;
    _tstsegm = tsccand._tstsegm;
  }
  return *this;
}
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().

                                {
    std::cout << "Sector Collector Theta Candidate: " << std::endl;
    _tstsegm->print();
    std::cout << "SC step: " << _tstsegm->step()+CoarseSync();
    std::cout << std::endl;

  }
DTSC* DTSectCollThCand::tsc ( ) const [inline]

Return the DTTSS.

Definition at line 61 of file DTSectCollThCand.h.

References _tsc.

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

{ return _tstsegm; }

Member Data Documentation

Definition at line 74 of file DTSectCollThCand.h.

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

Definition at line 75 of file DTSectCollThCand.h.

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