]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSImpact.h
New default calibration parameters (Yu.Kharlov)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSImpact.h
CommitLineData
473062df 1#ifndef ALIPHOSIMPACT_H
2#define ALIPHOSIMPACT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
702ab87e 8/* History of cvs commits:
9 *
10 * $Log$
11 */
12
473062df 13//_________________________________________________________________________
14// Hit impact class for PHOS
15// A hit impact in PHOS is a set of parameters of a track which
16// enters the detector for the first time.
17// Track parameters are:
18// - track number
19// - primary particle number
20// - type of a particle
21// - impact coordinate
22// - impact 4-momentum
23//
24//*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
25
26// --- ROOT system ---
27#include <TLorentzVector.h>
28
29// --- AliRoot header files ---
30#include "AliHit.h"
31
32// --- Standard library ---
33
34class AliPHOSImpact : public AliHit {
35
36public:
37
38 AliPHOSImpact() { } // default ctor
39 AliPHOSImpact(const AliPHOSImpact & hit) ;
40 AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz);
41 virtual ~AliPHOSImpact(void) { } // dtor
42
43 Int_t GetPid(void) const {
44 // returns the particle PDG code which initiates this hit
45 return fPid ;
46 }
47 Int_t GetPrimary(void) const {
48 // returns the primary particle id at the origin of this hit
49 return fPrimary ;
50 }
51 TLorentzVector GetMomentum() const {
52 // returns momentum of the particle which initiated this hit
53 return fMomentum;
54 }
702ab87e 55 void Print(const Option_t * = "")const;
473062df 56
57private:
58
59 Int_t fPid ; // type of the particle that initiates that hit
60 Int_t fPrimary ; // Primary particles at the origine of the hit
61 TLorentzVector fMomentum; // 4-momentum of the particle
62
63 ClassDef(AliPHOSImpact,1) // Hit impact for PHOS
64
65} ;
66
67//////////////////////////////////////////////////////////////////////////////
68
69#endif // ALIPHOSIMPACT_H