![]() |
![]() |
00001 #ifndef BTauReco_JetCrystalsAssociation_h 00002 #define BTauReco_JetCrystalsAssociation_h 00003 // \class JetCrystalsAssociation 00004 // 00005 // \short association of Ecal Crystals to jet 00006 // 00007 // 00008 00009 #include "DataFormats/JetReco/interface/CaloJetCollection.h" 00010 #include "DataFormats/Common/interface/Ref.h" 00011 #include "DataFormats/Common/interface/RefVector.h" 00012 #include "DataFormats/Math/interface/LorentzVector.h" 00013 #include "DataFormats/Math/interface/LorentzVectorFwd.h" 00014 #include <vector> 00015 00016 namespace reco { 00017 typedef math::PtEtaPhiELorentzVector EMLorentzVector; 00018 typedef math::PtEtaPhiELorentzVectorCollection EMLorentzVectorCollection; 00019 typedef math::PtEtaPhiELorentzVectorRef EMLorentzVectorRef; 00020 typedef math::PtEtaPhiELorentzVectorRefProd EMLorentzVectorRefProd; 00021 typedef math::PtEtaPhiELorentzVectorRefVector EMLorentzVectorRefVector; 00022 /* 00023 typedef 00024 std::pair<edm::RefToBase<Jet>, EMLorentzVectorRefVector> JetCrystalsAssociation; 00025 */ 00026 struct JetCrystalsAssociation : 00027 public std::pair<edm::RefToBase<Jet>, EMLorentzVectorRefVector> 00028 { 00029 typedef std::pair<edm::RefToBase<Jet>, EMLorentzVectorRefVector> base_class; 00030 00031 JetCrystalsAssociation() : 00032 base_class() { } 00033 00034 JetCrystalsAssociation(const base_class::first_type & first, const base_class::second_type & second) : 00035 base_class(first, second) { } 00036 00037 JetCrystalsAssociation(const base_class & _pair) : 00038 base_class(_pair) { } 00039 00040 JetCrystalsAssociation(const JetCrystalsAssociation & _pair) : 00041 base_class(_pair) { } 00042 }; 00043 typedef 00044 std::vector<JetCrystalsAssociation> JetCrystalsAssociationCollection; 00045 00046 typedef 00047 edm::Ref<JetCrystalsAssociationCollection> JetCrystalsAssociationRef; 00048 00049 typedef 00050 edm::RefProd<JetCrystalsAssociationCollection> JetCrystalsAssociationRefProd; 00051 00052 typedef 00053 edm::RefVector<JetCrystalsAssociationCollection> JetCrystalsAssociationRefVector; 00054 } 00055 #endif