/[PAMELA software]/calo/flight/MyDetector2Level2/src/MyDect2Level2.cpp
ViewVC logotype

Contents of /calo/flight/MyDetector2Level2/src/MyDect2Level2.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Apr 18 13:12:40 2006 UTC (18 years, 7 months ago) by mocchiut
Branch: MAIN, v0r00
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Imported sources

1 #include <TObject.h>
2 #include <MyDect2Level2.h>
3 ClassImp(MyDect2TrkVar);
4 ClassImp(MyDect2Level2);
5
6 MyDect2TrkVar::MyDect2TrkVar() {
7 trkseqno = 0;
8 mytrkvar = 0;
9 }
10
11 MyDect2TrkVar::MyDect2TrkVar(const MyDect2TrkVar &t){
12 mytrkvar = t.mytrkvar;
13 trkseqno = t.trkseqno;
14 }
15
16 MyDect2Level2::MyDect2Level2() {
17 //
18 myTrk = new TClonesArray("MyDect2TrkVar",1);
19 //
20 myvar1 = 0;
21 myvar2 = 0;
22 myvar3 = 0.;
23 };
24
25 MyDect2TrkVar *MyDect2Level2::GetMyDect2TrkVar(Int_t itrk){
26 //
27 if(itrk >= ntrk()){
28 printf(" MyDect2Level2 ERROR: track related variables set %i does not exists! \n",itrk);
29 printf(" stored track related variables = %i \n",ntrk());
30 return(NULL);
31 }
32 //
33 TClonesArray &t = *(myTrk);
34 MyDect2TrkVar *mytrack = (MyDect2TrkVar*)t[itrk];
35 return mytrack;
36 }

  ViewVC Help
Powered by ViewVC 1.1.23