1 |
/** @file |
/** @file |
2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.cpp,v $ |
3 |
* $Id: EventCounter.cpp,v 1.3 2009/07/29 15:47:19 mocchiut Exp $ |
* $Id: EventCounter.cpp,v 1.5 2010/02/11 09:02:15 mocchiut Exp $ |
4 |
* $Author: mocchiut $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Implementation of the EventCounter class. |
* Implementation of the EventCounter class. |
32 |
// cout << " mappa clear" << endl; |
// cout << " mappa clear" << endl; |
33 |
t=""; |
t=""; |
34 |
if ( val ){ |
if ( val ){ |
35 |
|
// printf("val delete in clear\n"); |
36 |
val->Delete(); |
val->Delete(); |
37 |
|
delete val; |
38 |
val = 0; |
val = 0; |
39 |
}; |
}; |
40 |
fend = false; |
fend = false; |
43 |
|
|
44 |
void mappa::Set(){ |
void mappa::Set(){ |
45 |
// cout << " in mappa set" << endl; |
// cout << " in mappa set" << endl; |
46 |
if (!val) val = new TClonesArray("pamela::mapval",47); |
if (val){ |
47 |
|
val->Delete(); |
48 |
|
delete val; |
49 |
|
val = 0; |
50 |
|
} |
51 |
|
val = new TClonesArray("pamela::mapval",47); |
52 |
// cout << " out mappa set" << endl; |
// cout << " out mappa set" << endl; |
53 |
} |
} |
54 |
|
|
55 |
void mappa::Delete(Option_t *t){ |
void mappa::Delete(Option_t *t){ |
56 |
// cout << " mappa del" << endl; |
// cout << " mappa del" << endl; |
57 |
if ( val ){ |
if ( val ){ |
58 |
|
// printf("val delete in delete\n"); |
59 |
val->Delete(); |
val->Delete(); |
60 |
|
delete val; |
61 |
val = 0; |
val = 0; |
62 |
// delete val; |
// delete val; |
63 |
}; |
}; |