CMS 3D CMS Logo

BPHDecayGenericBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayGenericBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayGenericBuilder_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
24 
26 
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 #include <vector>
33 #include <iostream>
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 template <class ProdType>
41 public:
42  typedef typename ProdType::const_pointer prod_ptr;
43 
47 
48  // deleted copy constructor and assignment operator
51 
54  ~BPHDecayGenericBuilder() override = default;
55 
58  virtual std::vector<prod_ptr> build() {
60  if (outdated) {
61  recList.clear();
62  fillRecList();
63  outdated = false;
64  }
65  return recList;
66  }
67 
68 protected:
70 
71  std::vector<prod_ptr> recList;
72 };
73 
74 #endif
ProdType::const_pointer prod_ptr
virtual std::vector< prod_ptr > build()
build candidates
~BPHDecayGenericBuilder() override=default
BPHDecayGenericBuilder(const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs)
virtual void fillRecList()=0
std::vector< prod_ptr > recList
BPHDecayGenericBuilder & operator=(const BPHDecayGenericBuilder &x)=delete