]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDetectorTagCuts.h
Fix for Coverity warning 16208
[u/mrichter/AliRoot.git] / STEER / AliDetectorTagCuts.h
1 #ifndef ALIDETECTORTAGCUTS_H
2 #define ALIDETECTORTAGCUTS_H
3 /*  See cxx source for full Copyright notice */
4
5
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //                       Class AliDetectorTagCuts
10 //              This is the class for the cuts in run tags
11 //
12 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
13 //-------------------------------------------------------------------------
14
15 #include <TObject.h>
16 #include <TString.h>
17 #include <AliDAQ.h>
18
19 class AliDetectorTag;
20
21 //___________________________________________________________________________
22 class AliDetectorTagCuts : public TObject {
23  public:
24   AliDetectorTagCuts();
25   ~AliDetectorTagCuts();
26    
27  //____________________________________________________//
28   void SetListOfDetectors(const TString& detectors) {fDetectorsDAQ = AliDAQ::DetectorPattern(detectors); fDetectorsReco = AliDAQ::DetectorPattern(detectors); fDetectorsFlag = kTRUE;}
29   void SetListOfDetectorsDAQ(const TString& detectors) {fDetectorsDAQ = AliDAQ::DetectorPattern(detectors); fDetectorsFlag = kTRUE;}
30   void SetListOfDetectorsReco(const TString& detectors) {fDetectorsReco = AliDAQ::DetectorPattern(detectors); fDetectorsFlag = kTRUE;}
31   void SetDetectorValidityValue(TString det, UShort_t val);
32  
33   Bool_t IsAccepted(AliDetectorTag *detTag) const;
34
35   //____________________________________________________//
36  private:
37   //  Bool_t  IsSelected(TString detName, TString& detectors) const;
38
39   //  TString fDetectors; //detectors active
40   UInt_t fDetectorsReco;  //selected detector pattern for Reco
41   UInt_t fDetectorsDAQ;   //selected detector pattern for DAQ
42   Bool_t fDetectorsFlag; //cut used or not
43   UShort_t   fDetectorValidityMatch[AliDAQ::kHLTId]; // Detector validity to match
44   Bool_t     fDetectorValidityFlag[AliDAQ::kHLTId];  // Flag if validity match is to be used
45   
46   ClassDef(AliDetectorTagCuts, 3)
47 };
48
49 #endif