CMS 3D CMS Logo

Public Member Functions | Private Attributes | Static Private Attributes

DTTTrigSyncT0Only Class Reference

#include <DTTTrigSyncT0Only.h>

Inheritance diagram for DTTTrigSyncT0Only:
DTTTrigBaseSync

List of all members.

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 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:
2009/10/21 17:05:47
Revision:
1.2
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().

                                                              {
  debug = config.getUntrackedParameter<bool>("debug");
}
DTTTrigSyncT0Only::~DTTTrigSyncT0Only ( ) [virtual]

Destructor.

Definition at line 31 of file DTTTrigSyncT0Only.cc.

{}

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.

                                                         {
  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().

                                                     {
  ESHandle<DTT0> t0;
  setup.get<DTT0Rcd>().get(t0);
  tZeroMap = &*t0;
  
  if(debug) {
    cout << "[DTTTrigSyncT0Only] T0 version: " << t0->version() << endl;
  }
}

Member Data Documentation

bool DTTTrigSyncT0Only::debug [static, private]

Definition at line 65 of file DTTTrigSyncT0Only.h.

Definition at line 62 of file DTTTrigSyncT0Only.h.