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
|
#ifndef CondTools_L1Trigger_L1CondDBIOVWriter_h
#define CondTools_L1Trigger_L1CondDBIOVWriter_h
// -*- C++ -*-
//
// Package: L1Trigger
// Class : L1CondDBIOVWriter
//
/**\class L1CondDBIOVWriter L1CondDBIOVWriter.h CondTools/L1Trigger/interface/L1CondDBIOVWriter.h
Description: <one line class summary>
Usage:
<usage>
*/
//
// Original Author: Werner Sun
// Created: Sun Mar 2 20:10:36 CET 2008
// $Id: L1CondDBIOVWriter.h,v 1.6 2009/12/17 23:43:58 wmtan Exp $
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "CondTools/L1Trigger/interface/DataWriter.h"
// forward declarations
class L1TriggerKey;
class L1TriggerKeyRcd;
class L1CondDBIOVWriter : public edm::one::EDAnalyzer<> {
public:
explicit L1CondDBIOVWriter(const edm::ParameterSet&);
~L1CondDBIOVWriter() override;
private:
void beginJob() override;
void analyze(const edm::Event&, const edm::EventSetup&) override;
void endJob() override;
// ----------member data ---------------------------
l1t::DataWriter m_writer;
std::string m_tscKey;
// List of record@type, used only for objects not tied to TSC key.
// Otherwise, list of records comes from L1TriggerKey.
std::vector<std::string> m_recordTypes;
// When true, set IOVs for objects not tied to the TSC key. The records
// and objects to be updated are given in the toPut parameter, and
// m_tscKey is taken to be a common key for all the toPut objects, not
// the TSC key. The IOV for L1TriggerKey is not updated when
// m_ignoreTriggerKey = true.
bool m_ignoreTriggerKey;
bool m_logKeys;
bool m_logTransactions;
bool m_forceUpdate;
edm::ESGetToken<L1TriggerKey, L1TriggerKeyRcd> l1TriggerKeyToken_;
};
#endif
|