1 #ifndef RecoTauTag_RecoTau_RecoTauConstructor_h
2 #define RecoTauTag_RecoTau_RecoTauConstructor_h
34 namespace reco {
namespace tau {
53 bool copyGammasFromPiZeros=
false);
83 template<
typename InputIterator>
85 const InputIterator&
begin,
const InputIterator&
end) {
86 for(InputIterator iter = begin; iter !=
end; ++iter) {
98 template<
typename InputIterator>
100 const InputIterator&
begin,
const InputIterator&
end)
102 for(InputIterator iter = begin; iter !=
end; ++iter)
109 std::auto_ptr<reco::PFTau>
get(
bool setupLeadingCandidates=
true);
135 std::auto_ptr<reco::PFTau>
tau_;
reco::Candidate::LorentzVector p4_
CollectionMap collections_
void reserve(Region region, ParticleType type, size_t size)
Reserve a set amount of space for a given RefVector.
std::map< CollectionKey, SortedListPtr > SortedCollectionMap
void addPFCand(Region region, ParticleType type, const PFCandidateRef &ref)
Append a PFCandidateRef to a given collection.
void addPiZeros(Region region, const InputIterator &begin, const InputIterator &end)
Add a list of pi zeros to the input collection.
SortedCollectionMap sortedCollections_
const edm::Handle< PFCandidateCollection > & pfCands_
PFCandidateRef convertToRef(const PFCandidatePtr &pfPtr) const
SortedListPtr getSortedCollection(Region region, ParticleType type)
const reco::Candidate::LorentzVector & p4() const
std::pair< Region, ParticleType > CollectionKey
void setleadPFCand(const T &cand)
Set leading PF candidate.
void addPFCands(Region region, ParticleType type, const InputIterator &begin, const InputIterator &end)
boost::shared_ptr< std::vector< PFCandidateRef > > SortedListPtr
PFCandidateRefVector * getCollection(Region region, ParticleType type)
std::map< CollectionKey, PFCandidateRefVector * > CollectionMap
std::auto_ptr< reco::PFTau > tau_
void reservePiZero(Region region, size_t size)
Reserve a set amount of space for the PiZeros.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void setleadPFChargedHadrCand(const T &cand)
Set leading PFChargedHadron candidate.
RecoTauConstructor(const PFJetRef &jetRef, const edm::Handle< PFCandidateCollection > &pfCands, bool copyGammasFromPiZeros=false)
Constructor with PFCandidate Handle.
void setleadPFNeutralCand(const T &cand)
Set leading PFGamma candidate.
void sortAndCopyIntoTau()
void addPiZero(Region region, const RecoTauPiZero &piZero)
Add a PiZero to the given collection.
tuple size
Write out results.