CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTTTrigSyncFromDB Class Reference

#include <DTTTrigSyncFromDB.h>

Inheritance diagram for DTTTrigSyncFromDB:
DTTTrigBaseSync

Public Member Functions

 DTTTrigSyncFromDB (const edm::ParameterSet &config)
 Constructor. More...
 
virtual double emulatorOffset (const DTWireId &wireId, double &tTrig, double &t0cell)
 
virtual double offset (const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr)
 
double offset (const DTWireId &wireId)
 
virtual void setES (const edm::EventSetup &setup)
 Pass the Event Setup to the algo at each event. More...
 
virtual ~DTTTrigSyncFromDB ()
 Destructor. More...
 
- Public Member Functions inherited from DTTTrigBaseSync
 DTTTrigBaseSync ()
 Constructor. More...
 
virtual double emulatorOffset (const DTWireId &wireId)
 
double offset (const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globalPos)
 
virtual ~DTTTrigBaseSync ()
 Destructor. More...
 

Private Attributes

const bool debug
 
bool doT0Correction
 
bool doTOFCorrection
 
bool doWirePropCorrection
 
double theBXspace
 
int theTOFCorrType
 
std::string thetTrigLabel
 
double theVPropWire
 
int theWirePropCorrType
 
const DTTtrigtTrigMap
 
const DTT0tZeroMap
 

Detailed Description

Concrete implementation of a DTTTrigBaseSync. This class define the offset for RecHit building of data and simulation. The offset is computes as:
offset = t0 + tTrig + wirePropCorr - tofCorr
where:

The emulatorOffset is computed as:
offset = int(ttrig/BXspace)*BXspace + t0
where:

NOTE: this should approximate what is seen online by the BTI

Author
G. Cerminara - INFN Torino

Definition at line 54 of file DTTTrigSyncFromDB.h.

Constructor & Destructor Documentation

DTTTrigSyncFromDB::DTTTrigSyncFromDB ( const edm::ParameterSet config)

Constructor.

Definition at line 27 of file DTTTrigSyncFromDB.cc.

DTTTrigSyncFromDB::~DTTTrigSyncFromDB ( )
virtual

Destructor.

Definition at line 47 of file DTTTrigSyncFromDB.cc.

Member Function Documentation

double DTTTrigSyncFromDB::emulatorOffset ( const DTWireId wireId,
double &  tTrig,
double &  t0cell 
)
virtual

Time (ns) to be subtracted to the digi time for emulation purposes It does not take into account TOF and signal propagation along the wire It also returns the different contributions separately:

  • tTrig is the offset (t_trig)
  • t0cell is the t0 from pulses

Implements DTTTrigBaseSync.

Definition at line 201 of file DTTTrigSyncFromDB.cc.

double DTTTrigSyncFromDB::offset ( const DTLayer layer,
const DTWireId wireId,
const GlobalPoint globPos,
double &  tTrig,
double &  wirePropCorr,
double &  tofCorr 
)
virtual

Time (ns) to be subtracted to the digi time, Parameters are the layer and the wireId to which the digi is referred and the estimation of the 3D hit position (globPos)

Implements DTTTrigBaseSync.

Definition at line 73 of file DTTTrigSyncFromDB.cc.

double DTTTrigSyncFromDB::offset ( const DTWireId wireId)
virtual

Time (ns) to be subtracted to the digi time. It does not take into account TOF and signal propagation along the wire

Implements DTTTrigBaseSync.

Definition at line 170 of file DTTTrigSyncFromDB.cc.

void DTTTrigSyncFromDB::setES ( const edm::EventSetup setup)
virtual

Pass the Event Setup to the algo at each event.

Implements DTTTrigBaseSync.

Definition at line 51 of file DTTTrigSyncFromDB.cc.

Member Data Documentation

const bool DTTTrigSyncFromDB::debug
private

Definition at line 99 of file DTTTrigSyncFromDB.h.

bool DTTTrigSyncFromDB::doT0Correction
private

Definition at line 103 of file DTTTrigSyncFromDB.h.

bool DTTTrigSyncFromDB::doTOFCorrection
private

Definition at line 105 of file DTTTrigSyncFromDB.h.

bool DTTTrigSyncFromDB::doWirePropCorrection
private

Definition at line 108 of file DTTTrigSyncFromDB.h.

double DTTTrigSyncFromDB::theBXspace
private

Definition at line 111 of file DTTTrigSyncFromDB.h.

int DTTTrigSyncFromDB::theTOFCorrType
private

Definition at line 106 of file DTTTrigSyncFromDB.h.

std::string DTTTrigSyncFromDB::thetTrigLabel
private

Definition at line 113 of file DTTTrigSyncFromDB.h.

double DTTTrigSyncFromDB::theVPropWire
private

Definition at line 101 of file DTTTrigSyncFromDB.h.

int DTTTrigSyncFromDB::theWirePropCorrType
private

Definition at line 109 of file DTTTrigSyncFromDB.h.

const DTTtrig* DTTTrigSyncFromDB::tTrigMap
private

Definition at line 97 of file DTTTrigSyncFromDB.h.

const DTT0* DTTTrigSyncFromDB::tZeroMap
private

Definition at line 96 of file DTTTrigSyncFromDB.h.