CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
SiPixelPhase1TrackClustersV Class Reference

#include <SiPixelPhase1TrackClustersV.h>

Inheritance diagram for SiPixelPhase1TrackClustersV:
SiPixelPhase1Base DQMEDAnalyzer HistogramManagerHolder edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 SiPixelPhase1TrackClustersV (const edm::ParameterSet &conf)
 
- Public Member Functions inherited from SiPixelPhase1Base
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &) override
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
 ~SiPixelPhase1Base () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
 

Private Types

enum  { CHARGE, SIZE_X, SIZE_Y }
 

Private Attributes

edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
 
edm::EDGetTokenT< reco::TrackCollectiontracksToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Types inherited from SiPixelPhase1Base
enum  { DCS }
 
- Protected Member Functions inherited from SiPixelPhase1Base
bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &, const unsigned trgidx) const
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 
- Protected Attributes inherited from HistogramManagerHolder
GeometryInterface geometryInterface
 
std::vector< HistogramManagerhisto
 

Detailed Description

Definition at line 16 of file SiPixelPhase1TrackClustersV.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
CHARGE 
SIZE_X 
SIZE_Y 

Definition at line 17 of file SiPixelPhase1TrackClustersV.h.

17  {
18  CHARGE,
19  SIZE_X,
20  SIZE_Y,
21  };

Constructor & Destructor Documentation

◆ SiPixelPhase1TrackClustersV()

SiPixelPhase1TrackClustersV::SiPixelPhase1TrackClustersV ( const edm::ParameterSet conf)
explicit

Definition at line 25 of file SiPixelPhase1TrackClustersV.cc.

26  : SiPixelPhase1Base(iConfig) {
27  clustersToken_ = consumes<edmNew::DetSetVector<SiPixelCluster>>(iConfig.getParameter<edm::InputTag>("clusters"));
28  tracksToken_ = consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracks"));
29 }

References clustersToken_, edm::ParameterSet::getParameter(), and tracksToken_.

Member Function Documentation

◆ analyze()

void SiPixelPhase1TrackClustersV::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements SiPixelPhase1Base.

Definition at line 31 of file SiPixelPhase1TrackClustersV.cc.

31  {
32  // get geometry
35  assert(tracker.isValid());
36 
37  // get the map
39  iEvent.getByToken(tracksToken_, tracks);
40 
41  // get clusters
43  iEvent.getByToken(clustersToken_, clusterColl);
44 
46  for (it = clusterColl->begin(); it != clusterColl->end(); ++it) {
47  auto id = DetId(it->detId());
48 
49  for (auto subit = it->begin(); subit != it->end(); ++subit) {
50  SiPixelCluster const &cluster = *subit;
51 
52  histo[CHARGE].fill(double(cluster.charge()), id, &iEvent);
53  histo[SIZE_X].fill(double(cluster.sizeX()), id, &iEvent);
54  histo[SIZE_Y].fill(double(cluster.sizeY()), id, &iEvent);
55  }
56  }
57 }

References cms::cuda::assert(), edmNew::DetSetVector< T >::begin(), CHARGE, SiPixelCluster::charge(), clustersToken_, edmNew::DetSetVector< T >::end(), edm::EventSetup::get(), get, HistogramManagerHolder::histo, iEvent, SIZE_X, SIZE_Y, SiPixelCluster::sizeX(), SiPixelCluster::sizeY(), PbPb_ZMuSkimMuonDPG_cff::tracker, PDWG_EXOHSCP_cff::tracks, and tracksToken_.

Member Data Documentation

◆ clustersToken_

edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > SiPixelPhase1TrackClustersV::clustersToken_
private

Definition at line 28 of file SiPixelPhase1TrackClustersV.h.

Referenced by analyze(), and SiPixelPhase1TrackClustersV().

◆ tracksToken_

edm::EDGetTokenT<reco::TrackCollection> SiPixelPhase1TrackClustersV::tracksToken_
private

Definition at line 29 of file SiPixelPhase1TrackClustersV.h.

Referenced by analyze(), and SiPixelPhase1TrackClustersV().

PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
edmNew::DetSetVector::const_iterator
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetSetVectorNew.h:231
cms::cuda::assert
assert(be >=bs)
HistogramManagerHolder::histo
std::vector< HistogramManager > histo
Definition: SiPixelPhase1Base.h:37
edmNew::DetSetVector::begin
const_iterator begin(bool update=false) const
Definition: DetSetVectorNew.h:572
SiPixelCluster
Pixel cluster – collection of neighboring pixels above threshold.
Definition: SiPixelCluster.h:27
edm::Handle< reco::TrackCollection >
SiPixelPhase1TrackClustersV::tracksToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
Definition: SiPixelPhase1TrackClustersV.h:29
SiPixelPhase1Base::SiPixelPhase1Base
SiPixelPhase1Base(const edm::ParameterSet &iConfig)
Definition: SiPixelPhase1Base.cc:14
SiPixelPhase1TrackClustersV::clustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
Definition: SiPixelPhase1TrackClustersV.h:28
DetId
Definition: DetId.h:17
SiPixelCluster::sizeY
int sizeY() const
Definition: SiPixelCluster.h:128
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
edm::ESHandle< TrackerGeometry >
PbPb_ZMuSkimMuonDPG_cff.tracker
tracker
Definition: PbPb_ZMuSkimMuonDPG_cff.py:60
SiPixelPhase1TrackClustersV::CHARGE
Definition: SiPixelPhase1TrackClustersV.h:18
SiPixelPhase1TrackClustersV::SIZE_X
Definition: SiPixelPhase1TrackClustersV.h:19
iEvent
int iEvent
Definition: GenABIO.cc:224
get
#define get
edmNew::DetSetVector::end
const_iterator end(bool update=false) const
Definition: DetSetVectorNew.h:577
SiPixelCluster::charge
int charge() const
Definition: SiPixelCluster.h:130
SiPixelPhase1TrackClustersV::SIZE_Y
Definition: SiPixelPhase1TrackClustersV.h:20
SiPixelCluster::sizeX
int sizeX() const
Definition: SiPixelCluster.h:125
edm::InputTag
Definition: InputTag.h:15