CMS 3D CMS Logo

DTSCTrigUnit Class Reference

Muon Barrel Sector Collector Trigger Unit (Chamber trigger). More...

#include <L1Trigger/DTSectorCollector/interface/DTSCTrigUnit.h>

List of all members.

Public Member Functions

DTBtiCardBtiTrigs () const
 Return container of BTI triggers.
GlobalVector CMSDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in CMS frame.
GlobalPoint CMSPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in CMS frame.
 DTSCTrigUnit (DTChamber *stat, DTTTrigBaseSync *sync)
 Constructor.
void dumpGeom () const
 Dump the geometry.
DTTrigGeomgeom () const
 The associated geometry.
DTGeomSupplierGeomSupplier (const DTTrigData *trig) const
 Return the appropriate coordinate supplier.
LocalVector localDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in chamber frame.
LocalPoint localPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in chamber frame.
int nDTBtiChip ()
 Number of active DTBtiChips.
int nDTTracoChip ()
 Number of active DTTracoChips.
int nPhiSegm (int step)
 Number of Phi segments for a given step.
int nThetaSegm (int step)
 Number of theta segments for a given step.
const DTChambPhSegmphiSegment (int step, int n)
 Return output segments, phi view.
void print (DTTrigData *trig) const
 Print a trigger-data object.
int sector () const
 Return sector number.
void setConfig (const DTConfigManager *conf)
 Set configuration.
void setGeom (const DTChamber *stat)
 Set geometry.
const DTChamberstat () const
 The associated chamber.
DTChamberId statId () const
 Identifier of the associated chamber.
int station () const
 Return station number.
const DTChambThSegmthetaSegment (int step, int n)
 Return output segments, theta view.
DTTracoCardTracoTrigs () const
 Return container of TRACO triggers.
DTTSPhiTSPhTrigs () const
 Return the chamber Trigger Server (Phi).
DTTSThetaTSThTrigs () const
 Return the chamber Trigger Server (Theta).
int wheel () const
 Return wheel number.
 ~DTSCTrigUnit ()
 Destructor.

Private Attributes

DTTrigGeom_geom
DTBtiCard_theBTIs
DTTracoCard_theTRACOs
DTTSPhi_theTSPhi
DTTSTheta_theTSTheta


Detailed Description

Muon Barrel Sector Collector Trigger Unit (Chamber trigger).

Date
2008/09/05 16:03:44
Revision
1.8

Author:
C.Grandi, S. Marcellini

Definition at line 55 of file DTSCTrigUnit.h.


Constructor & Destructor Documentation

DTSCTrigUnit::DTSCTrigUnit ( DTChamber stat,
DTTTrigBaseSync sync 
)

Constructor.

Definition at line 36 of file DTSCTrigUnit.cc.

References _geom, _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, and DTChamber::id().

00036                                                                  {
00037 
00038   DTChamberId chambid = stat->id();
00039   // bool geom_debug = conf_manager->getDTConfigTrigUnit(chambid)->debug();
00040 
00041   // create the geometry from the station
00042   //_geom = new DTTrigGeom(stat, geom_debug);
00043   _geom = new DTTrigGeom(stat, false); // CB FIXME: update when debug will be read via PSet
00044 
00045   // create BTI
00046   _theBTIs = new DTBtiCard(_geom, sync);
00047 
00048   // create TSTheta
00049   _theTSTheta = new DTTSTheta(_geom, _theBTIs);
00050 
00051   // create TRACO
00052   _theTRACOs = new DTTracoCard(_geom, _theBTIs, _theTSTheta);
00053 
00054   // create TSPhi
00055   _theTSPhi = new DTTSPhi(_geom, _theTRACOs);
00056 
00057 }

DTSCTrigUnit::~DTSCTrigUnit (  ) 

Destructor.

Definition at line 63 of file DTSCTrigUnit.cc.

References _geom, _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.

00063                            {
00064   delete _theBTIs;
00065   delete _theTRACOs;
00066   delete _theTSPhi;
00067   delete _theTSTheta;
00068   delete _geom;
00069 }


Member Function Documentation

DTBtiCard* DTSCTrigUnit::BtiTrigs (  )  const [inline]

Return container of BTI triggers.

Definition at line 91 of file DTSCTrigUnit.h.

References _theBTIs.

Referenced by DTTrig::BtiTrigs(), and DTTrig::triggerReco().

00091 { return _theBTIs; }

GlobalVector DTSCTrigUnit::CMSDirection ( const DTTrigData trig  )  const [inline]

Direction of a trigger-data object in CMS frame.

Definition at line 121 of file DTSCTrigUnit.h.

