test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDComparator.h
Go to the documentation of this file.
1 #ifndef DDComparator_h
2 #define DDComparator_h
3 
7 
8 
10 
13 class DDCompareEqual // : public binary_function<DDGeoHistory,DDPartSelection,bool>
14 {
15 public:
17  : hist_(h),
18  partsel_(s),
19  hMax_(h.size()),
20  hIndex_(0),
21  sMax_(s.size()),
22  sIndex_(0),
23  sLp_(),
24  sCopyno_(0),
25  absResult_(hMax_>0 && sMax_>0 )
26  {
27  // it makes only sense to compare if both std::vectors have at least one entry each.
28  //std::cout << std::endl << std::endl << "COMPARATOR CREATED" << std::endl << std::endl;
29  //DCOUT('U', "Comparator():\n hist=" << h << "\n PartSel=" << s);
30  }
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:
42  DDCompareEqual();
50  /*
51  lpredir_type * hLp_;
52  lpredir_type * sLp_;
53  */
54  int sCopyno_;
55  bool absResult_;
56 };
57 
58 
59 #endif
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
compares a given geometrical-history whether it corresponds to the given part-selector ...
Definition: DDComparator.h:13
DDPartSelection::size_type sIndex_
Definition: DDComparator.h:48
uint16_t size_type
bool nextChildposp()
DDPartSelection::size_type const sMax_
Definition: DDComparator.h:47
bool nextAnyposp()
Definition: DDComparator.cc:89
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
DDLogicalPart sLp_
Definition: DDComparator.h:49
bool nextAnylogp()
Definition: DDComparator.cc:74
DDCompareEqual(const DDGeoHistory &h, const DDPartSelection &s)
Definition: DDComparator.h:16
std::vector< DDExpandedNode > DDGeoHistory
Geometrical &#39;path&#39; of the current node up to the root-node.
const DDPartSelection & partsel_
Definition: DDComparator.h:44
DDGeoHistory::size_type hIndex_
Definition: DDComparator.h:46
DDGeoHistory::size_type const hMax_
Definition: DDComparator.h:45
bool nextChildlogp()
const DDGeoHistory & hist_
Definition: DDComparator.h:43
tuple size
Write out results.