AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTVSegmentation.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
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  **************************************************************************/
15 
16 // $Id$
17 
18 //-----------------------------------------------------------------------------
23 // author Raphael Tieulent <raphael.tieulent@cern.ch>
24 //-----------------------------------------------------------------------------
25 
26 #include "AliMFTVSegmentation.h"
27 #include "TGeoMatrix.h"
28 
32 
33 //-----------------------------------------------------------------------------
34 
36 fTransformation(new TGeoCombiTrans())
37 {
39 }
40 //-----------------------------------------------------------------------------
41 
43 fTransformation(input.fTransformation)
44 {
46 
47  SetUniqueID(input.GetUniqueID());
48  SetName(input.GetName());
49 
50 }
51 
52 //-----------------------------------------------------------------------------
53 void AliMFTVSegmentation::SetRotationAngles(const Double_t *ang){
55  if(!fTransformation) fTransformation = new TGeoCombiTrans();
56  TGeoRotation *rot = new TGeoRotation();
57  rot->SetAngles(ang[0], ang[1], ang[2]); // all angles in degrees
58  fTransformation->SetRotation(rot);
59 
60 };
Abstract base class for MFT Segmentation description.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
TGeoCombiTrans * fTransformation
Represent a rotation folowed by a translation. The rotation is a composition of : first a rotation ab...
void SetRotationAngles(const Double_t *ang)
Set The rotation angles. Unit is [deg].