LCOV - code coverage report
Current view: top level - ITSMFT/MFT/MFTbase - AliMFTVSegmentation.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 16 6.2 %
Date: 2016-06-14 17:26:59 Functions: 1 6 16.7 %

          Line data    Source code
       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             : //-----------------------------------------------------------------------------
      19             : /// \class AliMFTVSegmentation
      20             : ///
      21             : /// Abstract base class for MFT Segmentation description
      22             : ///
      23             : // author Raphael Tieulent <raphael.tieulent@cern.ch>
      24             : //-----------------------------------------------------------------------------
      25             : 
      26             : #include "AliMFTVSegmentation.h"
      27             : #include "TGeoMatrix.h"
      28             : 
      29             : /// \cond CLASSIMP
      30          14 : ClassImp(AliMFTVSegmentation);
      31             : /// \endcond
      32             : 
      33             : //-----------------------------------------------------------------------------
      34             : 
      35           0 : AliMFTVSegmentation::AliMFTVSegmentation():TNamed(),
      36           0 : fTransformation(new TGeoCombiTrans())
      37           0 : {
      38             :   /// Default constructor
      39           0 : }
      40             : //-----------------------------------------------------------------------------
      41             : 
      42           0 : AliMFTVSegmentation::AliMFTVSegmentation(const AliMFTVSegmentation& input): TNamed(),
      43           0 : fTransformation(input.fTransformation)
      44           0 : {
      45             :   /// Copy constructor
      46             :   
      47           0 :   SetUniqueID(input.GetUniqueID());
      48           0 :   SetName(input.GetName());
      49             :   
      50           0 : }
      51             : 
      52             : //-----------------------------------------------------------------------------
      53             : void AliMFTVSegmentation::SetRotationAngles(const Double_t *ang){
      54             :   /// Set Rotation Angles
      55           0 :   if(!fTransformation) fTransformation = new TGeoCombiTrans();
      56           0 :   TGeoRotation *rot = new TGeoRotation();
      57           0 :   rot->SetAngles(ang[0], ang[1], ang[2]); // all angles in degrees
      58           0 :   fTransformation->SetRotation(rot);
      59             :   
      60           0 : };

Generated by: LCOV version 1.11