classes for the PID construction
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPIDv1.h
CommitLineData
c9b2f104 1#ifndef ALIEMCALPIDV1_H
2#define ALIEMCALPIDV1_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
8
9//_________________________________________________________________________
10// Implementation version v1 of the EMCAL particle identifier
11// Identification is based on information from CPV and EMC
12// Oh yeah
13//*-- Author: Yves Schutz (SUBATECH), Gustavo Conesa.
14
15// --- ROOT system ---
16//class TFormula ;
17class TVector3 ;
18class TMatrixD ;
19class TPrincipal ;
20
21// --- Standard library ---
22
23// --- AliRoot header files ---
24class AliEMCALEmcRecPoint ;
25class AliEMCALRecPoint ;
26
27#include "AliEMCALPID.h"
28
29class AliEMCALPIDv1 : public AliEMCALPID {
30
31 public:
32
33 AliEMCALPIDv1() ; // ctor
34 AliEMCALPIDv1(const char* headerFile, const char * tsBranch = "Default", const Bool_t toSplit=kFALSE) ;
35
36 virtual ~AliEMCALPIDv1() ; // dtor
37
38 virtual void Exec(Option_t * option) ;
39 // virtual char * GetRecParticlesBranch()const {return (char*) fRecParticlesTitle.Data() ;}
40 // virtual char * GetTrackSegmentsBranch()const{return (char*) fTrackSegmentsTitle.Data(); }
41 virtual const Int_t GetRecParticlesInRun() const {return fRecParticlesInRun ;}
42
43 virtual void Print(Option_t * option) const {}
44 void Print() ;
45
46
47 //To turn on or off the Pi0 analysis
48 const Bool_t GetPi0Analysis(){return fPi0Analysis;}
49 void SetPi0Analysis(Bool_t turnonoff){ fPi0Analysis = turnonoff; }
50
51 virtual const char * Version() const { return "pid-v1" ; }
52
53 private:
54
55 const TString BranchName() const ;
56 virtual void Init() ;
57 virtual void InitParameters() ;
58 void MakeRecParticles(void ) ;
59 void PrintRecParticles(Option_t * option) ;
60 virtual void WriteRecParticles(Int_t event) ;
61
62
63
64 private:
65
66 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
67 TString fFileName ; // File that contains the Principal file for analysis
68 TString fFileNamePar ;// File that contains the parameters for analysis
69 Int_t fNEvent ; //! current event number
70 Bool_t fPi0Analysis; //! Pi0 analysis on or off
71 Int_t fRecParticlesInRun ; //! Total number of recparticles in one run
72
73 ClassDef( AliEMCALPIDv1,6) // Particle identifier implementation version 1
74
75};
76
77#endif // AliEMCALPIDV1_H