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 | Static Private Attributes
DTTTrigSyncT0Only Class Reference

#include <DTTTrigSyncT0Only.h>

Inheritance diagram for DTTTrigSyncT0Only:
DTTTrigBaseSync

Public Member Functions

 DTTTrigSyncT0Only (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)
 
virtual double offset (const DTWireId &wireId)
 
virtual void setES (const edm::EventSetup &setup)
 Pass the Event Setup to the algo at each event. More...
 
virtual ~DTTTrigSyncT0Only ()
 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 DTT0tZeroMap
 

Static Private Attributes

static bool debug
 

Detailed Description

Concrete implementation of a DTTTrigBaseSync. This plugin reads only the t0 from pulses from the DB.

Date:
2007/02/19 11:45:21
Revision:
1.1
Author
G. Cerminara - INFN Torino

Definition at line 26 of file DTTTrigSyncT0Only.h.

Constructor & Destructor Documentation

DTTTrigSyncT0Only::DTTTrigSyncT0Only ( const edm::ParameterSet config)

Constructor.

Definition at line 25 of file DTTTrigSyncT0Only.cc.

References debug, and edm::ParameterSet::getUntrackedParameter().

25  {
26  debug = config.getUntrackedParameter<bool>("debug");
27 }
T getUntrackedParameter(std::string const &, T const &) const
DTTTrigSyncT0Only::~DTTTrigSyncT0Only ( )
virtual

Destructor.

Definition at line 31 of file DTTTrigSyncT0Only.cc.

31 {}

Member Function Documentation

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

Time (ns) to be subtracted to the digi time for emulation purposes Returns just 0 in this implementation of the plugin

Implements DTTTrigBaseSync.

Definition at line 86 of file DTTTrigSyncT0Only.cc.

88  {
89  tTrig = 0.;
90  t0cell = 0.;
91  return 0.;
92 }
double DTTTrigSyncT0Only::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 48 of file DTTTrigSyncT0Only.cc.

References gather_cfg::cout, debug, and evf::evtn::offset().

53  {
54  tTrig = offset(wireId);
55  wirePropCorr = 0;
56  tofCorr = 0;
57 
58  if(debug) {
59  cout << "[DTTTrigSyncT0Only] Offset (ns): " << tTrig + wirePropCorr - tofCorr << endl
60  << " various contributions are: " << endl
61  //<< " tZero (ns): " << t0 << endl
62  << " Propagation along wire delay (ns): " << wirePropCorr << endl
63  << " TOF correction (ns): " << tofCorr << endl
64  << endl;
65  }
66  //The global offset is the sum of various contributions
67  return tTrig + wirePropCorr - tofCorr;
68 }
virtual double offset(const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr)
tuple cout
Definition: gather_cfg.py:41
double DTTTrigSyncT0Only::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 70 of file DTTTrigSyncT0Only.cc.

References DTTimeUnits::ns.

70  {
71  float t0 = 0;
72  float t0rms = 0;
73  tZeroMap->get(wireId,
74  t0,
75  t0rms,
77 
78  return t0;
79 }
const DTT0 * tZeroMap
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
Definition: DTT0.cc:94
void DTTTrigSyncT0Only::setES ( const edm::EventSetup setup)
virtual

Pass the Event Setup to the algo at each event.

Implements DTTTrigBaseSync.

Definition at line 35 of file DTTTrigSyncT0Only.cc.

References gather_cfg::cout, debug, and edm::EventSetup::get().

35  {
36  ESHandle<DTT0> t0;
37  setup.get<DTT0Rcd>().get(t0);
38  tZeroMap = &*t0;
39 
40  if(debug) {
41  cout << "[DTTTrigSyncT0Only] T0 version: " << t0->version() << endl;
42  }
43 }
const DTT0 * tZeroMap
const T & get() const
Definition: EventSetup.h:55
Definition: DTT0Rcd.h:9
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

bool DTTTrigSyncT0Only::debug
staticprivate

Definition at line 65 of file DTTTrigSyncT0Only.h.

const DTT0* DTTTrigSyncT0Only::tZeroMap
private

Definition at line 62 of file DTTTrigSyncT0Only.h.