CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
Harness Class Reference

Public Member Functions

edmtest::ThingCollection getBeginLumiValue (unsigned int iLumi)
 
edmtest::IntProduct getBeginLumiValue (unsigned int iLumi)
 
ExternalGeneratorLumiInfo getBeginLumiValue (unsigned int iLumi)
 
edmtest::ThingCollection getBeginRunValue (unsigned int iRun)
 
edmtest::ThingCollection getEndLumiValue ()
 
GenLumiInfoProduct getEndLumiValue ()
 
edmtest::ThingCollection getEndRunValue ()
 
GenRunInfoProduct getEndRunValue ()
 
edmtest::ThingCollection getEventValue ()
 
edmtest::IntProduct getEventValue ()
 
ExternalGeneratorEventInfo getEventValue ()
 
 Harness (std::string const &iConfig)
 
 Harness (std::string const &iConfig, edm::ServiceToken iToken)
 
 Harness (std::string const &iConfig, edm::ServiceToken iToken)
 

Private Attributes

edm::test::TestProcessor tester_
 

Detailed Description

Definition at line 28 of file interprocess.cc.

Constructor & Destructor Documentation

Harness::Harness ( std::string const &  iConfig)
inline

Definition at line 30 of file interprocess.cc.

Harness::Harness ( std::string const &  iConfig,
edm::ServiceToken  iToken 
)
inline

Definition at line 36 of file interprocess_random.cc.

Harness::Harness ( std::string const &  iConfig,
edm::ServiceToken  iToken 
)
inline

Definition at line 44 of file externalGenerator.cc.

Member Function Documentation

edmtest::ThingCollection Harness::getBeginLumiValue ( unsigned int  iLumi)
inline

Definition at line 37 of file interprocess.cc.

References dqmdumpme::lumi.

Referenced by main().

37  {
39  return *lumi.get<edmtest::ThingCollection>("beginLumi");
40  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
list lumi
Definition: dqmdumpme.py:53
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&...iArgs)
edmtest::IntProduct Harness::getBeginLumiValue ( unsigned int  iLumi)
inline

Definition at line 39 of file interprocess_random.cc.

References dqmdumpme::lumi.

39  {
41  return *lumi.get<edmtest::IntProduct>("lumi");
42  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
list lumi
Definition: dqmdumpme.py:53
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&...iArgs)
ExternalGeneratorLumiInfo Harness::getBeginLumiValue ( unsigned int  iLumi)
inline

Definition at line 47 of file externalGenerator.cc.

References ExternalGeneratorLumiInfo::header_, and dqmdumpme::lumi.

47  {
49  ExternalGeneratorLumiInfo returnValue;
50  returnValue.header_ = *lumi.get<GenLumiInfoHeader>();
51  return returnValue;
52  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
list lumi
Definition: dqmdumpme.py:53
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&...iArgs)
edmtest::ThingCollection Harness::getBeginRunValue ( unsigned int  iRun)
inline

Definition at line 32 of file interprocess.cc.

References submitPVValidationJobs::run.

Referenced by main().

32  {
33  auto run = tester_.testBeginRun(iRun);
34  return *run.get<edmtest::ThingCollection>("beginRun");
35  }
edm::test::Run testBeginRun(edm::RunNumber_t iNum, T &&...iArgs)
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edmtest::ThingCollection Harness::getEndLumiValue ( )
inline

Definition at line 47 of file interprocess.cc.

References dqmdumpme::lumi.

Referenced by main().

47  {
49  return *lumi.get<edmtest::ThingCollection>("endLumi");
50  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
list lumi
Definition: dqmdumpme.py:53
edm::test::LuminosityBlock testEndLuminosityBlock(T &&...iArgs)
GenLumiInfoProduct Harness::getEndLumiValue ( )
inline

Definition at line 63 of file externalGenerator.cc.

References dqmdumpme::lumi.

63  {
65  return *lumi.get<GenLumiInfoProduct>();
66  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
list lumi
Definition: dqmdumpme.py:53
edm::test::LuminosityBlock testEndLuminosityBlock(T &&...iArgs)
edmtest::ThingCollection Harness::getEndRunValue ( )
inline

Definition at line 52 of file interprocess.cc.

References submitPVValidationJobs::run.

Referenced by main().

52  {
53  auto run = tester_.testEndRun();
54  return *run.get<edmtest::ThingCollection>("endRun");
55  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edm::test::Run testEndRun(T &&...iArgs)
GenRunInfoProduct Harness::getEndRunValue ( )
inline

Definition at line 68 of file externalGenerator.cc.

References submitPVValidationJobs::run.

68  {
69  auto run = tester_.testEndRun();
70  return *run.get<GenRunInfoProduct>();
71  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edm::test::Run testEndRun(T &&...iArgs)
edmtest::ThingCollection Harness::getEventValue ( )
inline

Definition at line 42 of file interprocess.cc.

Referenced by main().

42  {
43  auto event = tester_.test();
44  return *event.get<edmtest::ThingCollection>();
45  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edm::test::Event test(T &&...iArgs)
TestHandle< T > get() const
Definition: Event.h:42
edmtest::IntProduct Harness::getEventValue ( )
inline

Definition at line 44 of file interprocess_random.cc.

44  {
45  auto event = tester_.test();
46  return *event.get<edmtest::IntProduct>();
47  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edm::test::Event test(T &&...iArgs)
TestHandle< T > get() const
Definition: Event.h:42
ExternalGeneratorEventInfo Harness::getEventValue ( )
inline

Definition at line 54 of file externalGenerator.cc.

References ExternalGeneratorEventInfo::eventInfo_, ExternalGeneratorEventInfo::hepmc_, and ExternalGeneratorEventInfo::keepEvent_.

54  {
55  ExternalGeneratorEventInfo returnValue;
56  auto event = tester_.test();
57  returnValue.hepmc_ = *event.get<edm::HepMCProduct>("unsmeared");
58  returnValue.eventInfo_ = *event.get<GenEventInfoProduct>();
59  returnValue.keepEvent_ = event.modulePassed();
60  return returnValue;
61  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:58
edm::test::Event test(T &&...iArgs)

Member Data Documentation

edm::test::TestProcessor Harness::tester_
private

Definition at line 58 of file interprocess.cc.