CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTSCTrigUnit Class Reference

#include <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)
 Constructor.
void dumpGeom () const
 Dump the geometry.
void dumpLUT (short int btic) const
 Dump the Lut file.
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:
2010/11/11 16:28:21
Revision:
1.10
Author:
C.Grandi, S. Marcellini

Definition at line 54 of file DTSCTrigUnit.h.


Constructor & Destructor Documentation

DTSCTrigUnit::DTSCTrigUnit ( DTChamber stat)

Constructor.

Definition at line 35 of file DTSCTrigUnit.cc.

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

                                          {

  DTChamberId chambid = stat->id();
  // bool geom_debug = conf_manager->getDTConfigTrigUnit(chambid)->debug();

  // create the geometry from the station
  //_geom = new DTTrigGeom(stat, geom_debug);
  _geom = new DTTrigGeom(stat, false); // CB FIXME: update when debug will be read via PSet

  // create BTI
  _theBTIs = new DTBtiCard(_geom);

  // create TSTheta
  _theTSTheta = new DTTSTheta(_geom, _theBTIs);

  // create TRACO
  _theTRACOs = new DTTracoCard(_geom, _theBTIs, _theTSTheta);

  // create TSPhi
  _theTSPhi = new DTTSPhi(_geom, _theTRACOs);

}
DTSCTrigUnit::~DTSCTrigUnit ( )

Destructor.

Definition at line 62 of file DTSCTrigUnit.cc.

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

                           {
  delete _theBTIs;
  delete _theTRACOs;
  delete _theTSPhi;
  delete _theTSTheta;
  delete _geom;
}

Member Function Documentation

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

Return container of BTI triggers.

Definition at line 90 of file DTSCTrigUnit.h.

References _theBTIs.

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

{ return _theBTIs; }
GlobalVector DTSCTrigUnit::CMSDirection ( const DTTrigData trig) const [inline]

Direction of a trigger-data object in CMS frame.

Definition at line 120 of file DTSCTrigUnit.h.

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

                                                                   {
      return GeomSupplier(trig)->CMSDirection(trig);
    }
GlobalPoint DTSCTrigUnit::CMSPosition ( const DTTrigData trig) const [inline]

Coordinate of a trigger-data object in CMS frame.

Definition at line 110 of file DTSCTrigUnit.h.

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

                                                                 {
      return GeomSupplier(trig)->CMSPosition(trig);
    }
void DTSCTrigUnit::dumpGeom ( ) const [inline]

Dump the geometry.

Definition at line 130 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpGeom().

{ _geom->dumpGeom(); }
void DTSCTrigUnit::dumpLUT ( short int  btic) const [inline]

Dump the Lut file.

Definition at line 133 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpLUT().

Referenced by DTTrig::dumpLuts().

{ _geom->dumpLUT(btic); }
DTTrigGeom* DTSCTrigUnit::geom ( ) const [inline]

The associated geometry.

Definition at line 66 of file DTSCTrigUnit.h.

References _geom.

{ return _geom; }
DTGeomSupplier * DTSCTrigUnit::GeomSupplier ( const DTTrigData trig) const

Return the appropriate coordinate supplier.

Definition at line 71 of file DTSCTrigUnit.cc.

References _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.

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

                                                       {
    //@@ patch for Sun 4.2 compiler
    DTTrigData* tr = const_cast<DTTrigData*>(trig);
    if(dynamic_cast<DTBtiTrigData*>(tr))return _theBTIs;
    if(dynamic_cast<DTTracoTrigData*>(tr))return _theTRACOs;
    if(dynamic_cast<DTChambPhSegm*>(tr))return _theTSPhi;
    if(dynamic_cast<DTChambThSegm*>(tr))return _theTSTheta;
    //    if(dynamic_cast<const DTBtiTrigData*>(trig))return _theBTIs;
    //    if(dynamic_cast<const DTTracoTrigData*>(trig))return _theTRACOs;
    //    if(dynamic_cast<const DTChambPhSegm*>(trig))return _theTSPhi;
    //    if(dynamic_cast<const DTChambThSegm*>(trig))return _theTSTheta;
    return 0;
  }