References DTGeomSupplier::CMSDirection(), and GeomSupplier().

00121                                                                    {
00122       return GeomSupplier(trig)->CMSDirection(trig);
00123     }

GlobalPoint DTSCTrigUnit::CMSPosition ( const DTTrigData trig  )  const [inline]

Coordinate of a trigger-data object in CMS frame.

Definition at line 111 of file DTSCTrigUnit.h.

References DTGeomSupplier::CMSPosition(), and GeomSupplier().

00111                                                                  {
00112       return GeomSupplier(trig)->CMSPosition(trig);
00113     }

void DTSCTrigUnit::dumpGeom (  )  const [inline]

Dump the geometry.

Definition at line 131 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpGeom().

00131 { _geom->dumpGeom(); }

DTTrigGeom* DTSCTrigUnit::geom (  )  const [inline]

The associated geometry.

Definition at line 67 of file DTSCTrigUnit.h.

References _geom.

00067 { return _geom; }

DTGeomSupplier * DTSCTrigUnit::GeomSupplier ( const DTTrigData trig  )  const

Return the appropriate coordinate supplier.

Definition at line 72 of file DTSCTrigUnit.cc.

References _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.

Referenced by CMSDirection(), CMSPosition(), localDirection(), localPosition(), and print().

00072                                                        {
00073     //@@ patch for Sun 4.2 compiler
00074     DTTrigData* tr = const_cast<DTTrigData*>(trig);
00075     if(dynamic_cast<DTBtiTrigData*>(tr))return _theBTIs;
00076     if(dynamic_cast<DTTracoTrigData*>(tr))return _theTRACOs;
00077     if(dynamic_cast<DTChambPhSegm*>(tr))return _theTSPhi;
00078     if(dynamic_cast<DTChambThSegm*>(tr))return _theTSTheta;
00079     //    if(dynamic_cast<const DTBtiTrigData*>(trig))return _theBTIs;
00080     //    if(dynamic_cast<const DTTracoTrigData*>(trig))return _theTRACOs;
00081     //    if(dynamic_cast<const DTChambPhSegm*>(trig))return _theTSPhi;
00082     //    if(dynamic_cast<const DTChambThSegm*>(trig))return _theTSTheta;
00083     return 0;
00084   }

LocalVector DTSCTrigUnit::localDirection ( const DTTrigData trig  )  const [inline]

Direction of a trigger-data object in chamber frame.

Definition at line 116 of file DTSCTrigUnit.h.

References GeomSupplier(), and DTGeomSupplier::localDirection().

00116                                                                     {
00117       return GeomSupplier(trig)->localDirection(trig);
00118     }

LocalPoint DTSCTrigUnit::localPosition ( const DTTrigData trig  )  const [inline]

Coordinate of a trigger-data object in chamber frame.

Definition at line 106 of file DTSCTrigUnit.h.

References GeomSupplier(), and DTGeomSupplier::localPosition().

00106                                                                   {
00107       return GeomSupplier(trig)->localPosition(trig);
00108     }

int DTSCTrigUnit::nDTBtiChip (  )  [inline]

Number of active DTBtiChips.

Definition at line 134 of file DTSCTrigUnit.h.

References _theBTIs, and DTCache< T, Coll >::size().

00134 { return _theBTIs->size(); }

int DTSCTrigUnit::nDTTracoChip (  )  [inline]

Number of active DTTracoChips.

Definition at line 137 of file DTSCTrigUnit.h.

References _theTRACOs, and DTCache< T, Coll >::size().

00137 { return _theTRACOs->size(); }

int DTSCTrigUnit::nPhiSegm ( int  step  )  [inline]

Number of Phi segments for a given step.

Definition at line 140 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::nSegm().

Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().

00140 { return _theTSPhi->nSegm(step); }

int DTSCTrigUnit::nThetaSegm ( int  step  )  [inline]

Number of theta segments for a given step.

Definition at line 149 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::nSegm().

Referenced by DTTrig::chThetaSegm().

00149 { return _theTSTheta->nSegm(step); }

const DTChambPhSegm* DTSCTrigUnit::phiSegment ( int  step,
int  n 
) [inline]

Return output segments, phi view.

Definition at line 144 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::segment().

Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().

00144                                                      { 
00145       return _theTSPhi->segment(step, n); 
00146     }

void DTSCTrigUnit::print ( DTTrigData trig  )  const [inline]

Print a trigger-data object.

Definition at line 126 of file DTSCTrigUnit.h.

References GeomSupplier(), and DTGeomSupplier::print().

00126                                               {
00127       GeomSupplier(trig)->print(trig);
00128     }

