Line data Source code
1 : #include "AliNanoAODStorage.h"
2 : #include "AliNanoAODTrackMapping.h"
3 : #include "AliLog.h"
4 :
5 170 : ClassImp(AliNanoAODStorage)
6 :
7 : void AliNanoAODStorage::AllocateInternalStorage(Int_t size) {
8 : // Creates the internal array
9 0 : if(size == 0){
10 0 : AliError("Zero size");
11 0 : return;
12 : }
13 0 : fNVars = size;
14 0 : fVars.clear();
15 0 : fVars.resize(size, 0);
16 : // if(fVars) {
17 : // delete[] fVars;
18 : // }
19 : // fVars = new Double_t[fNVars];
20 : // for (Int_t ivar = 0; ivar<fNVars; ivar++) {
21 : // fVars[ivar]=0;
22 : // }
23 0 : }
24 :
25 : AliNanoAODStorage& AliNanoAODStorage::operator=(const AliNanoAODStorage& sto)
26 : {
27 : // Assignment operator
28 0 : AllocateInternalStorage(sto.fNVars);
29 0 : if(this!=&sto) {
30 0 : for (Int_t isize = 0; isize<sto.fNVars; isize++) {
31 0 : SetVar(isize, sto.GetVar(isize));
32 : }
33 :
34 0 : }
35 :
36 0 : return *this;
37 : }
38 :
39 : void
40 : AliNanoAODStorage::Complain(Int_t index) const {
41 0 : AliFatal(Form("Variable %d not included in this special aod", index));
42 0 : }
43 :
|