BPHDecayToFlyingCascadeBuilderBase

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
#ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToFlyingCascadeBuilderBase_h
#define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToFlyingCascadeBuilderBase_h
/** \class BPHDecayToFlyingCascadeBuilderBase
 *
 *  Description: 
 *     Base class to build a particle having a flying particle in the
 *     final state
 *
 *  \author Paolo Ronchese INFN Padova
 *
 */

//----------------------
// Base Class Headers --
//----------------------
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecaySpecificBuilder.h"
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilderBase.h"

//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHKinFitChi2Select.h"

class BPHEventSetupWrapper;
class BPHRecoBuilder;

//---------------
// C++ Headers --
//---------------
#include <string>
#include <vector>

//              ---------------------
//              -- Class Interface --
//              ---------------------

class BPHDecayToFlyingCascadeBuilderBase : public virtual BPHDecaySpecificBuilderBase,
                                           public virtual BPHDecayGenericBuilderBase {
public:
  /** Constructor
   */
  BPHDecayToFlyingCascadeBuilderBase(const BPHEventSetupWrapper& es,
                                     const std::string& flyName,
                                     double flyMass,
                                     double flyMSigma);

  // deleted copy constructor and assignment operator
  BPHDecayToFlyingCascadeBuilderBase(const BPHDecayToFlyingCascadeBuilderBase& x) = delete;
  BPHDecayToFlyingCascadeBuilderBase& operator=(const BPHDecayToFlyingCascadeBuilderBase& x) = delete;

  /** Destructor
   */
  ~BPHDecayToFlyingCascadeBuilderBase() override;

  /** Operations
   */
  /// get original daughters map
  const std::map<const BPHRecoCandidate*, const BPHRecoCandidate*>& daughMap() const { return dMap; }

  /// set cuts
  void setFlyingMassMin(double m);
  void setFlyingMassMax(double m);
  void setFlyingMassRange(double mMin, double mMax);
  void setKinFitProbMin(double p);

  /// get current cuts
  double getFlyingMassMin() const { return flySel->getMassMin(); }
  double getFlyingMassMax() const { return flySel->getMassMax(); }
  double getKinFitProbMin() const { return kfChi2Sel->getProbMin(); }

protected:
  BPHDecayToFlyingCascadeBuilderBase(const std::string& flyName, double flyMass, double flyMSigma);
  BPHDecayToFlyingCascadeBuilderBase();

  std::string fName;
  double fMass;
  double fMSigma;

  BPHMassFitSelect* flySel;
  BPHKinFitChi2Select* kfChi2Sel;

  std::map<const BPHRecoCandidate*, const BPHRecoCandidate*> dMap;

  virtual void addFlyCollection(BPHRecoBuilder& brb) = 0;
};

#endif