/[PAMELA software]/PamelaLevel2/doc/examples/NOTES.txt
ViewVC logotype

Contents of /PamelaLevel2/doc/examples/NOTES.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 18 09:23:55 2007 UTC (17 years, 10 months ago) by pam-fi
Branch: MAIN
CVS Tags: v5r00, v3r03, v4r00, v10RED, v6r00, v9r00, HEAD
File MIME type: text/plain
notes to v3r00 and above

1 =======================================================
2 January 2007 (versions v3r00 and above)
3 =======================================================
4 The definition of the classes PamLevel2 and PamTrack
5 has been basically changed, in order to solve some memory
6 leaks.
7
8 In order to use the new library (which is recommended)
9 YOU HAVE TO ADAPT YOUR CODE.
10
11 In order to access the members of the detector classes from a
12 PamLevel2 object you have now to call the methods
13
14 TrkLevel2* PamLevel2::GetTrkLevel2()
15 CaloLevel2* PamLevel2::GetCaloLevel2()
16 OrbitalInfo* PamLevel2::GetOrbitalInfo()
17 ecc...
18
19 For example:
20
21 PamLevel2* pam_event = new PamLevel2();
22 cout << pam_event->GetCaloLevel2()->qtot << endl;
23
24 The same is for the track. The class PamTrack combines the
25 track-related info from tracker, calorimeter and TOF. To access the
26 members of these detector track-related members you have to call the methods:
27
28 TrkTrack* PamTrack::GetTrkTrack()
29 CaloTrkVar* PamTrack::GetCaloTrack()
30 ToFTrkVar* PamTrack::GetToFTrack()
31
32 For example:
33
34 PamTrack *track = pam_event->GetTrack(0);
35 if(track){
36 cout<< track->GetTrkTrack()->GetRigidity()<<endl;
37 cout<< track->GetToFTrack()->beta[12]<<endl;
38 cout<< track->GetCaloTrack()->ncore<<endl;
39 }
40
41 The method
42
43 PamTrack *PamLevel2::GetTrack(Int_t it)
44
45 return a PamTrack object, and gives the track solving the tracker ambiguity
46 by means of calorimeter and tof info.
47
48 If you want the ambiguity solved by means of the tracker itself, you have
49 to use:
50
51 TrkTrack *TrkLevel2::GetTrack(Int_t it)
52
53 For example:
54
55 TrkTrack *trk_track = pam_event->GetTrkLevel2()->GetTrack(0);
56 if(trk_track) cout<< trk_track->GetRigidity()<<endl;
57
58 (NB!! it returns a TrkTrack* only, not a PamTrack*)

  ViewVC Help
Powered by ViewVC 1.1.23