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
size
Write out results.
DDCompareEqual()=delete
compares a given geometrical-history whether it corresponds to the given part-selector ...
Definition: DDComparator.h:15
DDPartSelection::size_type sIndex_
Definition: DDComparator.h:47
uint16_t size_type
bool nextChildposp()
DDPartSelection::size_type const sMax_
Definition: DDComparator.h:46
bool nextAnyposp()
Definition: DDComparator.cc:83
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
DDLogicalPart sLp_
Definition: DDComparator.h:48
bool nextAnylogp()
Definition: DDComparator.cc:70
DDCompareEqual(const DDGeoHistory &h, const DDPartSelection &s)
Definition: DDComparator.h:17
std::vector< DDExpandedNode > DDGeoHistory
Geometrical &#39;path&#39; of the current node up to the root-node.
const DDPartSelection & partsel_
Definition: DDComparator.h:43
DDGeoHistory::size_type hIndex_
Definition: DDComparator.h:45
DDGeoHistory::size_type const hMax_
Definition: DDComparator.h:44
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
bool nextChildlogp()
Definition: DDComparator.cc:96
const DDGeoHistory & hist_
Definition: DDComparator.h:42