LCOV - code coverage report
Current view: top level - STEER/AOD - AliAODPhoton.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 30 3.3 %
Date: 2016-06-14 17:26:59 Functions: 1 14 7.1 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-2007, 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             : //     AOD class for photons
      20             : //     Author: Yves Schutz, CERN
      21             : //-------------------------------------------------------------------------
      22             : 
      23             : #include <TLorentzVector.h>
      24             : #include "AliAODPhoton.h"
      25             : 
      26         170 : ClassImp(AliAODPhoton)
      27             : 
      28             : 
      29             : //______________________________________________________________________________
      30             : AliAODPhoton::AliAODPhoton() :
      31           0 :     AliVParticle(),
      32           0 :     fMomentum(0)
      33           0 : {
      34             :   // constructor
      35           0 : }
      36             : 
      37             : AliAODPhoton::AliAODPhoton(Double_t px, Double_t py, Double_t pz, Double_t e):
      38           0 :     AliVParticle(),
      39           0 :     fMomentum(0)
      40           0 : {
      41             :   // constructor
      42           0 :     fMomentum = new TLorentzVector(px, py, pz, e);
      43           0 : }
      44             : 
      45             : AliAODPhoton::AliAODPhoton(TLorentzVector & p):
      46           0 :     AliVParticle(),
      47           0 :     fMomentum(0)
      48           0 : {
      49             :   // constructor
      50           0 :     fMomentum = new TLorentzVector(p);
      51           0 : }
      52             : 
      53             : 
      54             : //______________________________________________________________________________
      55             : AliAODPhoton::~AliAODPhoton() 
      56           0 : {
      57             :   // destructor
      58           0 :     delete fMomentum;
      59           0 : }
      60             : 
      61             : //______________________________________________________________________________
      62             : AliAODPhoton::AliAODPhoton(const AliAODPhoton& photon) :
      63           0 :     AliVParticle(photon),
      64           0 :     fMomentum(0)
      65           0 : {
      66             :   // Copy constructor
      67           0 :     fMomentum = new TLorentzVector(*photon.fMomentum);
      68             :     
      69           0 : }
      70             : 
      71             : //______________________________________________________________________________
      72             : AliAODPhoton& AliAODPhoton::operator=(const AliAODPhoton& photon)
      73             : {
      74             :   // Assignment operator
      75             :   if(this!=&photon) {
      76             :   }
      77             : 
      78           0 :   return *this;
      79             : }
      80             : 
      81             : void AliAODPhoton::Print(Option_t* /*option*/) const 
      82             : {
      83             :   // Print information of all data members
      84           0 :   printf("Photon 4-vector:\n");
      85           0 :   printf("     E  = %13.3f\n", E() );
      86           0 :   printf("     Px = %13.3f\n", Px());
      87           0 :   printf("     Py = %13.3f\n", Py());
      88           0 :   printf("     Pz = %13.3f\n", Pz());
      89           0 : }

Generated by: LCOV version 1.11