]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSPlaneEffSSD.h
Changing default for raw data layout
[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
aa0de373 58 // compute the geometrical limit of a basic block (chip) in detector local coordinate system
59 Bool_t GetBlockBoundaries(const UInt_t key,Float_t& xmn,Float_t& xmx,Float_t& zmn,Float_t& zmx) const;
6344adcc 60
61 protected:
62 virtual void Copy(TObject &obj) const;
63 Int_t GetMissingTracksForGivenEff(Double_t eff, Double_t RelErr, UInt_t im) const;
64
65//
66 Int_t fFound[kNModule]; // number of associated clusters in a given module
67 Int_t fTried[kNModule]; // number of tracks used for module efficiency evaluation
68 private:
69 UInt_t GetKey(const UInt_t mod) const; // unique key to locate the basic
70 // block of the SSD (the module itself)
71 UInt_t GetModFromKey(const UInt_t key) const;
72 void GetBadInModule(const UInt_t mod, UInt_t& bad) const;
73
74 ClassDef(AliITSPlaneEffSSD,1) // SSD Plane Efficiency class
75};
7167ae53 76//
77inline UInt_t AliITSPlaneEffSSD::Nblock() const {return kNModule;}
aa0de373 78inline Bool_t AliITSPlaneEffSSD::GetBlockBoundaries(const UInt_t key,Float_t& xmn,Float_t& xmx,
79 Float_t& zmn,Float_t& zmx) const {
80// This method return the geometrical boundaries of the active volume of a given
81// basic block, in the detector reference system.
82//
83if(key>=kNModule)
84 {AliWarning("GetBlockBoundaries: you asked for a non existing key"); return kFALSE;}
85const Float_t kDxDefault = 72960.; // For Plane Eff. purpouses, default values
86const Float_t kDzDefault = 40000.; // are precise enough !!!
87const Float_t kconv = 1.0E-04; //converts microns to cm.
88xmn=-kconv*kDxDefault/2.; xmx=kconv*kDxDefault/2.;
89zmn=-kconv*kDzDefault/2.; zmx=kconv*kDzDefault/2.;
90return kTRUE;
91}
7167ae53 92//
6344adcc 93#endif
94