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
|
#ifndef PYTHIAALLDAUVFILTER_h
#define PYTHIAALLDAUVFILTER_h
// -*- C++ -*-
//
// Package: PythiaAllDauVFilter
// Class: PythiaAllDauVFilter
//
/**\class PythiaAllDauVFilter PythiaAllDauVFilter.cc
Description: Filter events using MotherId and ChildrenIds infos
Accepts if event has a specified Mother with only specified daughters and all of the daughters complies to respective pT and eta Cuts
Implementation:
<Notes on implementation>
*/
//
// Original Author: Daniele Pedrini, PythiaDauVFilter
// Aravind T S , Updated and Modified to PythiaAllDauVFilter
// Created: Apr 29 2008
// Apr 12 2021
//
//
// 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 PythiaAllDauVFilter : public edm::global::EDFilter<> {
public:
explicit PythiaAllDauVFilter(const edm::ParameterSet&);
~PythiaAllDauVFilter() override;
bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
private:
const int fVerbose;
const edm::EDGetTokenT<edm::HepMCProduct> token_;
std::vector<int> dauIDs, antiDauIDs;
const int particleID;
int antiParticleID;
const int motherID;
const bool chargeconju;
const int ndaughters;
std::vector<double> minptcut;
const double maxptcut;
std::vector<double> minetacut;
std::vector<double> maxetacut;
std::unique_ptr<Pythia8::Pythia> fLookupGen; // this instance is for accessing particleData information
};
#endif
|