HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
TauSpinnerProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "TauSpinner/SimpleParticle.h"
5 #include "TauSpinner/tau_reweight_lib.h"
6 
7 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
8 
16 class TauSpinnerProducer: public ProducerBase<HttTypes>
17 {
18 public:
19 
20  virtual std::string GetProducerId() const override
21  {
22  return "TauSpinnerProducer";
23  }
24 
26 
27  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
28 
29  virtual void Produce(event_type const& event, product_type& product,
30  setting_type const& settings, metadata_type const& metadata) const override;
31 
32 
33 private:
34  virtual TauSpinner::SimpleParticle GetSimpleParticle(RMFLV const& particleLV, int particlePdgId) const;
35  virtual std::vector<TauSpinner::SimpleParticle> GetFinalStates(
36  GenParticleDecayTree& mother,
37  std::vector<TauSpinner::SimpleParticle>& resultVector) const;
38  std::string GetLabelForWeightsMap(float mixingAngleOverPiHalf) const;
39 
40  std::vector<float> mixingAnglesOverPiHalf;
41 
42  std::string pipelineName;
43  mutable int numberOfNanWeights = 0;
44 };
45 
46 namespace std{
47  string to_string(TauSpinner::SimpleParticle& particle);
48  string to_string(std::vector<TauSpinner::SimpleParticle>& particleVector);
49 }
~TauSpinnerProducer()
Definition: TauSpinnerProducer.cc:18
string to_string(TauSpinner::SimpleParticle &particle)
Definition: TauSpinnerProducer.cc:247
GlobalProducer, for tau decays on generator level. Following quantities are calculated: -This produce...
Definition: TauSpinnerProducer.h:16
virtual std::string GetProducerId() const override
Definition: TauSpinnerProducer.h:20
virtual void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: TauSpinnerProducer.cc:89
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: TauSpinnerProducer.cc:27