Line data Source code
1 : #ifndef ALIITSBADCHANNELSAUXSPD_H
2 : #define ALIITSBADCHANNELSAUXSPD_H
3 :
4 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : /* $Id$ */
8 :
9 : /////////////////////////////////////////////////////////
10 : // AliITSBadChannelsAuxSPD declaration by P. Nilsson 2005
11 : // AUTHOR/CONTACT: Paul.Nilsson@cern.ch
12 : //
13 : // Auxiliary algorithms for the SPD
14 : /////////////////////////////////////////////////////////
15 :
16 :
17 : #include <TObjArray.h>
18 : #include <TString.h>
19 : #include "AliITSChannelSPD.h"
20 : #include "AliITSdigitSPD.h"
21 :
22 0 : class AliITSBadChannelsAuxSPD {
23 :
24 : public:
25 :
26 : AliITSBadChannelsAuxSPD(void); // Default constructor
27 0 : virtual ~AliITSBadChannelsAuxSPD(void) { }; // Default destructor
28 :
29 : // General algorithms
30 : Bool_t Diff(TObjArray *&in1, TObjArray *&in2, TObjArray *&out1, TObjArray *&out2) const; // Diff algorithm
31 : Bool_t Find(AliITSChannelSPD *&channel, TObjArray *&array) const; // Find a channel in the array
32 : Bool_t Find(AliITSdigitSPD *&digit, TObjArray *&array) const; // Find a digit in the array
33 : Int_t GetNumberOfBadChannels(Int_t* &array, Int_t* &indexArray, Int_t size) const; // Get the number of bad channels
34 :
35 : // Converters
36 : AliITSdigitSPD* CreateDigitFromChannel(const AliITSChannelSPD *&channel) const; // Create a digit from a channel
37 : AliITSChannelSPD* CreateChannelFromDigit(const AliITSdigitSPD *&digit) const; // Create a channel from a digit
38 :
39 : // Miscellanious
40 : Bool_t CreateHTMLReport(char *name, Int_t* &array, Int_t* &indexArray, // Create an HTML report
41 : Int_t indexSize, TString *buffer, Bool_t tags);
42 :
43 : protected:
44 :
45 116 : ClassDef(AliITSBadChannelsAuxSPD,1)
46 : };
47 :
48 : #endif
|