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 
4 #include <vector>
5 
10 
11 
13 
16 class DDCompareEqual // : public binary_function<DDGeoHistory,DDPartSelection,bool>
17 {
18 public:
20  : hist_(h),
21  partsel_(s),
22  hMax_(h.size()),
23  hIndex_(0),
24  sMax_(s.size()),
25  sIndex_(0),
26  sLp_(),
27  sCopyno_(0),
28  absResult_(hMax_>0 && sMax_>0 )
29  {
30  // it makes only sense to compare if both std::vectors have at least one entry each.
31  //std::cout << std::endl << std::endl << "COMPARATOR CREATED" << std::endl << std::endl;
32  //DCOUT('U', "Comparator():\n hist=" << h << "\n PartSel=" << s);
33  }
34 
35  bool operator() (const DDGeoHistory &, const DDPartSelection &);
36  bool operator() ();
37 
38 protected:
39  inline bool nextAnylogp();
40  inline bool nextAnyposp();
41  inline bool nextChildlogp();
42  inline bool nextChildposp();
43 
44 private:
45  DDCompareEqual();
53  /*
54  lpredir_type * hLp_;
55  lpredir_type * sLp_;
56  */
57  int sCopyno_;
58  bool absResult_;
59 };
60 
61 
62 #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:16
DDPartSelection::size_type sIndex_
Definition: DDComparator.h:51
uint16_t size_type
bool nextChildposp()
DDPartSelection::size_type const sMax_
Definition: DDComparator.h:50
bool nextAnyposp()
Definition: DDComparator.cc:92
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
DDLogicalPart sLp_
Definition: DDComparator.h:52
bool nextAnylogp()
Definition: DDComparator.cc:77
DDCompareEqual(const DDGeoHistory &h, const DDPartSelection &s)
Definition: DDComparator.h:19
std::vector< DDExpandedNode > DDGeoHistory
Geometrical &#39;path&#39; of the current node up to the root-node.
const DDPartSelection & partsel_
Definition: DDComparator.h:47
DDGeoHistory::size_type hIndex_
Definition: DDComparator.h:49
DDGeoHistory::size_type const hMax_
Definition: DDComparator.h:48
bool nextChildlogp()
const DDGeoHistory & hist_
Definition: DDComparator.h:46
tuple size
Write out results.