PythiaProbeFilter

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
#ifndef PYTHIAPROBEFILTER_h
#define PYTHIAPROBEFILTER_h
// -*- C++ -*-
//
// Package:    PythiaProbeFilter
// Class:      PythiaProbeFilter
//
/**\class PythiaProbeFilter PythiaProbeFilter.cc 

 Description: Filter to exclude selected particles from passing pT,eta cuts etc. Usefull when we are interested in a decay that its daughters should not pass any cuts, but another particle of the same flavour should e.g B+B- production with B+->K+mumu forcing (probe side) and we want mu to come from B- (tag side)

 Implementation:
     <Notes on implementation>
*/
//
// Original Author:  Georgios Karathanasis
//         Created:  Mar 14 2019
//
//

// system include files
#include <memory>

// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDFilter.h"

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include "Pythia8/Pythia.h"

//
// class decleration
//
namespace edm {
  class HepMCProduct;
}

class PythiaProbeFilter : public edm::global::EDFilter<> {
public:
  explicit PythiaProbeFilter(const edm::ParameterSet&);
  ~PythiaProbeFilter() override;

  bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
  bool AlreadyExcludedCheck(std::vector<unsigned int> excludedList, unsigned int current_part) const;

private:
  // ----------memeber function----------------------

  // ----------member data ---------------------------

  const edm::EDGetTokenT<edm::HepMCProduct> token_;
  std::vector<int> exclsisIDs;
  std::vector<int> exclauntIDs;
  const int particleID;
  const int MomID;
  const int GrandMomID;
  const bool chargeconju;
  const int nsisters;
  const int naunts;
  const double minptcut;
  const double maxptcut;
  const double minetacut;
  const double maxetacut;
  const bool countQEDCorPhotons;
  bool identicalParticle;
  std::unique_ptr<Pythia8::Pythia> fLookupGen;  // this instance is for accessing particleData information
};
#endif