CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TestPSetAnalyzer Class Reference
Inheritance diagram for TestPSetAnalyzer:
edm::global::EDAnalyzer<> edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 TestPSetAnalyzer (edm::ParameterSet const &)
 
- Public Member Functions inherited from edm::global::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
 

Private Attributes

edm::EventRange testERange1_
 
edm::EventRange testERange2_
 
edm::EventRange testERange3_
 
edm::EventRange testERange4_
 
edm::EventRange testERange5_
 
edm::EventRange testERange_
 
edm::EventID testEventID1_
 
edm::EventID testEventID2_
 
edm::EventID testEventID3_
 
edm::EventID testEventID4_
 
edm::LuminosityBlockRange testLRange_
 
edm::LuminosityBlockID testLumi_
 
std::vector< edm::EventRangetestVERange2_
 
std::vector< edm::EventRangetestVERange_
 
std::vector< edm::EventIDtestVEventID_
 
std::vector< edm::LuminosityBlockRangetestVLRange_
 
std::vector< edm::LuminosityBlockIDtestVLumi_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::global::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 26 of file TestPSetAnalyzer.cc.

Constructor & Destructor Documentation

◆ TestPSetAnalyzer()

TestPSetAnalyzer::TestPSetAnalyzer ( edm::ParameterSet const &  iConfig)
explicit

Definition at line 67 of file TestPSetAnalyzer.cc.

References gather_cfg::cout, edm::ParameterSet::getParameter(), mps_fire::i, testERange1_, testERange2_, testERange3_, testERange4_, testERange5_, testERange_, testEventID1_, testEventID2_, testEventID3_, testEventID4_, testLRange_, testLumi_, testVERange2_, testVERange_, testVEventID_, testVLRange_, and testVLumi_.

67  {
68  testLumi_ = iConfig.getParameter<edm::LuminosityBlockID>("testLumi");
69  testVLumi_ = iConfig.getParameter<std::vector<edm::LuminosityBlockID> >("testVLumi");
70  testLRange_ = iConfig.getParameter<edm::LuminosityBlockRange>("testRange");
71  testVLRange_ = iConfig.getParameter<std::vector<edm::LuminosityBlockRange> >("testVRange");
72  testERange_ = iConfig.getParameter<edm::EventRange>("testERange");
73  testVERange_ = iConfig.getParameter<std::vector<edm::EventRange> >("testVERange");
74 
75  testEventID1_ = iConfig.getParameter<edm::EventID>("testEventID1");
76  testEventID2_ = iConfig.getParameter<edm::EventID>("testEventID2");
77  testEventID3_ = iConfig.getParameter<edm::EventID>("testEventID3");
78  testEventID4_ = iConfig.getParameter<edm::EventID>("testEventID4");
79  testVEventID_ = iConfig.getParameter<std::vector<edm::EventID> >("testVEventID");
80  testERange1_ = iConfig.getParameter<edm::EventRange>("testERange1");
81  testERange2_ = iConfig.getParameter<edm::EventRange>("testERange2");
82  testERange3_ = iConfig.getParameter<edm::EventRange>("testERange3");
83  testERange4_ = iConfig.getParameter<edm::EventRange>("testERange4");
84  testERange5_ = iConfig.getParameter<edm::EventRange>("testERange5");
85  testVERange2_ = iConfig.getParameter<std::vector<edm::EventRange> >("testVERange2");
86 
87  std::cout << "Lumi PSet test " << testLumi_ << std::endl;
88  std::cout << "LRange PSet test " << testLRange_ << std::endl;
89  std::cout << "ERange PSet test " << testERange_ << std::endl;
90 
91  for (auto const& i : testVLumi_) {
92  std::cout << "VLumi PSet test " << i << std::endl;
93  }
94 
95  for (auto const& i : testVLRange_) {
96  std::cout << "VLRange PSet test " << i << std::endl;
97  }
98 
99  for (auto const& i : testVERange_) {
100  std::cout << "VERange PSet test " << i << std::endl;
101  }
102 
103  std::cout << "EventID1 PSet test " << testEventID1_ << std::endl;
104  std::cout << "EventID2 PSet test " << testEventID2_ << std::endl;
105  std::cout << "EventID3 PSet test " << testEventID3_ << std::endl;
106  std::cout << "EventID4 PSet test " << testEventID4_ << std::endl;
107  std::cout << "ERange1 PSet test " << testERange1_ << std::endl;
108  std::cout << "ERange2 PSet test " << testERange2_ << std::endl;
109  std::cout << "ERange3 PSet test " << testERange3_ << std::endl;
110  std::cout << "ERange4 PSet test " << testERange4_ << std::endl;
111  std::cout << "ERange5 PSet test " << testERange5_ << std::endl;
112 
113  for (auto const& i : testVEventID_) {
114  std::cout << "VEventID PSet test " << i << std::endl;
115  }
116 
117  for (auto const& i : testVERange2_) {
118  std::cout << "VERange2 PSet test " << i << std::endl;
119  }
120 }
edm::EventID testEventID3_
edm::EventID testEventID2_
edm::EventRange testERange5_
edm::EventRange testERange3_
std::vector< edm::EventRange > testVERange_
std::vector< edm::EventRange > testVERange2_
std::vector< edm::LuminosityBlockRange > testVLRange_
edm::EventRange testERange4_
edm::EventRange testERange2_
edm::LuminosityBlockID testLumi_
std::vector< edm::EventID > testVEventID_
std::vector< edm::LuminosityBlockID > testVLumi_
edm::EventID testEventID1_
edm::LuminosityBlockRange testLRange_
edm::EventRange testERange_
edm::EventID testEventID4_
edm::EventRange testERange1_

