Go to the documentation of this file. 1 #ifndef RecoTauTag_RecoTau_RecoTauConstructor_h
2 #define RecoTauTag_RecoTau_RecoTauConstructor_h
49 bool copyGammasFromPiZeros =
false,
87 template <
typename InputIterator>
89 for (InputIterator iter =
begin; iter !=
end; ++iter) {
101 template <
typename InputIterator>
103 for (InputIterator iter =
begin; iter !=
end; ++iter) {
115 template <
typename InputIterator>
117 for (InputIterator iter =
begin; iter !=
end; ++iter) {
123 std::unique_ptr<reco::PFTau>
get(
bool setupLeadingCandidates =
true);
154 std::unique_ptr<reco::PFTau>
tau_;
std::map< CollectionKey, SortedListPtr > SortedCollectionMap
double minAbsPhotonSumPt_insideSignalCone_
CollectionMap collections_
const StringObjectFunction< reco::PFTau > * signalConeSize_
void setleadNeutralCand(const T &cand)
Set leading PFGamma candidate.
void addPFCand(Region region, ParticleType type, const CandidatePtr &ptr, bool skipAddToP4=false)
Append a PFCandidateRef/Ptr to a given collection.
void reservePiZero(Region region, size_t size)
Reserve a set amount of space for the PiZeros.
const reco::Candidate::LorentzVector & p4() const
RecoTauConstructor(const JetBaseRef &jetRef, const edm::Handle< edm::View< reco::Candidate > > &pfCands, bool copyGammasFromPiZeros=false, const StringObjectFunction< reco::PFTau > *signalConeSize=nullptr, double minAbsPhotonSumPt_insideSignalCone=2.5, double minRelPhotonSumPt_insideSignalCone=0., double minAbsPhotonSumPt_outsideSignalCone=1.e+9, double minRelPhotonSumPt_outsideSignalCone=1.e+9)
Constructor with PFCandidate Handle.
void addPiZeros(Region region, const InputIterator &begin, const InputIterator &end)
Add a list of pizeros to the input collection.
minRelPhotonSumPt_outsideSignalCone
SortedCollectionMap sortedCollections_
void addTauChargedHadron(Region region, const PFRecoTauChargedHadron &chargedHadron)
Add a ChargedHadron to the given collection.
void addTauChargedHadrons(Region region, const InputIterator &begin, const InputIterator &end)
Add a list of charged hadrons to the input collection.
minAbsPhotonSumPt_outsideSignalCone
void addPiZero(Region region, const RecoTauPiZero &piZero)
Add a PiZero to the given collection.
std::unique_ptr< reco::PFTau > get(bool setupLeadingCandidates=true)
reco::Candidate::LorentzVector p4_
void addPFCands(Region region, ParticleType type, const InputIterator &begin, const InputIterator &end)
std::unique_ptr< reco::PFTau > tau_
double minRelPhotonSumPt_insideSignalCone_
std::shared_ptr< std::vector< CandidatePtr > > SortedListPtr
std::vector< CandidatePtr > * getCollection(Region region, ParticleType type)
void sortAndCopyIntoTau()
SortedListPtr getSortedCollection(Region region, ParticleType type)
void reserveTauChargedHadron(Region region, size_t size)
Reserve a set amount of space for the ChargedHadrons.
minRelPhotonSumPt_insideSignalCone
CandidatePtr convertToPtr(const PFCandidatePtr &pfPtr) const
void setleadCand(const T &cand)
Set leading PF candidate.
double minRelPhotonSumPt_outsideSignalCone_
double minAbsPhotonSumPt_outsideSignalCone_
void reserve(Region region, ParticleType type, size_t size)
Reserve a set amount of space for a given RefVector.
std::pair< Region, ParticleType > CollectionKey
void setleadChargedHadrCand(const T &cand)
Set leading PFChargedHadron candidate.
const edm::Handle< edm::View< reco::Candidate > > & pfCands_
std::map< CollectionKey, std::vector< CandidatePtr > * > CollectionMap
math::XYZTLorentzVector LorentzVector
Lorentz vector.
minAbsPhotonSumPt_insideSignalCone