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 PYTHIAFILTERMOTHERSISTER_h
#define PYTHIAFILTERMOTHERSISTER_h
// -*- C++ -*-
//
// Package: PythiaFilterMotherSister
// Class: PythiaFilterMotherSister
//
/**\class PythiaFilterMotherSister PythiaFilterMotherSister.cc IOMC/PythiaFilterMotherSister/src/PythiaFilterMotherSister.cc
Description: A filter to identify a particle with given id and kinematic
&& given mother id (multiple mothers possible)
&& given id and 3d displacement of one among mother's daughters
Implementation:
Inspired by PythiaFilterMultiMother.cc
*/
//
//
//
//
//
// 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"
//
// class decleration
//
namespace edm {
class HepMCProduct;
}
class PythiaFilterMotherSister : public edm::global::EDFilter<> {
public:
explicit PythiaFilterMotherSister(const edm::ParameterSet&);
~PythiaFilterMotherSister() override;
bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
private:
// ----------member data ---------------------------
const edm::EDGetTokenT<edm::HepMCProduct> token_;
const int particleID;
const double minpcut;
const double maxpcut;
const double minptcut;
const double maxptcut;
const double minetacut;
const double maxetacut;
const double minrapcut;
const double maxrapcut;
const double minphicut;
const double maxphicut;
const double betaBoost;
std::vector<int> motherIDs;
const int sisterID;
const double maxSisDisplacement;
std::vector<int> nephewIDs;
std::vector<double> minNephewPts;
};
#endif
|