CMS 3D CMS Logo

DDComparator.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_CORE_DD_COMPARATOR_H
2 #define DETECTOR_DESCRIPTION_CORE_DD_COMPARATOR_H
3 
4 #include <vector>
5 
10 
12 
16 public:
18  : hist_(h),
19  partsel_(s),
20  hMax_(h.size()),
21  hIndex_(0),
22  sMax_(s.size()),
23  sIndex_(0),
24  sLp_(),
25  sCopyno_(0),
26  absResult_(hMax_ > 0 && sMax_ > 0) {
27  // it makes only sense to compare if both std::vectors have at least one entry each.
28  }
29 
30  DDCompareEqual() = delete;
31 
32  bool operator()(const DDGeoHistory &, const DDPartSelection &);
33  bool operator()();
34 
35 protected:
36  inline bool nextAnylogp();
37  inline bool nextAnyposp();
38  inline bool nextChildlogp();
39  inline bool nextChildposp();
40 
41 private:
49  int sCopyno_;
50  bool absResult_;
51 };
52 
53 #endif
DDCompareEqual::DDCompareEqual
DDCompareEqual()=delete
DDCompareEqual::hMax_
const DDGeoHistory::size_type hMax_
Definition: DDComparator.h:44
DDCompareEqual::absResult_
bool absResult_
Definition: DDComparator.h:50
DDGeoHistory
std::vector< DDExpandedNode > DDGeoHistory
Geometrical 'path' of the current node up to the root-node.
Definition: DDExpandedNode.h:82
DDCompareEqual::sMax_
const DDPartSelection::size_type sMax_
Definition: DDComparator.h:46
DDPartSelection
Definition: DDPartSelection.h:37
DDPartSelection.h
DDCompareEqual::DDCompareEqual
DDCompareEqual(const DDGeoHistory &h, const DDPartSelection &s)
Definition: DDComparator.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
DDCompareEqual::partsel_
const DDPartSelection & partsel_
Definition: DDComparator.h:43
DDCompareEqual::sIndex_
DDPartSelection::size_type sIndex_
Definition: DDComparator.h:47
h
DDCompareEqual::hist_
const DDGeoHistory & hist_
Definition: DDComparator.h:42
DDCompareEqual::hIndex_
DDGeoHistory::size_type hIndex_
Definition: DDComparator.h:45
DDCompareEqual::sCopyno_
int sCopyno_
Definition: DDComparator.h:49
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDCompareEqual::operator()
bool operator()()
Definition: DDComparator.cc:14
DDCompareEqual
compares a given geometrical-history whether it corresponds to the given part-selector
Definition: DDComparator.h:15
DDLogicalPart.h
DDCompareEqual::sLp_
DDLogicalPart sLp_
Definition: DDComparator.h:48
DDExpandedView.h
DDCompareEqual::nextAnyposp
bool nextAnyposp()
Definition: DDComparator.cc:83
DDCompareEqual::nextChildlogp
bool nextChildlogp()
Definition: DDComparator.cc:96
DDExpandedNode.h
DDCompareEqual::nextAnylogp
bool nextAnylogp()
Definition: DDComparator.cc:70
DDCompareEqual::nextChildposp
bool nextChildposp()
Definition: DDComparator.cc:107
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443