Main Page
Namespaces
Classes
Package Documentation
src
L1TriggerConfig
RCTConfigProducers
src
L1RCTChannelMaskTester.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: RCTConfigTester
4
// Class: RCTConfigTester
5
//
13
//
14
// Original Author: Sridhara Dasu
15
// Created: Mon Jul 16 23:48:35 CEST 2007
16
//
17
//
18
#include <iostream>
19
// user include files
20
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
23
24
#include "
FWCore/Framework/interface/EventSetup.h
"
25
#include "
FWCore/Framework/interface/ESHandle.h
"
26
27
#include "
CondFormats/DataRecord/interface/L1RCTChannelMaskRcd.h
"
28
#include "
CondFormats/L1TObjects/interface/L1RCTChannelMask.h
"
29
#include "
CondFormats/DataRecord/interface/L1RCTNoisyChannelMaskRcd.h
"
30
#include "
CondFormats/L1TObjects/interface/L1RCTNoisyChannelMask.h
"
31
32
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
33
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
34
35
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
36
#include "
FWCore/Framework/interface/MakerMacros.h
"
37
38
//
39
// class declaration
40
//
41
42
class
L1RCTChannelMaskTester
:
public
edm::EDAnalyzer
{
43
public
:
44
explicit
L1RCTChannelMaskTester
(
const
edm::ParameterSet
&) {
45
}
46
virtual
~L1RCTChannelMaskTester
() {
47
}
48
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
49
50
};
51
52
void
L1RCTChannelMaskTester::analyze
(
const
edm::Event
&
iEvent
,
53
const
edm::EventSetup
& evSetup) {
54
55
//
56
edm::ESHandle<L1RCTChannelMask>
rctChanMask;
57
evSetup.
get
<
L1RCTChannelMaskRcd
>().
get
(rctChanMask);
58
59
rctChanMask->
print
(
std::cout
);
60
61
//
62
edm::eventsetup::EventSetupRecordKey
recordKey(
63
edm::eventsetup::EventSetupRecordKey::TypeTag::findType
(
64
"L1RCTNoisyChannelMaskRcd"
));
65
66
if
(evSetup.
find
(recordKey) == 0) {
67
//record not found
68
std::cout
<<
"\nRecord \""
<<
"L1RCTNoisyChannelMaskRcd"
69
<<
"\" does not exist.\n"
<< std::endl;
70
}
else
{
71
72
edm::ESHandle<L1RCTNoisyChannelMask>
rctNoisyChanMask;
73
evSetup.
get
<
L1RCTNoisyChannelMaskRcd
>().
get
(rctNoisyChanMask);
74
75
rctNoisyChanMask->
print
(
std::cout
);
76
77
}
78
79
}
80
81
DEFINE_FWK_MODULE
(
L1RCTChannelMaskTester
);
82
MessageLogger.h
L1RCTChannelMaskTester::L1RCTChannelMaskTester
L1RCTChannelMaskTester(const edm::ParameterSet &)
Definition:
L1RCTChannelMaskTester.cc:44
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
edm::eventsetup::heterocontainer::HCTypeTag::findType
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
L1RCTChannelMaskTester::~L1RCTChannelMaskTester
virtual ~L1RCTChannelMaskTester()
Definition:
L1RCTChannelMaskTester.cc:46
L1RCTChannelMask::print
void print(std::ostream &s) const
Definition:
L1RCTChannelMask.h:13
edm::EventSetup::find
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition:
EventSetup.cc:91
ParameterSet.h
MessageDrop.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
L1RCTNoisyChannelMask.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
L1RCTChannelMask.h
L1RCTChannelMaskRcd
Definition:
L1RCTChannelMaskRcd.h:12
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
L1RCTChannelMaskTester
Definition:
L1RCTChannelMaskTester.cc:42
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
L1RCTChannelMaskRcd.h
L1RCTNoisyChannelMaskRcd.h
L1RCTNoisyChannelMask::print
void print(std::ostream &s) const
Definition:
L1RCTNoisyChannelMask.h:19
L1RCTChannelMaskTester::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1RCTChannelMaskTester.cc:52
edm::ParameterSet
Definition:
ParameterSet.h:36
gather_cfg.cout
cout
Definition:
gather_cfg.py:145
edm::Event
Definition:
Event.h:69
ModuleDef.h
L1RCTNoisyChannelMaskRcd
Definition:
L1RCTNoisyChannelMaskRcd.h:12
Generated for CMSSW Reference Manual by
1.8.11