-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
SiPixelClusterSource.h
111 lines (88 loc) · 3.44 KB
/
SiPixelClusterSource.h
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#ifndef SiPixelMonitorCluster_SiPixelClusterSource_h
#define SiPixelMonitorCluster_SiPixelClusterSource_h
// -*- C++ -*-
//
// Package: SiPixelMonitorCluster
// Class : SiPixelClusterSource
//
/*
Description: <one line class summary>
Usage:
<usage>
*/
//
// Original Author: Vincenzo Chiochia & Andrew York
//
// Updated by: Lukas Wehrli
// for pixel offline DQM
// Created:
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQM/SiPixelMonitorCluster/interface/SiPixelClusterModule.h"
#include "DataFormats/Common/interface/DetSetVectorNew.h"
#include "DataFormats/SiPixelDigi/interface/PixelDigi.h"
#include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <boost/cstdint.hpp>
#include "Geometry/CommonTopologies/interface/PixelTopology.h"
#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h"
#include "Geometry/CommonDetUnit/interface/GeomDetType.h"
#include "Geometry/CommonDetUnit/interface/GeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/GluedGeomDet.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetType.h"
class SiPixelClusterSource : public DQMEDAnalyzer {
public:
explicit SiPixelClusterSource(const edm::ParameterSet& conf);
~SiPixelClusterSource();
typedef edmNew::DetSet<SiPixelCluster>::const_iterator ClusterIterator;
virtual void analyze(const edm::Event&, const edm::EventSetup&);
virtual void dqmBeginRun(const edm::Run&, edm::EventSetup const&) ;
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, 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::InputTag src_;
bool saveFile;
bool isPIB;
bool slowDown;
int eventNo;
std::map<uint32_t,SiPixelClusterModule*> thePixelStructure;
bool modOn;
bool twoDimOn;
bool reducedSet;
//barrel:
bool ladOn, layOn, phiOn;
//forward:
bool ringOn, bladeOn, diskOn;
bool smileyOn; //cluster sizeY vs Cluster eta plot
bool firstRun;
int lumSec;
int nLumiSecs;
int nBigEvents;
MonitorElement* bigFpixClusterEventRate;
int bigEventSize;
bool isUpgrade;
std::vector<MonitorElement*> meClPosLayer;
std::vector<MonitorElement*> meClPosDiskpz;
std::vector<MonitorElement*> meClPosDiskmz;
int noOfLayers;
int noOfDisks;
//define Token(-s)
edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > srcToken_;
};
#endif