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
|
/* \class PtMinAssociatedVariableMaxCutCandSelector
*
* Candidate Selector based on a minimum pt cut
* plus a cut on an associated variable (e.g.: isolation)
*
* Usage:
*
* module selectedCands = PtMinAssociatedVariableMaxCutCandSelector {
* InputTag src = myCollection
* double ptMin = 15.0
* double max = 0.2
* }
*
* \author: Luca Lista, INFN
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
#include "CommonTools/UtilAlgos/interface/PairSelector.h"
#include "CommonTools/UtilAlgos/interface/RefSelector.h"
#include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
#include "CommonTools/UtilAlgos/interface/MaxSelector.h"
#include "DataFormats/Candidate/interface/Candidate.h"
typedef double isolation;
typedef SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation> >,
PairSelector<RefSelector<PtMinSelector>, MaxSelector<isolation> > >
PtMinAssociatedVariableMaxCutCandSelector;
DEFINE_FWK_MODULE(PtMinAssociatedVariableMaxCutCandSelector);
|