CMS 3D CMS Logo

Classes | Namespaces | Functions
CTPPSDiamondDQMSource.cc File Reference
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Framework/interface/Run.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DataFormats/Provenance/interface/EventRange.h"
#include "DataFormats/CTPPSDigi/interface/TotemVFATStatus.h"
#include "DataFormats/CTPPSDigi/interface/TotemFEDInfo.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/CTPPSDetId/interface/CTPPSDiamondDetId.h"
#include "DataFormats/CTPPSDigi/interface/CTPPSDiamondDigi.h"
#include "DataFormats/CTPPSReco/interface/CTPPSPixelLocalTrack.h"
#include "DataFormats/CTPPSDetId/interface/CTPPSPixelDetId.h"
#include "DataFormats/CTPPSReco/interface/CTPPSDiamondRecHit.h"
#include "DataFormats/CTPPSReco/interface/CTPPSDiamondLocalTrack.h"
#include "Geometry/VeryForwardGeometryBuilder/interface/CTPPSGeometry.h"
#include "Geometry/Records/interface/VeryForwardRealGeometryRecord.h"
#include <string>

Go to the source code of this file.

Classes

struct  dds::Cache
 
struct  CTPPSDiamondDQMSource::ChannelPlots
 plots related to one Diamond channel More...
 
class  CTPPSDiamondDQMSource
 
struct  CTPPSDiamondDQMSource::GlobalPlots
 plots related to the whole system More...
 
struct  CTPPSDiamondDQMSource::PlanePlots
 plots related to one Diamond plane More...
 
struct  CTPPSDiamondDQMSource::PotPlots
 plots related to one Diamond detector package More...
 

Namespaces

 dds
 

Functions

bool channelAlignedWithTrack (const CTPPSGeometry *geom, const CTPPSDiamondDetId &detid, const CTPPSDiamondLocalTrack &localTrack, const float tolerance=1)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< CTPPSDiamondDQMSource > > s_filler__LINE__ ("CTPPSDiamondDQMSource")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< CTPPSDiamondDQMSource > > s_maker__LINE__ ("CTPPSDiamondDQMSource")
 

Function Documentation

bool channelAlignedWithTrack ( const CTPPSGeometry geom,
const CTPPSDiamondDetId detid,
const CTPPSDiamondLocalTrack localTrack,
const float  tolerance = 1 
)

Definition at line 44 of file CTPPSDiamondDQMSource.cc.

References CTPPSGeometry::getSensor(), CTPPSTimingLocalTrack::getX0(), CTPPSTimingLocalTrack::getX0Sigma(), DetGeomDesc::params(), tolerance, and DetGeomDesc::translation().

Referenced by CTPPSDiamondDQMSource::analyze().

47  {
48  const DetGeomDesc* det = geom->getSensor(detid);
49  const float x_pos = det->translation().x(),
50  x_width = 2.0 * det->params().at(0); // parameters stand for half the size
51  return ((x_pos + 0.5 * x_width > localTrack.getX0() - localTrack.getX0Sigma() - tolerance &&
52  x_pos + 0.5 * x_width < localTrack.getX0() + localTrack.getX0Sigma() + tolerance) ||
53  (x_pos - 0.5 * x_width > localTrack.getX0() - localTrack.getX0Sigma() - tolerance &&
54  x_pos - 0.5 * x_width < localTrack.getX0() + localTrack.getX0Sigma() + tolerance) ||
55  (x_pos - 0.5 * x_width < localTrack.getX0() - localTrack.getX0Sigma() - tolerance &&
56  x_pos + 0.5 * x_width > localTrack.getX0() + localTrack.getX0Sigma() + tolerance));
57 }
Translation translation() const
Definition: DetGeomDesc.h:66
const double tolerance
const DetGeomDesc * getSensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
Geometrical description of a sensor.
Definition: DetGeomDesc.h:35
std::vector< double > params() const
Definition: DetGeomDesc.h:68
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< CTPPSDiamondDQMSource > > s_filler__LINE__ ( "CTPPSDiamondDQMSource"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< CTPPSDiamondDQMSource > > s_maker__LINE__ ( "CTPPSDiamondDQMSource"  )
static