JeffersonLab / hpstr

Heavy Photon Search Toolkit for Reconstruction
2 stars 19 forks source link

Use smart pointers instead of bare pointers. #15

Open pbutti opened 5 years ago

pbutti commented 5 years ago

Update the code to use smart pointers instead of bare pointers

mholtrop commented 4 years ago

Related would be to move consistently to "vector< Whatever >" instead of TClonesArray Whatever, and have the pointers that go into the vector<> protected by std::unique_ptr.

I think it would be good to get consistent with this before too much code depends on this choice.

pbutti commented 4 years ago

Hi Maurik,

Ok. I'll harmonise the code before the end of the week