15 embeddedIsolationTracks_(
false),
16 embeddedLeadTrack_(
false),
17 embeddedSignalTracks_(
false)
18 ,embeddedLeadPFCand_(
false)
19 ,embeddedLeadPFChargedHadrCand_(
false)
20 ,embeddedLeadPFNeutralCand_(
false)
21 ,embeddedSignalPFCands_(
false)
22 ,embeddedSignalPFChargedHadrCands_(
false)
23 ,embeddedSignalPFNeutralHadrCands_(
false)
24 ,embeddedSignalPFGammaCands_(
false)
25 ,embeddedIsolationPFCands_(
false)
26 ,embeddedIsolationPFChargedHadrCands_(
false)
27 ,embeddedIsolationPFNeutralHadrCands_(
false)
28 ,embeddedIsolationPFGammaCands_(
false)
35 embeddedIsolationTracks_(
false),
36 embeddedLeadTrack_(
false),
37 embeddedSignalTracks_(
false)
38 ,embeddedLeadPFCand_(
false)
39 ,embeddedLeadPFChargedHadrCand_(
false)
40 ,embeddedLeadPFNeutralCand_(
false)
41 ,embeddedSignalPFCands_(
false)
42 ,embeddedSignalPFChargedHadrCands_(
false)
43 ,embeddedSignalPFNeutralHadrCands_(
false)
44 ,embeddedSignalPFGammaCands_(
false)
45 ,embeddedIsolationPFCands_(
false)
46 ,embeddedIsolationPFChargedHadrCands_(
false)
47 ,embeddedIsolationPFNeutralHadrCands_(
false)
48 ,embeddedIsolationPFGammaCands_(
false)
59 embeddedIsolationTracks_(
false),
60 embeddedLeadTrack_(
false),
61 embeddedSignalTracks_(
false)
62 ,embeddedLeadPFCand_(
false)
63 ,embeddedLeadPFChargedHadrCand_(
false)
64 ,embeddedLeadPFNeutralCand_(
false)
65 ,embeddedSignalPFCands_(
false)
66 ,embeddedSignalPFChargedHadrCands_(
false)
67 ,embeddedSignalPFNeutralHadrCands_(
false)
68 ,embeddedSignalPFGammaCands_(
false)
69 ,embeddedIsolationPFCands_(
false)
70 ,embeddedIsolationPFChargedHadrCands_(
false)
71 ,embeddedIsolationPFNeutralHadrCands_(
false)
72 ,embeddedIsolationPFGammaCands_(
false)
83 embeddedIsolationTracks_(
false),
84 embeddedLeadTrack_(
false),
85 embeddedSignalTracks_(
false)
86 ,embeddedLeadPFCand_(
false)
87 ,embeddedLeadPFChargedHadrCand_(
false)
88 ,embeddedLeadPFNeutralCand_(
false)
89 ,embeddedSignalPFCands_(
false)
90 ,embeddedSignalPFChargedHadrCands_(
false)
91 ,embeddedSignalPFNeutralHadrCands_(
false)
92 ,embeddedSignalPFGammaCands_(
false)
93 ,embeddedIsolationPFCands_(
false)
94 ,embeddedIsolationPFChargedHadrCands_(
false)
95 ,embeddedIsolationPFNeutralHadrCands_(
false)
96 ,embeddedIsolationPFGammaCands_(
false)
113 out <<
"\tpat::Tau: ";
114 out << std::setiosflags(std::ios::right);
115 out << std::setiosflags(std::ios::fixed);
116 out << std::setprecision(3);
117 out <<
" E/pT/eta/phi "
175 for (
unsigned int i = 0;
i < trackRefVec.
size();
i++) {
196 for (
unsigned int i = 0;
i < trackRefVec.
size();
i++) {
217 for (std::vector<IdPair>::const_iterator it =
tauIDs_.begin(), ed =
tauIDs_.end(); it != ed; ++it) {
218 if (it->first == name)
return it->second;
221 ex <<
"pat::Tau: the ID " << name <<
" can't be found in this pat::Tau.\n";
222 ex <<
"The available IDs are: ";
223 for (std::vector<IdPair>::const_iterator it =
tauIDs_.begin(), ed =
tauIDs_.end(); it != ed; ++it) {
224 ex <<
"'" << it->first <<
"' ";
231 for (std::vector<IdPair>::const_iterator it =
tauIDs_.begin(), ed =
tauIDs_.end(); it != ed; ++it) {
232 if (it->first == name)
return true;
239 if (!
isPFTau())
throw cms::Exception(
"Type Error") <<
"Requesting a PFTau-specific information from a pat::Tau which wasn't made from a PFTau.\n";
244 if (!
isCaloTau())
throw cms::Exception(
"Type Error") <<
"Requesting a CaloTau-specific information from a pat::Tau which wasn't made from a CaloTau.\n";
252 throw cms::Exception(
"Type Error") <<
"Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
259 throw cms::Exception(
"Type Error") <<
"Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
266 throw cms::Exception(
"Type Error") <<
"Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
271 if (!
isPFTau())
throw cms::Exception(
"Type Error") <<
"Requesting a PFTau-specific information from a pat::Tau which wasn't made from a PFTau.\n";
314 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
324 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
334 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
344 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
355 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
366 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
376 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
386 for (
unsigned int i = 0;
i < candRefVec.
size();
i++) {
bool embeddedLeadPFNeutralCand_
virtual reco::TrackRef leadTrack() const
const reco::PFCandidateRef leadPFChargedHadrCand() const
reco::PFCandidateRefVector signalPFCandsTransientRefVector_
reco::PFCandidateRefVector selectedIsolationPFChargedHadrCands_
bool embeddedSignalPFChargedHadrCands_
std::vector< reco::PFCandidate > leadPFNeutralCand_
edm::BoolCache isolationPFNeutralHadrCandsRefVectorFixed_
reco::PFCandidateRefVector selectedIsolationPFGammaCands_
edm::BoolCache isolationPFCandsRefVectorFixed_
const reco::PFCandidateRefVector & isolationPFCands() const
reco::PFCandidateRefVector signalPFGammaCandsTransientRefVector_
edm::BoolCache signalTracksTransientRefVectorFixed_
virtual const reco::TrackRefVector & isolationTracks() const
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception 'not CaloTau'
std::vector< reco::PFCandidate > signalPFCands_
bool embeddedIsolationPFChargedHadrCands_
reco::TrackRefVector signalTracksTransientRefVector_
bool embeddedIsolationPFCands_
reco::PFCandidateRefVector selectedSignalPFCands_
reco::PFCandidateRefVector signalPFChargedHadrCandsTransientRefVector_
reco::PFCandidateRefVector isolationPFCandsTransientRefVector_
const reco::PFCandidateRefVector & signalPFChargedHadrCands() const
void embedLeadPFChargedHadrCand()
method to store the leading charged hadron candidate internally
const reco::PFCandidateRefVector & signalPFNeutrHadrCands() const
edm::BoolCache isolationTracksTransientRefVectorFixed_
std::vector< reco::PFCandidate > isolationPFGammaCands_
reco::PFCandidateRef leadPFChargedHadrCand_
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
void embedSignalPFGammaCands()
method to store the signal gamma candidates internally
std::vector< reco::GenJet > genJet_
void embedIsolationPFCands()
method to store the isolation candidates internally
void embedIsolationPFGammaCands()
method to store the isolation gamma candidates internally
const reco::GenJet * genJet() const
return matched GenJet, built from the visible particles of a generated tau
reco::TrackRef leadTrack() const
override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track ...
bool embeddedIsolationPFNeutralHadrCands_
void embedSignalTracks()
method to store the signal tracks internally
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception 'not PFTau'
float phiphiMoment() const
std::vector< reco::PFCandidate > leadPFCand_
virtual double eta() const
momentum pseudorapidity
bool embeddedSignalPFGammaCands_
float etaetaMoment() const
const reco::PFCandidateRefVector & signalPFCands() const
reco::PFCandidateRefVector isolationPFNeutralHadrCandsTransientRefVector_
void embedSignalPFChargedHadrCands()
method to store the signal charged hadrons candidates internally
reco::PFCandidateRefVector selectedSignalPFNeutrHadrCands_
virtual double energy() const
energy
void embedSignalPFCands()
method to store the signal candidates internally
tuple obj
Example code starts here #.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
std::vector< reco::Track > signalTracks_
std::vector< IdPair > tauIDs_
reco::PFCandidateRefVector selectedIsolationPFNeutrHadrCands_
T const * get() const
Returns C++ pointer to the item.
edm::BoolCache signalPFNeutralHadrCandsRefVectorFixed_
reco::PFCandidateRefVector isolationPFGammaCandsTransientRefVector_
bool embeddedIsolationPFGammaCands_
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
const reco::PFCandidateRefVector & isolationPFNeutrHadrCands() const
edm::BoolCache isolationPFGammaCandsRefVectorFixed_
void embedLeadTrack()
method to store the leading track internally
Analysis-level lepton class.
Jets made from MC generator particles.
bool embeddedSignalTracks_
reco::PFCandidateRefVector isolationPFChargedHadrCandsTransientRefVector_
void swap(RefVector< C, T, F > &other)
Swap two vectors.
const reco::PFCandidateRefVector & isolationPFChargedHadrCands() const
virtual const reco::TrackRefVector & signalTracks() const
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
Analysis-level tau class.
edm::BoolCache signalPFCandsRefVectorFixed_
edm::BoolCache signalPFGammaCandsRefVectorFixed_
bool embeddedLeadPFChargedHadrCand_
void embedIsolationPFNeutralHadrCands()
method to store the isolation neutral hadrons candidates internally
bool embeddedSignalPFNeutralHadrCands_
std::vector< reco::PFCandidate > isolationPFCands_
std::vector< reco::Track > isolationTracks_
bool isTauIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Tau.
void embedLeadPFNeutralCand()
method to store the leading neutral candidate internally
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
reco::PFCandidateRefVector signalPFNeutralHadrCandsTransientRefVector_
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
virtual double pt() const
transverse momentum
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
std::vector< reco::PFCandidate > signalPFGammaCands_
const reco::PFCandidateRefVector & signalPFGammaCands() const
void embedSignalPFNeutralHadrCands()
method to store the signal neutral hadrons candidates internally
std::vector< reco::Track > leadTrack_
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
edm::BoolCache signalPFChargedHadrCandsRefVectorFixed_
const reco::PFCandidateRef leadPFNeutralCand() const
void setDecayMode(int)
set decay mode
float etaphiMoment() const
const reco::PFCandidateRef leadPFCand() const
reco::PFCandidateRefVector selectedSignalPFChargedHadrCands_
void embedIsolationPFChargedHadrCands()
method to store the isolation charged hadrons candidates internally
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
bool embeddedSignalPFCands_
const reco::PFCandidateRefVector & isolationPFGammaCands() const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
float tauID(const std::string &name) const
void setGenJet(const reco::GenJetRef &ref)
set the matched GenJet
bool embeddedIsolationTracks_
void embedIsolationTracks()
method to store the isolation tracks internally
reco::PFCandidateRef leadPFNeutralCand_
reco::TrackRefVector isolationTracksTransientRefVector_
const reco::TrackRefVector & signalTracks() const
override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks ...
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
reco::PFCandidateRefVector selectedSignalPFGammaCands_
virtual double phi() const
momentum azimuthal angle
void embedLeadPFCand()
method to store the leading candidate internally
edm::BoolCache isolationPFChargedHadrCandsRefVectorFixed_
value_type const * get() const
reco::PFCandidateRefVector selectedIsolationPFCands_
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
const reco::TrackRefVector & isolationTracks() const
override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation t...
reco::PFCandidateRef leadPFCand_