19 m_ConstituentsList_Core(),
20 m_ConstituentsList_AllSelected(),
21 m_ConstituentsList_All(),
22 m_DecayMode_BySubAlg(0),
23 m_DecayMode_ByPanTau(0),
24 m_decayModeHack_CellBasedShots(false),
33 if(m_Features !=
nullptr)
delete m_Features;
36 for(
unsigned int iConst=0; iConst<m_ConstituentsList_All.size(); iConst++) {
38 if(curConst !=
nullptr)
delete curConst;
40 m_ConstituentsList_All.clear();
41 m_ConstituentsList_AllSelected.clear();
42 m_ConstituentsList_Core.clear();
46 for(
unsigned int iType=0; iType<m_Constituents.size(); iType++) {
47 std::vector<PanTau::TauConstituent*> curConsts = m_Constituents[iType];
50 m_Constituents.clear();
59 m_IsValidSeed(rhs.m_IsValidSeed),
60 m_TechnicalQuality(rhs.m_TechnicalQuality),
61 m_TauJet(rhs.m_TauJet),
62 m_Constituents(rhs.m_Constituents),
63 m_TypeHLVs(rhs.m_TypeHLVs),
64 m_ConstituentsList_Core(rhs.m_ConstituentsList_Core),
65 m_ConstituentsList_AllSelected(rhs.m_ConstituentsList_AllSelected),
66 m_ConstituentsList_All(rhs.m_ConstituentsList_All),
67 m_DecayMode_BySubAlg(rhs.m_DecayMode_BySubAlg),
68 m_DecayMode_ByPanTau(rhs.m_DecayMode_ByPanTau),
69 m_decayModeHack_CellBasedShots(rhs.m_decayModeHack_CellBasedShots),
80 if (!this->container() && !this->hasStore() ) {
84 this->m_p4 = seed.m_p4;
85 m_IsValidSeed = seed.m_IsValidSeed;
86 m_TechnicalQuality = seed.m_TechnicalQuality;
87 m_TauJet = seed.m_TauJet;
88 m_Constituents = seed.m_Constituents;
89 m_TypeHLVs = seed.m_TypeHLVs;
90 m_ConstituentsList_Core = seed.m_ConstituentsList_Core;
91 m_ConstituentsList_AllSelected = seed.m_ConstituentsList_AllSelected;
92 m_ConstituentsList_All = seed.m_ConstituentsList_All;
93 m_decayModeHack_CellBasedShots = seed.m_decayModeHack_CellBasedShots;
95 if(m_Features)
delete m_Features;
131 return p4().Rapidity();
148 m_p4.SetPtEtaPhiM(
pt, eta, phi,
m);
155 m_p4.SetPtEtaPhiM(
pt, eta(), phi(),
m());
162 m_p4.SetPtEtaPhiM(
pt(), eta, phi(),
m());
169 m_p4.SetPtEtaPhiM(
pt(), eta(), phi,
m());
176 m_p4.SetPtEtaPhiM(
pt(), eta(), phi(),
m);
188 const std::vector<PanTau::TauConstituent*>& tauConstituents,
189 const std::vector<PanTau::TauConstituent*>& tauConstituentsAll,
190 const std::vector<int>& pantauSeed_TechnicalQuality
208 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
224 TLorentzVector hlv_SumConstituents_Core = TLorentzVector(0,0,0,0);
229 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
233 for(
unsigned int curType=0; curType<curTypes.size(); curType++) {
234 if(curTypes.at(curType) == 0)
continue;
269 const std::vector<int>& pantauSeed_TechnicalQuality)
274 m_ConstituentsList_AllSelected(),
275 m_ConstituentsList_All(),
276 m_DecayMode_BySubAlg(0),
277 m_DecayMode_ByPanTau(0),
278 m_decayModeHack_CellBasedShots(false)
325 return "InvalidMode!!!";
333 if(m_TechnicalQuality[pantauSeed_TechnicalQuality] == 1)
return true;
341 return std::vector<TauConstituent*>(0);
345 return m_Constituents.at(tauConstituent_Type);
351 std::vector<PanTau::TauConstituent*> consts = this->getConstituentsOfType(tauConstituent_Type, isOK);
353 return static_cast<int>(consts.size());
365 return m_TypeHLVs.at(tauConstituent_Type);