]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEpidTRD.h
Various updates, including corrections for code rule violations
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEpidTRD.h
CommitLineData
809a4336 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**************************************************************************/
50685501 15//
16// TRD PID Class
17// Does PID either on a x% electron efficiency basis or on dE/dx
18// For more information please check the implementation file
19//
75d81601 20#ifndef ALIHFEPIDTRD_H
21#define ALIHFEPIDTRD_H
809a4336 22
75d81601 23 #ifndef ALIHFEPIDBASE_H
809a4336 24 #include "AliHFEpidBase.h"
25 #endif
26
722347d8 27class AliAODTrack;
28class AliAODMCParticle;
75d81601 29class AliESDtrack;
e3fc062d 30class AliHFEcollection;
722347d8 31class AliMCParticle;
809a4336 32class AliVParticle;
75d81601 33class TList;
34class TH2F;
809a4336 35
36class AliHFEpidTRD : public AliHFEpidBase{
37 public:
38 typedef enum{
39 kLQ = 0,
40 kNN = 1
41 } PIDMethodTRD_t;
dbe3abbe 42 enum{
43 kThreshParams = 24
44 };
75d81601 45 enum{
0792aa82 46 kHistTRDlikeBefore = 0,
47 kHistTRDlikeAfter = 1,
48 kHistTRDthresholds = 2,
49 kHistTRDSigV1 = 3,
50 kHistTRDSigV2 = 4,
51 kHistOverallSpecies = 5
75d81601 52 };
faee3b18 53 AliHFEpidTRD();
809a4336 54 AliHFEpidTRD(const Char_t *name);
55 AliHFEpidTRD(const AliHFEpidTRD &ref);
56 AliHFEpidTRD& operator=(const AliHFEpidTRD &ref);
57 virtual ~AliHFEpidTRD();
58
59 virtual Bool_t InitializePID();
6555e2ad 60 virtual Int_t IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *pidqa) const;
75d81601 61
6555e2ad 62 Double_t GetTRDSignalV1(const AliESDtrack *track) const;
63 Double_t GetTRDSignalV2(const AliESDtrack *track) const;
809a4336 64
e3fc062d 65 Bool_t IsCalculateTRDSignals() const { return TestBit(kTRDsignals); }
809a4336 66 void SetPIDMethod(PIDMethodTRD_t method) { fPIDMethod = method; };
67fe7bd0 67 void SetElectronEfficiency(Double_t electronEfficiency) { fElectronEfficiency = electronEfficiency; }
e3fc062d 68 void SetMinP(Double_t p) { fMinP = p; }
69 void CalculateTRDSignals(Bool_t docalc) { SetBit(kTRDsignals, docalc); }
70da6c5a 70
6555e2ad 71 Double_t GetElectronLikelihood(const AliVParticle *track, AliHFEpidObject::AnalysisType_t anaType) const;
72 Double_t GetP(const AliVParticle *track, AliHFEpidObject::AnalysisType_t anaType) const;
73 Double_t GetTRDthresholds(Double_t electronEff, Double_t p) const;
74 Double_t GetChargeLayer(const AliVParticle *track, UInt_t layer, AliHFEpidObject::AnalysisType_t anatype) const;
809a4336 75 protected:
e3fc062d 76 enum{
77 kTRDsignals = BIT(16)
78 };
809a4336 79 void Copy(TObject &ref) const;
dbe3abbe 80 void InitParameters();
e3fc062d 81 void InitParameters1DLQ();
6555e2ad 82 void GetParameters(Double_t electronEff, Double_t *parameters) const;
75d81601 83
809a4336 84 private:
75d81601 85 static const Double_t fgkVerySmall; // Check for 0
e3fc062d 86 Double_t fMinP; // Minimum momentum above which TRD PID is applied
67fe7bd0 87 Double_t fElectronEfficiency; // Cut on electron efficiency
809a4336 88 PIDMethodTRD_t fPIDMethod; // PID Method: 2D Likelihood or Neural Network
dbe3abbe 89 Double_t fThreshParams[kThreshParams]; // Threshold parametrisation
809a4336 90 ClassDef(AliHFEpidTRD, 1) // TRD electron ID class
91};
92
93#endif