CMS 3D CMS Logo

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

Public Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
 CompareDDCompactViews (const edm::ParameterSet &)
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
 ~CompareDDCompactViews () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () 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
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, 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
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::string m_fname1
 
std::string m_fname2
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::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)
 
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 ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
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<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)
 

Detailed Description

Definition at line 13 of file CompareDDCompactViews.cc.

Constructor & Destructor Documentation

CompareDDCompactViews::CompareDDCompactViews ( const edm::ParameterSet iConfig)
explicit

Definition at line 30 of file CompareDDCompactViews.cc.

References edm::ParameterSet::getUntrackedParameter(), m_fname1, m_fname2, and AlCaHLTBitMon_QueryRunRegistry::string.

31 {
32  m_fname1 = iConfig.getUntrackedParameter<std::string>( "XMLFileName1" );
33  m_fname2 = iConfig.getUntrackedParameter<std::string>( "XMLFileName2" );
34 }
T getUntrackedParameter(std::string const &, T const &) const
CompareDDCompactViews::~CompareDDCompactViews ( )
inlineoverride

Definition at line 17 of file CompareDDCompactViews.cc.

17 {}

Member Function Documentation

void CompareDDCompactViews::analyze ( edm::Event const &  ,
edm::EventSetup const &   
)
inlineoverridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 21 of file CompareDDCompactViews.cc.

21 {}
void CompareDDCompactViews::beginJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 19 of file CompareDDCompactViews.cc.

References beginRun().

19 {}
void CompareDDCompactViews::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
override

Definition at line 37 of file CompareDDCompactViews.cc.

References gather_cfg::cout, DDCheckMaterials(), DDCompareCPV(), DEFINE_FWK_MODULE, DDCompactView::lockdown(), m_fname1, m_fname2, and DDLParser::parseOneFile().

Referenced by beginJob().

38 {
39  DDCompactView cpv1;
40  DDLParser parser1( cpv1 );
41  parser1.parseOneFile( m_fname1 );
43  cpv1.lockdown();
44 
45  DDCompactView cpv2;
46  DDLParser parser2( cpv2 );
47  parser2.parseOneFile( m_fname2 );
49  cpv2.lockdown();
50 
51  DDCompOptions ddco;
52  bool graphmatch = DDCompareCPV( cpv1, cpv2, ddco );
53 
54  if( graphmatch ) {
55  std::cout << "DDCompactView graphs match" << std::endl;
56  } else {
57  std::cout << "DDCompactView graphs do NOT match" << std::endl;
58  }
59 }
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DDLParser is the main class of Detector Description Language Parser.
Definition: DDLParser.h:63
DDComparators need to know if names of DDRotation matter.
bool DDCheckMaterials(std::ostream &, std::vector< std::pair< std::string, std::string > > *=0)
bool DDCompareCPV(const DDCompactView &lhs, const DDCompactView &rhs, const DDCompOptions &ddco)
void CompareDDCompactViews::endJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 23 of file CompareDDCompactViews.cc.

23 {}
void CompareDDCompactViews::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverride

Definition at line 22 of file CompareDDCompactViews.cc.

22 {}

Member Data Documentation

std::string CompareDDCompactViews::m_fname1
private

Definition at line 26 of file CompareDDCompactViews.cc.

Referenced by beginRun(), and CompareDDCompactViews().

std::string CompareDDCompactViews::m_fname2
private

Definition at line 27 of file CompareDDCompactViews.cc.

Referenced by beginRun(), and CompareDDCompactViews().