Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: L1RCTChannelMaskTester.cc,v 1.5 2010/06/16 19:27:54 ghete Exp $
17
//
18
//
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
&);
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
L1RCTChannelMaskTester::~L1RCTChannelMaskTester
virtual ~L1RCTChannelMaskTester()
Definition:
L1RCTChannelMaskTester.cc:46
edm::EventSetup::find
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition:
EventSetup.cc:90
ParameterSet.h
MessageDrop.h
iEvent
int iEvent
Definition:
GenABIO.cc:243
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
L1RCTNoisyChannelMask.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:14
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
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
L1RCTChannelMaskTester::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L1RCTChannelMaskTester.cc:52
edm::Event
Definition:
Event.h:50
ModuleDef.h
L1RCTNoisyChannelMaskRcd
Definition:
L1RCTNoisyChannelMaskRcd.h:12
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
Definition:
HCTypeTag.cc:129
Generated for CMSSW Reference Manual by
1.8.5