-
Notifications
You must be signed in to change notification settings - Fork 0
/
SiPixelBadModuleByHandBuilder.h
45 lines (34 loc) · 1.32 KB
/
SiPixelBadModuleByHandBuilder.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
#ifndef SiPixelBadModuleByHandBuilder_H
#define SiPixelBadModuleByHandBuilder_H
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelQuality.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include <vector>
#include <ext/hash_map>
class SiPixelBadModuleByHandBuilder : public ConditionDBWriter<SiPixelQuality> {
public:
explicit SiPixelBadModuleByHandBuilder(const edm::ParameterSet&);
~SiPixelBadModuleByHandBuilder();
private:
SiPixelQuality* getNewObject();
void algoBeginJob(const edm::EventSetup& es) {
edm::ESHandle<TrackerTopology> htopo;
es.get<TrackerTopologyRcd>().get(htopo);
tTopo_ = htopo.product();
};
private:
bool printdebug_;
typedef std::vector< edm::ParameterSet > Parameters;
Parameters BadModuleList_;
std::string ROCListFile_;
const TrackerTopology* tTopo_;
};
#endif