Revision: | 1.1 |
Committed: | Mon May 19 16:12:13 2008 UTC (16 years, 11 months ago) by mlethuil |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | JeSuisBeaucoupPlusGrosQunReco_2_2_7_01, RecoPhoton_2_2_7_02, pat_2_2_7_01, RecoPhoton_2_2_7_01, pat_2_2_5_03, pat_2_2_5_02, pat_2_2_5_01, pat_2_1_12_02, pat_2_1_12_01, Common-2008_11_24, Common-2008_11_19, cmssw_1_6_12 |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | mlethuil | 1.1 | #include "TObject.h" |
2 | #include "TList.h" | ||
3 | |||
4 | class dummyparticle : public TObject { | ||
5 | public : | ||
6 | dummyparticle():value(0){} | ||
7 | dummyparticle(int val):value(val){} | ||
8 | int value; | ||
9 | ClassDef(dummyparticle,1); | ||
10 | }; | ||
11 | class dummyevent : public TObject { | ||
12 | public : | ||
13 | dummyevent(){list=new TList();} | ||
14 | ~dummyevent(){ | ||
15 | list->Delete(); | ||
16 | delete list; | ||
17 | } | ||
18 | void add_value(int val) {list -> AddLast(new dummyparticle(val));} | ||
19 | |||
20 | TList* list; | ||
21 | |||
22 | ClassDef(dummyevent,1); | ||
23 | }; |