int DTSCTrigUnit::sector ( void   )  const [inline]

Return sector number.

Definition at line 88 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::sector().

Referenced by DTSectColl::addTU().

00088 { return _geom->sector(); }

void DTSCTrigUnit::setConfig ( const DTConfigManager conf  ) 

Set configuration.

Definition at line 86 of file DTSCTrigUnit.cc.

References _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, DTTracoCard::setConfig(), DTTSTheta::setConfig(), DTTSPhi::setConfig(), and DTBtiCard::setConfig().

00086                                                        {
00087 
00088   _theBTIs->setConfig(conf);
00089   _theTSTheta->setConfig(conf);
00090   _theTRACOs->setConfig(conf);
00091   _theTSPhi->setConfig(conf);
00092 
00093 }  

void DTSCTrigUnit::setGeom ( const DTChamber stat  )  [inline]

Set geometry.

Definition at line 70 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::setGeom().

00070 { _geom->setGeom(stat); }

const DTChamber* DTSCTrigUnit::stat (  )  const [inline]

The associated chamber.

Definition at line 76 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::stat().

00076 { return _geom->stat(); }

DTChamberId DTSCTrigUnit::statId (  )  const [inline]

Identifier of the associated chamber.

Definition at line 79 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::statId().

Referenced by DTTrig::triggerReco().

00079 { return _geom->statId(); }

int DTSCTrigUnit::station (  )  const [inline]

Return station number.

Definition at line 85 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::station().

Referenced by DTSectColl::addTU().

00085 { return _geom->station(); }

const DTChambThSegm* DTSCTrigUnit::thetaSegment ( int  step,
int  n 
) [inline]

Return output segments, theta view.

Definition at line 152 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::segment().

Referenced by DTTrig::chThetaSegm().

00152                                                        { 
00153       return _theTSTheta->segment(step, n); 
00154     }

DTTracoCard* DTSCTrigUnit::TracoTrigs (  )  const [inline]

Return container of TRACO triggers.

Definition at line 94 of file DTSCTrigUnit.h.

References _theTRACOs.

Referenced by DTTrig::TracoTrigs(), and DTTrig::triggerReco().

00094 { return  _theTRACOs; }

DTTSPhi* DTSCTrigUnit::TSPhTrigs (  )  const [inline]

Return the chamber Trigger Server (Phi).

Definition at line 97 of file DTSCTrigUnit.h.

References _theTSPhi.

Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSPhTrigs().

00097 { return _theTSPhi; }

DTTSTheta* DTSCTrigUnit::TSThTrigs (  )  const [inline]

Return the chamber Trigger Server (Theta).

Definition at line 100 of file DTSCTrigUnit.h.

References _theTSTheta.

Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSThTrigs().

00100 { return _theTSTheta; }

int DTSCTrigUnit::wheel (  )  const [inline]

Return wheel number.

Definition at line 82 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::wheel().

Referenced by DTSectColl::addTU().

00082 { return _geom->wheel(); }


Member Data Documentation

DTTrigGeom* DTSCTrigUnit::_geom [private]

Definition at line 158 of file DTSCTrigUnit.h.

Referenced by DTSCTrigUnit(), dumpGeom(), geom(), sector(), setGeom(), stat(), statId(), station(), wheel(), and ~DTSCTrigUnit().

DTBtiCard* DTSCTrigUnit::_theBTIs [private]

Definition at line 161 of file DTSCTrigUnit.h.

Referenced by BtiTrigs(), DTSCTrigUnit(), GeomSupplier(), nDTBtiChip(), setConfig(), and ~DTSCTrigUnit().

DTTracoCard* DTSCTrigUnit::_theTRACOs [private]

Definition at line 162 of file DTSCTrigUnit.h.

Referenced by DTSCTrigUnit(), GeomSupplier(), nDTTracoChip(), setConfig(), TracoTrigs(), and ~DTSCTrigUnit().

DTTSPhi* DTSCTrigUnit::_theTSPhi [private]

Definition at line 163 of file DTSCTrigUnit.h.

Referenced by DTSCTrigUnit(), GeomSupplier(), nPhiSegm(), phiSegment(), setConfig(), TSPhTrigs(), and ~DTSCTrigUnit().

DTTSTheta* DTSCTrigUnit::_theTSTheta [private]

Definition at line 164 of file DTSCTrigUnit.h.

Referenced by DTSCTrigUnit(), GeomSupplier(), nThetaSegm(), setConfig(), thetaSegment(), TSThTrigs(), and ~DTSCTrigUnit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:03 2009 for CMSSW by  doxygen 1.5.4