]>
Commit | Line | Data |
---|---|---|
8a764dbc | 1 | #ifndef ALI_DETECTOR_PID_H |
2 | #define ALI_DETECTOR_PID_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //---------------------------------------------------------------// | |
7 | // Class to store raw probabilities and nsigmas // | |
8 | // of all detectors // | |
9 | // // | |
10 | // // | |
11 | // Origin: Jens Wiechula, Uni Tuebingen, jens.wiechula@cern.ch // | |
12 | //---------------------------------------------------------------// | |
13 | ||
14 | #include <TObject.h> | |
15 | #include <TClonesArray.h> | |
16 | ||
17 | #include "AliPID.h" | |
18 | #include "AliPIDResponse.h" | |
19 | ||
20 | class AliDetectorPID : public TObject { | |
21 | public: | |
22 | AliDetectorPID(); | |
23 | AliDetectorPID(const AliDetectorPID &pid); | |
24 | virtual ~AliDetectorPID(); | |
25 | AliDetectorPID& operator= (const AliDetectorPID &pid); | |
26 | ||
27 | void SetRawProbability(AliPIDResponse::EDetector det, const Double_t prob[], Int_t nspecies, AliPIDResponse::EDetPidStatus status); | |
28 | void SetNumberOfSigmas(AliPIDResponse::EDetector det, const Double_t nsig[], Int_t nspecies); | |
29 | ||
30 | AliPIDResponse::EDetPidStatus GetRawProbability(AliPIDResponse::EDetector det, Double_t prob[], Int_t nspecies) const; | |
31 | void GetNumberOfSigmas(AliPIDResponse::EDetector det, Double_t nsig[], Int_t nspecies) const; | |
32 | ||
33 | Double_t GetRawProbability(AliPIDResponse::EDetector det, AliPID::EParticleType type) const; | |
34 | Double_t GetNumberOfSigmas(AliPIDResponse::EDetector det, AliPID::EParticleType type) const; | |
1c9d11be | 35 | |
36 | Bool_t HasRawProbabilitiy(AliPIDResponse::EDetector det) const { return fArrRawProbabilities.UncheckedAt((Int_t)det)!=0x0; } | |
37 | Bool_t HasNumberOfSigmas (AliPIDResponse::EDetector det) const { return fArrNsigmas.UncheckedAt((Int_t)det)!=0x0; } | |
8a764dbc | 38 | private: |
39 | TClonesArray fArrNsigmas; // array to store nsigma values of all detectors | |
40 | TClonesArray fArrRawProbabilities; // array to strore raw probabilities of all detectors | |
41 | ||
42 | ClassDef(AliDetectorPID,1); //Store raw probabilities and nsigmas for all detectors | |
43 | }; | |
44 | ||
45 | #endif | |
46 |