Member Function Documentation

◆ analyze()

void TestPSetAnalyzer::analyze ( edm::StreamID  ,
edm::Event const &  ,
edm::EventSetup const &   
) const
finalprivatevirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 127 of file TestPSetAnalyzer.cc.

127 {}

Member Data Documentation

◆ testERange1_

edm::EventRange TestPSetAnalyzer::testERange1_
private

Definition at line 46 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testERange2_

edm::EventRange TestPSetAnalyzer::testERange2_
private

Definition at line 47 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testERange3_

edm::EventRange TestPSetAnalyzer::testERange3_
private

Definition at line 48 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testERange4_

edm::EventRange TestPSetAnalyzer::testERange4_
private

Definition at line 49 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testERange5_

edm::EventRange TestPSetAnalyzer::testERange5_
private

Definition at line 50 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testERange_

edm::EventRange TestPSetAnalyzer::testERange_
private

Definition at line 35 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testEventID1_

edm::EventID TestPSetAnalyzer::testEventID1_
private

Definition at line 41 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testEventID2_

edm::EventID TestPSetAnalyzer::testEventID2_
private

Definition at line 42 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testEventID3_

edm::EventID TestPSetAnalyzer::testEventID3_
private

Definition at line 43 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testEventID4_

edm::EventID TestPSetAnalyzer::testEventID4_
private

Definition at line 44 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testLRange_

edm::LuminosityBlockRange TestPSetAnalyzer::testLRange_
private

Definition at line 34 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testLumi_

edm::LuminosityBlockID TestPSetAnalyzer::testLumi_
private

Definition at line 33 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testVERange2_

std::vector<edm::EventRange> TestPSetAnalyzer::testVERange2_
private

Definition at line 51 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testVERange_

std::vector<edm::EventRange> TestPSetAnalyzer::testVERange_
private

Definition at line 39 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testVEventID_

std::vector<edm::EventID> TestPSetAnalyzer::testVEventID_
private

Definition at line 45 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testVLRange_

std::vector<edm::LuminosityBlockRange> TestPSetAnalyzer::testVLRange_
private

Definition at line 38 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().

◆ testVLumi_

std::vector<edm::LuminosityBlockID> TestPSetAnalyzer::testVLumi_
private

Definition at line 37 of file TestPSetAnalyzer.cc.

Referenced by TestPSetAnalyzer().