CMS 3D CMS Logo

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 29 of file interprocess.cc.

Constructor & Destructor Documentation

◆ Harness() [1/3]

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

Definition at line 31 of file interprocess.cc.

◆ Harness() [2/3]

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

Definition at line 37 of file interprocess_random.cc.

38  : tester_(edm::test::TestProcessor::Config{iConfig}, iToken) {}
edm::test::TestProcessor tester_
Definition: interprocess.cc:59

◆ Harness() [3/3]

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

Definition at line 64 of file externalGenerator.cc.

65  : tester_(edm::test::TestProcessor::Config{iConfig}, iToken) {}
edm::test::TestProcessor tester_
Definition: interprocess.cc:59

Member Function Documentation

◆ getBeginLumiValue() [1/3]

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

Definition at line 38 of file interprocess.cc.

References Hcal_Conditions_forGlobalTag_cff::iLumi.

Referenced by main().

38  {
40  return *lumi.get<edmtest::ThingCollection>("beginLumi");
41  }
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&... iArgs)
edm::test::TestProcessor tester_
Definition: interprocess.cc:59

◆ getBeginLumiValue() [2/3]

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

Definition at line 40 of file interprocess_random.cc.

References Hcal_Conditions_forGlobalTag_cff::iLumi.

40  {
42  return *lumi.get<edmtest::IntProduct>("lumi");
43  }
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&... iArgs)
edm::test::TestProcessor tester_
Definition: interprocess.cc:59

◆ getBeginLumiValue() [3/3]

ExternalGeneratorLumiInfo Harness::getBeginLumiValue ( unsigned int  iLumi)
inline

Definition at line 67 of file externalGenerator.cc.

References ExternalGeneratorLumiInfo::header_, and Hcal_Conditions_forGlobalTag_cff::iLumi.

67  {
69  ExternalGeneratorLumiInfo returnValue;
70  returnValue.header_ = *lumi.get<GenLumiInfoHeader>();
71  return returnValue;
72  }
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&... iArgs)
edm::test::TestProcessor tester_
Definition: interprocess.cc:59

◆ getBeginRunValue()

edmtest::ThingCollection Harness::getBeginRunValue ( unsigned int  iRun)
inline

Definition at line 33 of file interprocess.cc.

References writedatasetfile::run.

Referenced by main().

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

◆ getEndLumiValue() [1/2]

edmtest::ThingCollection Harness::getEndLumiValue ( )
inline

Definition at line 48 of file interprocess.cc.

Referenced by main().

48  {
50  return *lumi.get<edmtest::ThingCollection>("endLumi");
51  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:59
edm::test::LuminosityBlock testEndLuminosityBlock(T &&... iArgs)

◆ getEndLumiValue() [2/2]

GenLumiInfoProduct Harness::getEndLumiValue ( )
inline

Definition at line 83 of file externalGenerator.cc.

83  {
85  return *lumi.get<GenLumiInfoProduct>();
86  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:59
edm::test::LuminosityBlock testEndLuminosityBlock(T &&... iArgs)

◆ getEndRunValue() [1/2]

edmtest::ThingCollection Harness::getEndRunValue ( )
inline

Definition at line 53 of file interprocess.cc.

References writedatasetfile::run.

Referenced by main().

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

◆ getEndRunValue() [2/2]

GenRunInfoProduct Harness::getEndRunValue ( )
inline

Definition at line 88 of file externalGenerator.cc.

References writedatasetfile::run.

88  {
89  auto run = tester_.testEndRun();
90  return *run.get<GenRunInfoProduct>();
91  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:59
edm::test::Run testEndRun(T &&... iArgs)

◆ getEventValue() [1/3]

edmtest::ThingCollection Harness::getEventValue ( )
inline

Definition at line 43 of file interprocess.cc.

Referenced by main().

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

◆ getEventValue() [2/3]

edmtest::IntProduct Harness::getEventValue ( )
inline

Definition at line 45 of file interprocess_random.cc.

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

◆ getEventValue() [3/3]

ExternalGeneratorEventInfo Harness::getEventValue ( )
inline

Definition at line 74 of file externalGenerator.cc.

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

74  {
75  ExternalGeneratorEventInfo returnValue;
76  auto event = tester_.test();
77  returnValue.hepmc_ = *event.get<edm::HepMCProduct>("unsmeared");
78  returnValue.eventInfo_ = *event.get<GenEventInfoProduct>();
79  returnValue.keepEvent_ = event.modulePassed();
80  return returnValue;
81  }
edm::test::TestProcessor tester_
Definition: interprocess.cc:59
edm::test::Event test(T &&... iArgs)

Member Data Documentation

◆ tester_

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

Definition at line 59 of file interprocess.cc.