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/ESGetToken.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Utilities/interface/Transition.h"
#include "FWCore/Framework/interface/Run.h"
#include "DQMServices/Core/interface/DQMOneEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.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::DiamondShifts
 
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...
 
struct  CTPPSDiamondDQMSource::SectorPlots
 plots related to one sector 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_0__LINE__ ("CTPPSDiamondDQMSource")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< CTPPSDiamondDQMSource > > s_maker__LINE__ ("CTPPSDiamondDQMSource")
 

Function Documentation

◆ channelAlignedWithTrack()

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

Definition at line 49 of file CTPPSDiamondDQMSource.cc.

References relativeConstraints::geom, DetGeomDesc::getDiamondDimensions(), tolerance, DetGeomDesc::translation(), CTPPSTimingLocalTrack::x0(), CTPPSTimingLocalTrack::x0Sigma(), and DiamondDimensions::xHalfWidth.

Referenced by CTPPSDiamondDQMSource::analyze().

52  {
53  const DetGeomDesc* det = geom->sensor(detid);
54  const float x_pos = det->translation().x(),
55  x_width = 2.0 * det->getDiamondDimensions().xHalfWidth; // parameters stand for half the size
56  return ((x_pos + 0.5 * x_width > localTrack.x0() - localTrack.x0Sigma() - tolerance &&
57  x_pos + 0.5 * x_width < localTrack.x0() + localTrack.x0Sigma() + tolerance) ||
58  (x_pos - 0.5 * x_width > localTrack.x0() - localTrack.x0Sigma() - tolerance &&
59  x_pos - 0.5 * x_width < localTrack.x0() + localTrack.x0Sigma() + tolerance) ||
60  (x_pos - 0.5 * x_width < localTrack.x0() - localTrack.x0Sigma() - tolerance &&
61  x_pos + 0.5 * x_width > localTrack.x0() + localTrack.x0Sigma() + tolerance));
62 }
const Translation & translation() const
Definition: DetGeomDesc.h:80
const double tolerance
const DiamondDimensions & getDiamondDimensions() const
Definition: DetGeomDesc.h:90

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< CTPPSDiamondDQMSource > > s_filler_0__LINE__ ( "CTPPSDiamondDQMSource"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< CTPPSDiamondDQMSource > > s_maker__LINE__ ( "CTPPSDiamondDQMSource"  )
static