18 m_ConstituentsList_Core(),
19 m_ConstituentsList_AllSelected(),
20 m_ConstituentsList_All(),
21 m_DecayMode_BySubAlg(0),
22 m_DecayMode_ByPanTau(0),
23 m_decayModeHack_CellBasedShots(false),
32 if(m_Features !=
nullptr)
delete m_Features;
35 for(
unsigned int iConst=0; iConst<m_ConstituentsList_All.size(); iConst++) {
37 if(curConst !=
nullptr)
delete curConst;
39 m_ConstituentsList_All.clear();
40 m_ConstituentsList_AllSelected.clear();
41 m_ConstituentsList_Core.clear();
45 for(
unsigned int iType=0; iType<m_Constituents.size(); iType++) {
46 std::vector<PanTau::TauConstituent*> curConsts = m_Constituents[iType];
49 m_Constituents.clear();
58 m_IsValidSeed(rhs.m_IsValidSeed),
59 m_TechnicalQuality(rhs.m_TechnicalQuality),
60 m_TauJet(rhs.m_TauJet),
61 m_Constituents(rhs.m_Constituents),
62 m_TypeHLVs(rhs.m_TypeHLVs),
63 m_ConstituentsList_Core(rhs.m_ConstituentsList_Core),
64 m_ConstituentsList_AllSelected(rhs.m_ConstituentsList_AllSelected),
65 m_ConstituentsList_All(rhs.m_ConstituentsList_All),
66 m_DecayMode_BySubAlg(rhs.m_DecayMode_BySubAlg),
67 m_DecayMode_ByPanTau(rhs.m_DecayMode_ByPanTau),
68 m_decayModeHack_CellBasedShots(rhs.m_decayModeHack_CellBasedShots),
79 if (!this->container() && !this->hasStore() ) {
83 this->m_p4 = seed.m_p4;
84 m_IsValidSeed = seed.m_IsValidSeed;
85 m_TechnicalQuality = seed.m_TechnicalQuality;
86 m_TauJet = seed.m_TauJet;
87 m_Constituents = seed.m_Constituents;
88 m_TypeHLVs = seed.m_TypeHLVs;
89 m_ConstituentsList_Core = seed.m_ConstituentsList_Core;
90 m_ConstituentsList_AllSelected = seed.m_ConstituentsList_AllSelected;
91 m_ConstituentsList_All = seed.m_ConstituentsList_All;
92 m_decayModeHack_CellBasedShots = seed.m_decayModeHack_CellBasedShots;
94 if(m_Features)
delete m_Features;
130 return p4().Rapidity();
154 m_p4.SetPtEtaPhiM(
pt,
eta(),
phi(),
m());
161 m_p4.SetPtEtaPhiM(
pt(),
eta,
phi(),
m());
168 m_p4.SetPtEtaPhiM(
pt(),
eta(),
phi,
m());
175 m_p4.SetPtEtaPhiM(
pt(),
eta(),
phi(),
m);
187 const std::vector<PanTau::TauConstituent*>& tauConstituents,
188 const std::vector<PanTau::TauConstituent*>& tauConstituentsAll,
189 const std::vector<int>& pantauSeed_TechnicalQuality
207 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
223 TLorentzVector hlv_SumConstituents_Core = TLorentzVector(0,0,0,0);
228 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
232 for(
unsigned int curType=0; curType<curTypes.size(); curType++) {
233 if(curTypes.at(curType) == 0)
continue;
268 const std::vector<int>& pantauSeed_TechnicalQuality)
273 m_ConstituentsList_AllSelected(),
274 m_ConstituentsList_All(),
275 m_DecayMode_BySubAlg(0),
276 m_DecayMode_ByPanTau(0),
277 m_decayModeHack_CellBasedShots(false)
324 return "InvalidMode!!!";
332 if(m_TechnicalQuality[pantauSeed_TechnicalQuality] == 1)
return true;
340 return std::vector<TauConstituent*>(0);
344 return m_Constituents.at(tauConstituent_Type);
350 std::vector<PanTau::TauConstituent*> consts = this->getConstituentsOfType(tauConstituent_Type, isOK);
352 return static_cast<int>(consts.size());
364 return m_TypeHLVs.at(tauConstituent_Type);