]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSPlaneEffSSD.h
Plane efficiency framework (Guiseppe)
[u/mrichter/AliRoot.git] / ITS / AliITSPlaneEffSSD.h
CommitLineData
6344adcc 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
18class 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;}
7167ae53 53 // method to locate a basic block from Detector Local coordinate (to be used in tracking)
54 // see file cxx for numbering convention.
55 // here idet runs from 0 to 747 for layer 4 and from 0 to 949 for layer 5
56 UInt_t GetKeyFromDetLocCoord(Int_t ilay,Int_t idet, Float_t, Float_t locz) const;
57 UInt_t Nblock() const; // return the number of basic blocks
6344adcc 58
59 protected:
60 virtual void Copy(TObject &obj) const;
61 Int_t GetMissingTracksForGivenEff(Double_t eff, Double_t RelErr, UInt_t im) const;
62
63//
64 Int_t fFound[kNModule]; // number of associated clusters in a given module
65 Int_t fTried[kNModule]; // number of tracks used for module efficiency evaluation
66 private:
67 UInt_t GetKey(const UInt_t mod) const; // unique key to locate the basic
68 // block of the SSD (the module itself)
69 UInt_t GetModFromKey(const UInt_t key) const;
70 void GetBadInModule(const UInt_t mod, UInt_t& bad) const;
71
72 ClassDef(AliITSPlaneEffSSD,1) // SSD Plane Efficiency class
73};
7167ae53 74//
75inline UInt_t AliITSPlaneEffSSD::Nblock() const {return kNModule;}
76//
6344adcc 77#endif
78