| Line |  | 
|---|
| 1 | #ifndef MARS_MFHVNotNominal | 
|---|
| 2 | #define MARS_MFHVNotNominal | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef ROOT_TString | 
|---|
| 5 | #include <TString.h> | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef ROOT_TArrayD | 
|---|
| 9 | #include <TArrayD.h> | 
|---|
| 10 | #endif | 
|---|
| 11 |  | 
|---|
| 12 | #ifndef MARS_MFilter | 
|---|
| 13 | #include "MFilter.h" | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | class MCameraHV; | 
|---|
| 17 | class MBadPixelsCam; | 
|---|
| 18 |  | 
|---|
| 19 | class MFHVNotNominal : public MFilter | 
|---|
| 20 | { | 
|---|
| 21 | private: | 
|---|
| 22 | MCameraHV      *fHV;          // HV monitored values of all pixels in the camera | 
|---|
| 23 | MBadPixelsCam  *fBadPixels;   // Bad Pixels storage container | 
|---|
| 24 |  | 
|---|
| 25 | TString fHVConfFile; | 
|---|
| 26 | TArrayD fHVNominal; | 
|---|
| 27 | Bool_t  fResult; | 
|---|
| 28 |  | 
|---|
| 29 | Float_t fMaxHVDeviation;         // Maximum HV deviation from nominal values in %. | 
|---|
| 30 | Float_t fMaxNumPixelsDeviated;   // Maximum number of pixels with HV deviated from nominal values. | 
|---|
| 31 |  | 
|---|
| 32 | UInt_t fCut[2]; | 
|---|
| 33 |  | 
|---|
| 34 | Int_t  PreProcess(MParList *pList); | 
|---|
| 35 | Int_t  Process(); | 
|---|
| 36 | Int_t  PostProcess(); | 
|---|
| 37 |  | 
|---|
| 38 | Bool_t HVNotNominalRejection(); | 
|---|
| 39 |  | 
|---|
| 40 | Bool_t IsExpressionTrue() const { return fResult; } | 
|---|
| 41 |  | 
|---|
| 42 | public: | 
|---|
| 43 | MFHVNotNominal(const char *name=NULL, const char *title=NULL); | 
|---|
| 44 |  | 
|---|
| 45 | void    SetHVNominalValues(const TString hvconf)    { fHVConfFile = hvconf; } | 
|---|
| 46 | void    SetHVNominalValues(const TArrayD hvnominal) { fHVNominal  = hvnominal; } | 
|---|
| 47 |  | 
|---|
| 48 | void    SetMaxHVDeviation(const Float_t d)       { fMaxHVDeviation = d; } | 
|---|
| 49 | void    SetMaxNumPixelsDeviated(const Float_t n) { fMaxNumPixelsDeviated = n; } | 
|---|
| 50 |  | 
|---|
| 51 | Float_t GetfMaxHVDeviation() const          { return fMaxHVDeviation; } | 
|---|
| 52 | Float_t GetfMaxNumPixelsDeviated() const    { return fMaxNumPixelsDeviated; } | 
|---|
| 53 | TArrayD GetHVNominal() const { return fHVNominal; } | 
|---|
| 54 |  | 
|---|
| 55 | ClassDef(MFHVNotNominal, 0)   // Filter to filter the events with HV out of nominal values | 
|---|
| 56 | }; | 
|---|
| 57 |  | 
|---|
| 58 | #endif | 
|---|
| 59 |  | 
|---|
| 60 |  | 
|---|
| 61 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.