ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/src/SealModule.cc
Revision: 1.1
Committed: Fri Jun 30 10:52:15 2006 UTC (18 years, 10 months ago) by fpschill
Content type: text/plain
Branch: MAIN
Log Message:
first commit

File Contents

# User Rev Content
1 fpschill 1.1
2     #include "PluginManager/ModuleDef.h"
3     #include "FWCore/Framework/interface/MakerMacros.h"
4    
5     //-----------------------------------------------------------------------------
6    
7     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentProducer.h"
8    
9     //-----------------------------------------------------------------------------
10    
11     #include "PhysicsTools/RecoAlgos/interface/TrackSelector.h"
12     #include "DataFormats/TrackReco/interface/Track.h"
13     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentTrackSelector.h"
14    
15     struct TrackConfigSelector {
16    
17     explicit TrackConfigSelector( const edm::ParameterSet & cfg ) :
18     theSelector(cfg) {}
19    
20     bool operator()( const reco::Track & trk ) const {
21     return theSelector(trk);
22     }
23    
24     AlignmentTrackSelector theSelector;
25     };
26    
27     typedef TrackSelector<TrackConfigSelector> AlignmentTrackSelectorModule;
28    
29     //-----------------------------------------------------------------------------
30    
31     DEFINE_SEAL_MODULE();
32     DEFINE_ANOTHER_FWK_MODULE( AlignmentProducer );
33     DEFINE_ANOTHER_FWK_MODULE( AlignmentTrackSelectorModule );