ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ForwardAnalysis/Utilities/plugins/EtaMaxGenParticleSelector.cc
Revision: 1.1
Committed: Wed Jan 5 17:31:03 2011 UTC (14 years, 4 months ago) by antoniov
Content type: text/plain
Branch: MAIN
CVS Tags: V01-01-01, V01-01-00, antoniov-forwardAnalysis-09Jul2012-v1, antoniov-forwardAnalysis-29Jun2012-v1, V01-00-00, antoniov-utilities-11Jun2012-v1, antoniov-forwardAnalysis-Oct072011-v1, sfonseca_10_04_2011, antoniov-forwardAnalysis-Sep182011-v1, antoniov-forwardAnalysis-Sep102011-v1, eliza_09_02_2011, sfonseca_08_26_2011, forwardAnalysis-Aug232011-v1, forwardAnalysis-Aug172011-v1, forwardAnalysis-Aug052011-v1, forwardAnalysis-Jul222011-v1, tools-Jan062011-v1, HEAD
Log Message:
add eta-max from gen particles

File Contents

# User Rev Content
1 antoniov 1.1 #include "FWCore/Framework/interface/MakerMacros.h"
2     #include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
3     #include "CommonTools/UtilAlgos/interface/SortCollectionSelector.h"
4     #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
5     #include "ForwardAnalysis/Utilities/interface/EtaComparator.h"
6    
7     typedef ObjectSelector<
8     SortCollectionSelector<
9     reco::GenParticleCollection,
10     GreaterByEta<reco::Candidate>
11     >
12     > EtaMaxGenParticleSelector;
13    
14     typedef ObjectSelector<
15     SortCollectionSelector<
16     reco::GenParticleCollection,
17     LessByEta<reco::Candidate>
18     >
19     > EtaMinGenParticleSelector;
20    
21     DEFINE_FWK_MODULE( EtaMaxGenParticleSelector );
22     DEFINE_FWK_MODULE( EtaMinGenParticleSelector );