]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCReco.cxx
Update of PID config file bt Silvia
[u/mrichter/AliRoot.git] / ZDC / AliZDCReco.cxx
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 //  RecPoints classes for set ZDC             //
20 //  This class reconstructs the space         //
21 //  points from digits                        //
22 //  for the ZDC calorimeter                   //
23 ////////////////////////////////////////////////
24
25
26 #include "AliZDCReco.h"
27
28 ClassImp(AliZDCReco)
29   
30 //_____________________________________________________________________________
31 AliZDCReco::AliZDCReco(Float_t ezn1, Float_t ezp1, Float_t ezdc1, Float_t ezem,
32         Float_t ezn2, Float_t ezp2, Float_t ezdc2,
33         Int_t detspnLeft, Int_t detsppLeft, Int_t detspnRight, Int_t detsppRight,
34         Int_t trspn, Int_t trspp, Int_t trsp, Int_t part, Float_t b)
35
36   //
37   // Standard constructor
38   //
39   fZN1energy  = ezn1;
40   fZP1energy  = ezp1;
41   fZDC1energy = ezdc1;
42   fZN2energy  = ezn2;
43   fZP2energy  = ezp2;
44   fZDC2energy = ezdc2;
45   fZEMenergy = ezem;
46   fNDetSpecNLeft = detspnLeft;
47   fNDetSpecPLeft = detsppLeft;
48   fNDetSpecNRight = detspnRight;
49   fNDetSpecPRight = detsppRight;
50   fNTrueSpecN = trspn;
51   fNTrueSpecP = trspp;
52   fNTrueSpec = trsp;
53   fNPart     = part;
54   fImpPar    = b;
55   
56 }
57
58 //______________________________________________________________________________
59 void AliZDCReco::Print(Option_t *) const {
60   //
61   // Printing Reconstruction Parameters
62   //
63   printf("      ---   Reconstruction -> EZN = %f TeV, EZP = %f TeV, EZDC = %f TeV,"
64          " EZEM = %f GeV \n             NDetSpecN = %d, NDetSpecP = %d, Nspecn = %d,"
65          " Nspecp = %d, Npart = %d, b = %f fm.\n ", 
66          fZN1energy,fZP1energy,fZDC1energy,fZEMenergy,fNDetSpecNLeft,
67          fNDetSpecPLeft,fNTrueSpecN,fNTrueSpecP,fNPart,fImpPar);
68 }