Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:01:43

0001 #include "TrackFromParentImporter.h"
0002 #include "DataFormats/ParticleFlowReco/interface/PFBlockElementGsfTrack.h"
0003 
0004 namespace {
0005   class ConvBremAdaptor {
0006   public:
0007     static bool check_importable(const reco::GsfPFRecTrackCollection::value_type& t) { return true; }
0008     static const std::vector<reco::PFRecTrackRef>& get_track_refs(const reco::GsfPFRecTrackCollection::value_type& t) {
0009       return t.convBremPFRecTrackRef();
0010     }
0011     static void set_element_info(reco::PFBlockElement* elem, const edm::Ref<reco::GsfPFRecTrackCollection>& parref) {
0012       elem->setTrackType(reco::PFBlockElement::T_FROM_GAMMACONV, true);
0013     }
0014   };
0015 }  // namespace
0016 
0017 typedef pflow::importers::TrackFromParentImporter<reco::GsfPFRecTrackCollection, ConvBremAdaptor> ConvBremTrackImporter;
0018 
0019 DEFINE_EDM_PLUGIN(BlockElementImporterFactory, ConvBremTrackImporter, "ConvBremTrackImporter");