LocalVector DTSCTrigUnit::localDirection ( const DTTrigData trig) const [inline]

Direction of a trigger-data object in chamber frame.

Definition at line 115 of file DTSCTrigUnit.h.

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

                                                                    {
      return GeomSupplier(trig)->localDirection(trig);
    }
LocalPoint DTSCTrigUnit::localPosition ( const DTTrigData trig) const [inline]

Coordinate of a trigger-data object in chamber frame.

Definition at line 105 of file DTSCTrigUnit.h.

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

                                                                  {
      return GeomSupplier(trig)->localPosition(trig);
    }
int DTSCTrigUnit::nDTBtiChip ( ) [inline]

Number of active DTBtiChips.

Definition at line 136 of file DTSCTrigUnit.h.

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

{ return _theBTIs->size(); }
int DTSCTrigUnit::nDTTracoChip ( ) [inline]

Number of active DTTracoChips.

Definition at line 139 of file DTSCTrigUnit.h.

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

{ return _theTRACOs->size(); }
int DTSCTrigUnit::nPhiSegm ( int  step) [inline]

Number of Phi segments for a given step.

Definition at line 142 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::nSegm().

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

{ return _theTSPhi->nSegm(step); }
int DTSCTrigUnit::nThetaSegm ( int  step) [inline]

Number of theta segments for a given step.

Definition at line 151 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::nSegm().

Referenced by DTTrig::chThetaSegm().

{ return _theTSTheta->nSegm(step); }
const DTChambPhSegm* DTSCTrigUnit::phiSegment ( int  step,
int  n 
) [inline]

Return output segments, phi view.

Definition at line 146 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::segment().

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

                                                     { 
      return _theTSPhi->segment(step, n); 
    }
void DTSCTrigUnit::print ( DTTrigData trig) const [inline]

Print a trigger-data object.

Definition at line 125 of file DTSCTrigUnit.h.

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

                                              {
      GeomSupplier(trig)->print(trig);
    }
int DTSCTrigUnit::sector ( void  ) const [inline]

Return sector number.

Definition at line 87 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::sector().

Referenced by DTSectColl::addTU().

{ return _geom->sector(); }
void DTSCTrigUnit::setConfig ( const DTConfigManager conf)
void DTSCTrigUnit::setGeom ( const DTChamber stat) [inline]

Set geometry.

Definition at line 69 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::setGeom().

{ _geom->setGeom(stat); }
const DTChamber* DTSCTrigUnit::stat ( ) const [inline]

The associated chamber.

Definition at line 75 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::stat().

{ return _geom->stat(); }
DTChamberId DTSCTrigUnit::statId ( ) const [inline]

Identifier of the associated chamber.

Definition at line 78 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::statId().

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

{ return _geom->statId(); }
int DTSCTrigUnit::station ( ) const [inline]

Return station number.

Definition at line 84 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::station().

Referenced by DTSectColl::addTU().

{ return _geom->station(); }
const DTChambThSegm* DTSCTrigUnit::thetaSegment ( int  step,
int  n 
) [inline]

Return output segments, theta view.

Definition at line 154 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::segment().

Referenced by DTTrig::chThetaSegm().

                                                       { 
      return _theTSTheta->segment(step, n); 
    }
DTTracoCard* DTSCTrigUnit::TracoTrigs ( ) const [inline]

Return container of TRACO triggers.

Definition at line 93 of file DTSCTrigUnit.h.

References _theTRACOs.

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

{ return  _theTRACOs; }
DTTSPhi* DTSCTrigUnit::TSPhTrigs ( ) const [inline]

Return the chamber Trigger Server (Phi)

Definition at line 96 of file DTSCTrigUnit.h.

References _theTSPhi.

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

{ return _theTSPhi; }
DTTSTheta* DTSCTrigUnit::TSThTrigs ( ) const [inline]

Return the chamber Trigger Server (Theta)

Definition at line 99 of file DTSCTrigUnit.h.

References _theTSTheta.

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

{ return _theTSTheta; }
int DTSCTrigUnit::wheel ( ) const [inline]

Return wheel number.

Definition at line 81 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::wheel().

Referenced by DTSectColl::addTU().

{ return _geom->wheel(); }

Member Data Documentation