1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#ifndef SiPixelMonitorRecHits_SiPixelRecHitSource_h
#define SiPixelMonitorRecHits_SiPixelRecHitSource_h
// -*- C++ -*-
//
// Package: SiPixelMonitorRecHits
// Class : SiPixelRecHitSource
//
/**
Description: header file for Pixel Monitor Rec Hits
Usage:
see description
*/
//
// Original Author: Vincenzo Chiochia
// Created:
//
// Updated by: Keith Rose
// for use in SiPixelMonitorRecHits
// Updated by: Lukas Wehrli
// for pixel offline DQM
#include <memory>
// user include files
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQM/SiPixelMonitorRecHit/interface/SiPixelRecHitModule.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include <cstdint>
class SiPixelRecHitSource : public DQMEDAnalyzer {
public:
explicit SiPixelRecHitSource(const edm::ParameterSet &conf);
~SiPixelRecHitSource() override;
// typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
void analyze(const edm::Event &, const edm::EventSetup &) override;
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
virtual void buildStructure(edm::EventSetup const &);
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
std::string topFolderName_;
private:
edm::ParameterSet conf_;
edm::EDGetTokenT<SiPixelRecHitCollection> src_;
edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> trackerTopoTokenBeginRun_;
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> trackerGeomTokenBeginRun_;
bool saveFile;
bool isPIB;
bool slowDown;
int eventNo;
std::map<uint32_t, SiPixelRecHitModule *> thePixelStructure;
std::map<uint32_t, int> rechit_count;
bool modOn;
bool twoDimOn;
bool reducedSet;
// barrel:
bool ladOn, layOn, phiOn;
// forward:
bool ringOn, bladeOn, diskOn;
bool firstRun;
bool isUpgrade;
};
#endif
|