1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONRecoTrack
20 /// This class represents a reconstructed muon track
21 /// in the tree of reconstructed events.
23 /// \author Mihaela Gheata, Andrei Gheata 09/10/00
24 //-----------------------------------------------------------------------------
26 #include <Riostream.h>
28 #include "AliMUONRecoTrack.h"
31 ClassImp(AliMUONRecoTrack)
34 //-------------------------------------------------------------------
35 AliMUONRecoTrack::AliMUONRecoTrack()
42 /// Default constructor
45 //-------------------------------------------------------------------
46 AliMUONRecoTrack::AliMUONRecoTrack(Bool_t active)
53 /// Constructor of AliMUONRecoTrack
55 for (Int_t axis=0; axis<3; axis++) {
58 for (Int_t chamber=0; chamber<10; chamber++) {
66 //-------------------------------------------------------------------
67 AliMUONRecoTrack::~AliMUONRecoTrack()
72 //-------------------------------------------------------------------
73 Double_t AliMUONRecoTrack::Phi() const
75 /// Return trach phi angle
76 return TMath::ATan2(fPr[2], fPr[1]);
79 //-------------------------------------------------------------------
80 Double_t AliMUONRecoTrack::Theta() const
82 /// Return trach theta angle
83 return TMath::ACos(fPr[2] / P());
86 //-------------------------------------------------------------------
87 void AliMUONRecoTrack::SetMomReconstr(Double_t px, Double_t py, Double_t pz)
89 /// Set the track reconstructed momentum
95 //-------------------------------------------------------------------
96 void AliMUONRecoTrack::SetHitPosition(Int_t chamber, Double_t x, Double_t y, Double_t z)
98 /// Set hit coordinates in chamber[0..9]
104 //-------------------------------------------------------------------
105 void AliMUONRecoTrack::TrackInfo() const
107 /// Prints momentum info for this track
108 cout << "Px=" << GetMomReconstr(0) << " Py=" << GetMomReconstr(1) <<
109 " Pz=" << GetMomReconstr(2) << " P=" << P() << endl;