#include <DTTTrigSyncT0Only.h>
Public Member Functions | |
DTTTrigSyncT0Only (const edm::ParameterSet &config) | |
Constructor. | |
virtual double | emulatorOffset (const DTWireId &wireId, double &tTrig, double &t0cell) |
virtual double | offset (const DTWireId &wireId) |
virtual double | offset (const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr) |
virtual void | setES (const edm::EventSetup &setup) |
Pass the Event Setup to the algo at each event. | |
virtual | ~DTTTrigSyncT0Only () |
Destructor. | |
Private Attributes | |
const DTT0 * | tZeroMap |
Static Private Attributes | |
static bool | debug |
Concrete implementation of a DTTTrigBaseSync. This plugin reads only the t0 from pulses from the DB.
Definition at line 26 of file DTTTrigSyncT0Only.h.
DTTTrigSyncT0Only::DTTTrigSyncT0Only | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 25 of file DTTTrigSyncT0Only.cc.
References debug, and edm::ParameterSet::getUntrackedParameter().
{ debug = config.getUntrackedParameter<bool>("debug"); }
DTTTrigSyncT0Only::~DTTTrigSyncT0Only | ( | ) | [virtual] |
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.
{
tTrig = 0.;
t0cell = 0.;
return 0.;
}
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().
{ tTrig = offset(wireId); wirePropCorr = 0; tofCorr = 0; if(debug) { cout << "[DTTTrigSyncT0Only] Offset (ns): " << tTrig + wirePropCorr - tofCorr << endl << " various contributions are: " << endl //<< " tZero (ns): " << t0 << endl << " Propagation along wire delay (ns): " << wirePropCorr << endl << " TOF correction (ns): " << tofCorr << endl << endl; } //The global offset is the sum of various contributions return tTrig + wirePropCorr - tofCorr; }
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.
{ float t0 = 0; float t0rms = 0; tZeroMap->get(wireId, t0, t0rms, DTTimeUnits::ns); return t0; }
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().
bool DTTTrigSyncT0Only::debug [static, private] |
Definition at line 65 of file DTTTrigSyncT0Only.h.
const DTT0* DTTTrigSyncT0Only::tZeroMap [private] |
Definition at line 62 of file DTTTrigSyncT0Only.h.