#include <CalibMuon/DTDigiSync/src/DTTTrigSyncT0Only.h>
Public Member Functions | |
DTTTrigSyncT0Only (const edm::ParameterSet &config) | |
Constructor. | |
virtual double | offset (const DTWireId &wireId) |
Time (ns) to be subtracted to the digi time. | |
virtual double | offset (const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr) |
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). | |
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 |
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().
00025 { 00026 debug = config.getUntrackedParameter<bool>("debug"); 00027 }
DTTTrigSyncT0Only::~DTTTrigSyncT0Only | ( | ) | [virtual] |
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 DTT0::cellT0(), DTTimeUnits::ns, and tZeroMap.
00070 { 00071 float t0 = 0; 00072 float t0rms = 0; 00073 tZeroMap->cellT0(wireId, 00074 t0, 00075 t0rms, 00076 DTTimeUnits::ns); 00077 00078 return t0; 00079 }
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 GenMuonPlsPt100GeV_cfg::cout, debug, and lat::endl().
00053 { 00054 tTrig = offset(wireId); 00055 wirePropCorr = 0; 00056 tofCorr = 0; 00057 00058 if(debug) { 00059 cout << "[DTTTrigSyncT0Only] Offset (ns): " << tTrig + wirePropCorr - tofCorr << endl 00060 << " various contributions are: " << endl 00061 //<< " tZero (ns): " << t0 << endl 00062 << " Propagation along wire delay (ns): " << wirePropCorr << endl 00063 << " TOF correction (ns): " << tofCorr << endl 00064 << endl; 00065 } 00066 //The global offset is the sum of various contributions 00067 return tTrig + wirePropCorr - tofCorr; 00068 }
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 GenMuonPlsPt100GeV_cfg::cout, debug, lat::endl(), edm::EventSetup::get(), and tZeroMap.
00035 { 00036 ESHandle<DTT0> t0; 00037 setup.get<DTT0Rcd>().get(t0); 00038 tZeroMap = &*t0; 00039 00040 if(debug) { 00041 cout << "[DTTTrigSyncT0Only] T0 version: " << t0->version() << endl; 00042 } 00043 }
bool DTTTrigSyncT0Only::debug [static, private] |
Definition at line 58 of file DTTTrigSyncT0Only.h.
Referenced by DTTTrigSyncT0Only(), offset(), and setES().
const DTT0* DTTTrigSyncT0Only::tZeroMap [private] |