@@ -24,7 +24,7 @@ panda::GenParticle::getListOfBranches()
2424{
2525 utils::BranchList blist;
2626 blist += PackedParticle::getListOfBranches ();
27- blist += {" pdgid" , " finalState" , " statusFlags" , " parent_" };
27+ blist += {" pdgid" , " finalState" , " miniaodPacked " , " statusFlags" , " parent_" };
2828 return blist;
2929}
3030
@@ -35,6 +35,7 @@ panda::GenParticle::datastore::allocate(UInt_t _nmax)
3535
3636 pdgid = new Int_t[nmax_];
3737 finalState = new Bool_t[nmax_];
38+ miniaodPacked = new Bool_t[nmax_];
3839 statusFlags = new UShort_t[nmax_];
3940 parent_ = new Short_t[nmax_];
4041}
@@ -48,6 +49,8 @@ panda::GenParticle::datastore::deallocate()
4849 pdgid = 0 ;
4950 delete [] finalState;
5051 finalState = 0 ;
52+ delete [] miniaodPacked;
53+ miniaodPacked = 0 ;
5154 delete [] statusFlags;
5255 statusFlags = 0 ;
5356 delete [] parent_;
@@ -61,6 +64,7 @@ panda::GenParticle::datastore::setStatus(TTree& _tree, TString const& _name, uti
6164
6265 utils::setStatus (_tree, _name, " pdgid" , _branches);
6366 utils::setStatus (_tree, _name, " finalState" , _branches);
67+ utils::setStatus (_tree, _name, " miniaodPacked" , _branches);
6468 utils::setStatus (_tree, _name, " statusFlags" , _branches);
6569 utils::setStatus (_tree, _name, " parent_" , _branches);
6670}
@@ -72,6 +76,7 @@ panda::GenParticle::datastore::getStatus(TTree& _tree, TString const& _name) con
7276
7377 blist.push_back (utils::getStatus (_tree, _name, " pdgid" ));
7478 blist.push_back (utils::getStatus (_tree, _name, " finalState" ));
79+ blist.push_back (utils::getStatus (_tree, _name, " miniaodPacked" ));
7580 blist.push_back (utils::getStatus (_tree, _name, " statusFlags" ));
7681 blist.push_back (utils::getStatus (_tree, _name, " parent_" ));
7782
@@ -85,6 +90,7 @@ panda::GenParticle::datastore::setAddress(TTree& _tree, TString const& _name, ut
8590
8691 utils::setAddress (_tree, _name, " pdgid" , pdgid, _branches, _setStatus);
8792 utils::setAddress (_tree, _name, " finalState" , finalState, _branches, _setStatus);
93+ utils::setAddress (_tree, _name, " miniaodPacked" , miniaodPacked, _branches, _setStatus);
8894 utils::setAddress (_tree, _name, " statusFlags" , statusFlags, _branches, _setStatus);
8995 utils::setAddress (_tree, _name, " parent_" , parent_, _branches, _setStatus);
9096}
@@ -98,6 +104,7 @@ panda::GenParticle::datastore::book(TTree& _tree, TString const& _name, utils::B
98104
99105 utils::book (_tree, _name, " pdgid" , size, ' I' , pdgid, _branches);
100106 utils::book (_tree, _name, " finalState" , size, ' O' , finalState, _branches);
107+ utils::book (_tree, _name, " miniaodPacked" , size, ' O' , miniaodPacked, _branches);
101108 utils::book (_tree, _name, " statusFlags" , size, ' s' , statusFlags, _branches);
102109 utils::book (_tree, _name, " parent_" , size, ' S' , parent_, _branches);
103110}
@@ -109,6 +116,7 @@ panda::GenParticle::datastore::releaseTree(TTree& _tree, TString const& _name)
109116
110117 utils::resetAddress (_tree, _name, " pdgid" );
111118 utils::resetAddress (_tree, _name, " finalState" );
119+ utils::resetAddress (_tree, _name, " miniaodPacked" );
112120 utils::resetAddress (_tree, _name, " statusFlags" );
113121 utils::resetAddress (_tree, _name, " parent_" );
114122}
@@ -131,6 +139,7 @@ panda::GenParticle::GenParticle(char const* _name/* = ""*/) :
131139 PackedParticle(new GenParticleArray(1 , _name)),
132140 pdgid(gStore .getData(this ).pdgid[0]),
133141 finalState(gStore .getData(this ).finalState[0]),
142+ miniaodPacked(gStore .getData(this ).miniaodPacked[0]),
134143 statusFlags(gStore .getData(this ).statusFlags[0]),
135144 parent(gStore .getData(this ).parentContainer_, gStore.getData(this ).parent_[0])
136145{
@@ -140,13 +149,15 @@ panda::GenParticle::GenParticle(GenParticle const& _src) :
140149 PackedParticle(new GenParticleArray(1 , _src.getName())),
141150 pdgid(gStore .getData(this ).pdgid[0]),
142151 finalState(gStore .getData(this ).finalState[0]),
152+ miniaodPacked(gStore .getData(this ).miniaodPacked[0]),
143153 statusFlags(gStore .getData(this ).statusFlags[0]),
144154 parent(gStore .getData(this ).parentContainer_, gStore.getData(this ).parent_[0])
145155{
146156 PackedParticle::operator =(_src);
147157
148158 pdgid = _src.pdgid ;
149159 finalState = _src.finalState ;
160+ miniaodPacked = _src.miniaodPacked ;
150161 statusFlags = _src.statusFlags ;
151162 parent = _src.parent ;
152163}
@@ -155,6 +166,7 @@ panda::GenParticle::GenParticle(datastore& _data, UInt_t _idx) :
155166 PackedParticle(_data, _idx),
156167 pdgid(_data.pdgid[_idx]),
157168 finalState(_data.finalState[_idx]),
169+ miniaodPacked(_data.miniaodPacked[_idx]),
158170 statusFlags(_data.statusFlags[_idx]),
159171 parent(_data.parentContainer_, _data.parent_[_idx])
160172{
@@ -164,6 +176,7 @@ panda::GenParticle::GenParticle(ArrayBase* _array) :
164176 PackedParticle(_array),
165177 pdgid(gStore .getData(this ).pdgid[0]),
166178 finalState(gStore .getData(this ).finalState[0]),
179+ miniaodPacked(gStore .getData(this ).miniaodPacked[0]),
167180 statusFlags(gStore .getData(this ).statusFlags[0]),
168181 parent(gStore .getData(this ).parentContainer_, gStore.getData(this ).parent_[0])
169182{
@@ -191,6 +204,7 @@ panda::GenParticle::operator=(GenParticle const& _src)
191204
192205 pdgid = _src.pdgid ;
193206 finalState = _src.finalState ;
207+ miniaodPacked = _src.miniaodPacked ;
194208 statusFlags = _src.statusFlags ;
195209 parent = _src.parent ;
196210
@@ -207,6 +221,7 @@ panda::GenParticle::doBook_(TTree& _tree, TString const& _name, utils::BranchLis
207221
208222 utils::book (_tree, _name, " pdgid" , " " , ' I' , &pdgid, _branches);
209223 utils::book (_tree, _name, " finalState" , " " , ' O' , &finalState, _branches);
224+ utils::book (_tree, _name, " miniaodPacked" , " " , ' O' , &miniaodPacked, _branches);
210225 utils::book (_tree, _name, " statusFlags" , " " , ' s' , &statusFlags, _branches);
211226 utils::book (_tree, _name, " parent_" , " " , ' S' , gStore .getData (this ).parent_ , _branches);
212227}
@@ -218,6 +233,7 @@ panda::GenParticle::doInit_()
218233
219234 pdgid = 0 ;
220235 finalState = false ;
236+ miniaodPacked = false ;
221237 statusFlags = 0 ;
222238 parent.init ();
223239
@@ -244,6 +260,7 @@ panda::GenParticle::dump(std::ostream& _out/* = std::cout*/) const
244260
245261 _out << " pdgid = " << pdgid << std::endl;
246262 _out << " finalState = " << finalState << std::endl;
263+ _out << " miniaodPacked = " << miniaodPacked << std::endl;
247264 _out << " statusFlags = " << statusFlags << std::endl;
248265 _out << " parent = " << parent << std::endl;
249266}
0 commit comments