]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AOD/AliNanoAODStorage.cxx
Add comment about fixing the dependencies
[u/mrichter/AliRoot.git] / STEER / AOD / AliNanoAODStorage.cxx
1 #include "AliNanoAODStorage.h"
2 #include "AliNanoAODTrackMapping.h"
3
4 ClassImp(AliNanoAODStorage)
5
6 void AliNanoAODStorage::AllocateInternalStorage(Int_t size) {
7   // Creates the internal array
8   if(size == 0){
9     AliError("Zero size");
10     return;
11   }
12   fNVars = size;
13   fVars.clear();
14   fVars.resize(size, 0);
15   // if(fVars) {
16   //   delete[] fVars;
17   // }
18   // fVars = new Double_t[fNVars];
19   // for (Int_t ivar = 0; ivar<fNVars; ivar++) {
20   //   fVars[ivar]=0;
21   // }
22 }
23
24 AliNanoAODStorage& AliNanoAODStorage::operator=(const AliNanoAODStorage& sto)
25 {
26   // Assignment operator
27   AllocateInternalStorage(sto.fNVars);
28   if(this!=&sto) {
29     for (Int_t isize = 0; isize<sto.fNVars; isize++) {
30       SetVar(isize, sto.GetVar(isize));    
31     }
32     
33   }
34
35   return *this;
36 }