test
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
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 bool debug
 
const DTT0tZeroMap
 

Detailed Description

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

Author
G. Cerminara - INFN Torino

Definition at line 24 of file DTTTrigSyncT0Only.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 23 of file DTTTrigSyncT0Only.cc.

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

Destructor.

Definition at line 30 of file DTTTrigSyncT0Only.cc.

30 {}

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 81 of file DTTTrigSyncT0Only.cc.

83  {
84  tTrig = 0.;
85  t0cell = 0.;
86  return 0.;
87 }
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 47 of file DTTTrigSyncT0Only.cc.

References gather_cfg::cout, and debug.

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

References DTT0::get(), DTTimeUnits::ns, and tZeroMap.

69  {
70  float t0 = 0;
71  float t0rms = 0;
72  tZeroMap->get(wireId,
73  t0,
74  t0rms,
76 
77  return t0;
78 }
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:67
void DTTTrigSyncT0Only::setES ( const edm::EventSetup setup)
virtual

Pass the Event Setup to the algo at each event.

Implements DTTTrigBaseSync.

Definition at line 34 of file DTTTrigSyncT0Only.cc.

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

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

Member Data Documentation

const bool DTTTrigSyncT0Only::debug
private
const DTT0* DTTTrigSyncT0Only::tZeroMap
private

Definition at line 60 of file DTTTrigSyncT0Only.h.

Referenced by offset(), and setES().