/[PAMELA software]/chewbacca/event/EventCounter.cpp
ViewVC logotype

Diff of /chewbacca/event/EventCounter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mocchiut, Thu Feb 11 09:02:15 2010 UTC revision 1.6 by mocchiut, Mon Jan 19 12:34:17 2015 UTC
# Line 1  Line 1 
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.4 2009/08/04 13:58:16 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.
# Line 32  void mappa::Clear(Option_t *t){ Line 32  void mappa::Clear(Option_t *t){
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;
# Line 41  void mappa::Clear(Option_t *t){ Line 43  void mappa::Clear(Option_t *t){
43    
44  void mappa::Set(){  void mappa::Set(){
45    //  cout << " in mappa set" << endl;    //  cout << " in mappa set" << endl;
46    if (val) delete val;    if (val){
47        val->Delete();
48        delete val;
49        val = 0;
50      }
51    val = new TClonesArray("pamela::mapval",47);    val = new TClonesArray("pamela::mapval",47);
52    //  cout << " out mappa set" << endl;    //  cout << " out mappa set" << endl;
53  }  }
# Line 49  void mappa::Set(){ Line 55  void mappa::Set(){
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    };    };

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23