CMS 3D CMS Logo

Classes | 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  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...
 

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 45 of file CTPPSDiamondDQMSource.cc.

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

Referenced by CTPPSDiamondDQMSource::analyze().

45  {
46  const DetGeomDesc* det = geom->getSensor( detid );
47  const float x_pos = det->translation().x(),
48  x_width = 2.0 * det->params().at( 0 ); // parameters stand for half the size
49  return
50  ( ( x_pos + 0.5 * x_width > localTrack.getX0() - localTrack.getX0Sigma() - tolerance
51  && 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 }
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:37
DDTranslation translation() const
Definition: DetGeomDesc.h:84
std::vector< double > params() const
Definition: DetGeomDesc.h:89
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