]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSvImpacts.h
small fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvImpacts.h
CommitLineData
09906775 1#ifndef ALIPHOSVIMPACTS_H
2#define ALIPHOSVIMPACTS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
702ab87e 6/* $Id$ */
7
8/* History of cvs commits:
9 *
10 * $Log$
11 */
12
09906775 13//_________________________________________________________________________
14// Implementation version vImpacts of PHOS Manager class.
15// This class inherits from v1 and adds impacts storing.
16// Impacts stands for exact values of track coming to the detectors
17// EMC, CPV or PPSD.
18// Impacts are written to the same tree as hits are
19// but in separate branches.
20//*--
21//*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
22
23// --- ROOT system ---
24class TList ;
25class TLorentzVector ;
26
27
28// --- AliRoot header files ---
29#include "AliPHOSv1.h"
30
31class AliPHOSvImpacts : public AliPHOSv1 {
32
33public:
34
35 AliPHOSvImpacts(void) ;
36 AliPHOSvImpacts(const char *name, const char *title="") ;
780fda6d 37 AliPHOSvImpacts(AliPHOSvImpacts & phos) : AliPHOSv1(phos) {
38 phos.Copy(*this) ;
09906775 39 }
40 virtual ~AliPHOSvImpacts(void) ;
41
702ab87e 42 virtual void Copy(TObject & phos) const;
8e8eae84 43 virtual void AddImpact(const char* detector, Int_t shunt, Int_t primary, Int_t track,
09906775 44 Int_t module, Int_t pid, TLorentzVector p, Float_t *xyz) ;
88cb7938 45 virtual void MakeBranch(Option_t *opt=" ");
09906775 46 virtual void ResetHits();
47 virtual Int_t IsVersion(void) const {
48 // Gives the version number
49 return 1 ;
50 }
51 virtual void StepManager(void) ;
702ab87e 52 virtual const TString Version(void)const{
09906775 53 // returns the version number
54 return TString("vImpacts") ;
55 }
56
8c140292 57 AliPHOSvImpacts & operator = (const AliPHOSvImpacts & /*rvalue*/) {
09906775 58 // assignement operator requested by coding convention but not needed
f1611b7c 59 Fatal("operator =", "not implemented") ;
09906775 60 return *this ;
61 }
62
63protected:
64
65 TList * fEMCImpacts; // Array of impacts in EMC modules
66 TList * fCPVImpacts; // Array of impacts in CPV (IHEP) modules
67 TList * fPPSDImpacts; // Array of impacts in PPSD modules
68
69 Int_t fNEMCImpacts[5]; // Number of EMC impacts per module
70 Int_t fNCPVImpacts[5]; // Number of CPV impacts per module
71 Int_t fNPPSDImpacts[5]; // Number of PPSD impacts per module
72
73
74 ClassDef(AliPHOSvImpacts,1) // Implementation of PHOS manager class for layout EMC+PPSD
75
76};
77
78#endif // AliPHOSVIMPACTS_H