5 #include "DataFormats/TestObjects/interface/ToyProducts.h" 37 : runsToGetDataFor_(
pset.getParameter<
std::
vector<
int>>(
"runsToGetDataFor")),
38 expectedValues_(
pset.getUntrackedParameter<
std::
vector<
int>>(
"expectedValues")),
52 <<
" but saw " << dataA.value();
62 desc.setComment(
"Test module for the EventSetup");
63 desc.add<std::vector<int>>(
"runsToGetDataFor")
64 ->setComment(
"ID number for each Run for which we should get EventSetup data.");
65 desc.addUntracked<std::vector<int>>(
"expectedValues", std::vector<int>())
66 ->setComment(
"EventSetup value expected for each Run. If empty, no values compared.");
86 : runsToGetDataFor_(
pset.getParameter<
std::
vector<
int>>(
"runsToGetDataFor")),
87 expectedValues_(
pset.getUntrackedParameter<
std::
vector<
int>>(
"expectedValues")),
99 <<
"Expected does not match actual value, " 109 desc.add<std::vector<int>>(
"runsToGetDataFor")
110 ->setComment(
"ID number for each Run for which we should get EventSetup data.");
111 desc.addUntracked<std::vector<int>>(
"expectedValues", std::vector<int>())
112 ->setComment(
"EventSetup value expected for each Run. If empty, no values compared.");
153 : runsToGetDataFor_(
pset.getParameter<
std::
vector<
int>>(
"runsToGetDataFor")),
154 expectedValuesA_(
pset.getUntrackedParameter<
std::
vector<
int>>(
"expectedValuesA")),
155 expectedValuesZ_(
pset.getUntrackedParameter<
std::
vector<
int>>(
"expectedValuesZ")),
171 <<
": Data values = " << dataA.
value() <<
" " << dataZ.
value();
193 desc.setComment(
"Test module for the EventSetup");
194 desc.add<std::vector<int>>(
"runsToGetDataFor")
195 ->setComment(
"ID number for each Run for which we should get EventSetup data.");
196 desc.addUntracked<std::vector<int>>(
"expectedValuesA", std::vector<int>())
197 ->setComment(
"EventSetup value for ESTestDataA:foo expected for each Run. If empty, no values compared.");
198 desc.addUntracked<std::vector<int>>(
"expectedValuesZ", std::vector<int>())
199 ->setComment(
"EventSetup value for ESTestDataZ:foo expected for each Run. If empty, no values compared.");
215 <<
": Data values = " << dataJ.
value();
233 <<
": ED value " << intData.value <<
": ES value = " << dataJ.value();
248 <<
"Succeeded to call esConsumes() in analyze(), should not happen!";
const edm::ESGetToken< ESTestDataB, ESTestRecordB > dataBToken_
edm::ESGetToken< ESTestDataZ, ESTestRecordZ > dataZToken_
const edm::ESGetToken< ESTestDataJ, ESTestRecordJ > dataJToken_
std::vector< int > const expectedValues_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
ModuleDescription const & moduleDescription() const
unsigned int expectedIndex_
const edm::ESGetToken< ESTestDataK, ESTestRecordK > dataKToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
const std::vector< int > expectedValues_
std::vector< int > const runsToGetDataFor_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< int > const expectedValuesZ_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
ESTestAnalyzerJ(edm::ParameterSet const &)
ESTestAnalyzerIncorrectConsumes(edm::ParameterSet const &iConfig)
edm::ESGetToken< ESTestDataA, ESTestRecordA > const token_
void addDefault(ParameterSetDescription const &psetDescription)
const std::vector< int > runsToGetDataFor_
edm::ESGetToken< ESTestDataJ, ESTestRecordJ > esToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void analyze(const edm::Event &, const edm::EventSetup &) override
ESTestAnalyzerB(edm::ParameterSet const &)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ESTestAnalyzerL(edm::ParameterSet const &iConfig)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< IntProduct > edToken_
std::string const & processName() const
void analyze(const edm::Event &, const edm::EventSetup &) override
ESTestAnalyzerAZ(edm::ParameterSet const &)
ModuleDescription const & moduleDescription() const
const std::vector< int > runsToGetDataFor_
edm::ESGetToken< ESTestDataA, ESTestRecordA > dataAToken_
ESTestAnalyzerA(edm::ParameterSet const &)
ModuleDescription const & moduleDescription() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
Log< level::System, true > LogAbsolute
void analyze(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< int > const expectedValuesA_
ESTestAnalyzerK(edm::ParameterSet const &)
edm::ESGetToken< ESTestDataJ, ESTestRecordJ > esToken_
std::vector< int > const runsToGetDataFor_