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::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

◆ channelAlignedWithTrack()

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

Definition at line 44 of file CTPPSDiamondDQMSource.cc.

48  {
49  const DetGeomDesc* det = geom->sensor(detid);
50  const float x_pos = det->translation().x(),
51  x_width = 2.0 * det->getDiamondDimensions().xHalfWidth; // parameters stand for half the size
52  return ((x_pos + 0.5 * x_width > localTrack.x0() - localTrack.x0Sigma() - tolerance &&
53  x_pos + 0.5 * x_width < localTrack.x0() + localTrack.x0Sigma() + tolerance) ||
54  (x_pos - 0.5 * x_width > localTrack.x0() - localTrack.x0Sigma() - tolerance &&
55  x_pos - 0.5 * x_width < localTrack.x0() + localTrack.x0Sigma() + tolerance) ||
56  (x_pos - 0.5 * x_width < localTrack.x0() - localTrack.x0Sigma() - tolerance &&
57  x_pos + 0.5 * x_width > localTrack.x0() + localTrack.x0Sigma() + tolerance));

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

Referenced by CTPPSDiamondDQMSource::analyze().

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< CTPPSDiamondDQMSource > > s_maker__LINE__ ( "CTPPSDiamondDQMSource"  )
static
DetGeomDesc::translation
const Translation & translation() const
Definition: DetGeomDesc.h:73
DetGeomDesc::getDiamondDimensions
const DiamondDimensions & getDiamondDimensions() const
Definition: DetGeomDesc.h:82
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
DiamondDimensions::xHalfWidth
double xHalfWidth
Definition: DetGeomDesc.h:44
DetGeomDesc
Definition: DetGeomDesc.h:49
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:26
CTPPSTimingLocalTrack::x0
float x0() const
Definition: CTPPSTimingLocalTrack.h:37
CTPPSTimingLocalTrack::x0Sigma
float x0Sigma() const
Definition: CTPPSTimingLocalTrack.h:38