]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSPLANEEFFSSD_H | |
2 | #define ALIITSPLANEEFFSSD_H | |
3 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | #include "AliITSPlaneEff.h" | |
8 | ||
9 | /////////////////////////////////////////// | |
10 | // // | |
11 | // ITS Plane Efficiency class // | |
12 | // for SSD // | |
13 | // Origin: Giuseppe.Bruno@ba.infn.it // | |
14 | /////////////////////////////////////////// | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
18 | class AliITSPlaneEffSSD : public AliITSPlaneEff { | |
19 | public: | |
20 | AliITSPlaneEffSSD(); // default constructor | |
21 | virtual ~AliITSPlaneEffSSD(); // destructror | |
22 | // copy constructor | |
23 | AliITSPlaneEffSSD(const AliITSPlaneEffSSD &source); | |
24 | // ass. operator | |
25 | AliITSPlaneEffSSD& operator=(const AliITSPlaneEffSSD &s); | |
26 | virtual AliITSPlaneEff& operator=(const AliITSPlaneEff &source); | |
27 | // Simple way to add another class (i.e. statistics). | |
28 | AliITSPlaneEffSSD& operator +=( const AliITSPlaneEffSSD &add); | |
29 | // Getters for average Plane efficiency (icluding dead/noisy) | |
30 | Double_t PlaneEff(const UInt_t mod) const; | |
31 | Double_t ErrPlaneEff(const UInt_t mod) const; | |
32 | // Methods to update the Plane efficiency (specific of the SSD segmentation) | |
33 | Bool_t UpDatePlaneEff(const Bool_t Kfound, const UInt_t mod); | |
34 | // | |
35 | enum {kNModule = 1698}; // The number of modules | |
36 | enum {kNChip = 6}; // The number of chips per side of a module (2 sides: 12 chips) | |
37 | enum {kNSide = 2}; // The number of sides of a module (p and n side) | |
38 | enum {kNStrip = 128}; // The number of strips per chip (in a module 2*768 strips) | |
39 | // | |
40 | // UInt_t GetChip(const UInt_t col) const; // get the chip number (from 0 to kNChip) | |
41 | // Plane efficiency for active detector (excluding dead/noisy channels) | |
42 | // access to DB is needed | |
43 | virtual Double_t LivePlaneEff(UInt_t mod) const; | |
44 | virtual Double_t ErrLivePlaneEff(UInt_t mod) const; | |
45 | // Compute the fraction of Live area (of the module for the SSD) | |
46 | virtual Double_t GetFracLive(const UInt_t mod) const; | |
47 | // Compute the fraction of bad (i.e. dead and noisy) area (of the module for the SSD) | |
48 | virtual Double_t GetFracBad(const UInt_t mod) const; | |
49 | virtual Bool_t WriteIntoCDB() const; | |
50 | virtual Bool_t ReadFromCDB(); // this method reads Data Members (statistics) from DataBase | |
51 | virtual Bool_t AddFromCDB() // this method updates Data Members (statistics) from DataBase | |
52 | {AliError("AddFromCDB: Still To be implemented"); return kFALSE;} | |
53 | ||
54 | protected: | |
55 | virtual void Copy(TObject &obj) const; | |
56 | Int_t GetMissingTracksForGivenEff(Double_t eff, Double_t RelErr, UInt_t im) const; | |
57 | ||
58 | // | |
59 | Int_t fFound[kNModule]; // number of associated clusters in a given module | |
60 | Int_t fTried[kNModule]; // number of tracks used for module efficiency evaluation | |
61 | private: | |
62 | UInt_t GetKey(const UInt_t mod) const; // unique key to locate the basic | |
63 | // block of the SSD (the module itself) | |
64 | UInt_t GetModFromKey(const UInt_t key) const; | |
65 | void GetBadInModule(const UInt_t mod, UInt_t& bad) const; | |
66 | ||
67 | ClassDef(AliITSPlaneEffSSD,1) // SSD Plane Efficiency class | |
68 | }; | |
69 | #endif | |
70 |