LCOV - code coverage report
Current view: top level - ITS/ITSbase - AliITSTriggerAlgorithmConditions.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 8 25.0 %
Date: 2016-06-14 17:26:59 Functions: 3 12 25.0 %

          Line data    Source code
       1             : #ifndef AliITSTriggerAlgorithmConditions_H
       2             : #define AliITSTriggerAlgorithmConditions_H
       3             : 
       4             : ////////////////////////////////////////////////////////////////////////////////////
       5             : // Author: Henrik Tydesjo                                                         //
       6             : //                                                                                //
       7             : // Class for storing conditions data from Pixel Trigger (PIT) algorithms.         //
       8             : // This holds a sub set of the conditions data needed.                            //
       9             : // It is used by AliITSTriggerConditions, which holds all the information.        //
      10             : // AliITSTriggerConditions contains a TObjArray of this type.                     //
      11             : //                                                                                //
      12             : ////////////////////////////////////////////////////////////////////////////////////
      13             : 
      14             : #include <TObject.h>
      15             : #include <TString.h>
      16             : #include <TObjArray.h>
      17             : #include <TArrayI.h>
      18             : 
      19             : class AliITSTriggerAlgorithmConditions : public TObject {
      20             : 
      21             :  public:
      22             :   AliITSTriggerAlgorithmConditions();
      23             :   AliITSTriggerAlgorithmConditions(UShort_t id, const Char_t* label, const Char_t* descr);
      24             :   AliITSTriggerAlgorithmConditions(const AliITSTriggerAlgorithmConditions& cond);
      25             :   virtual ~AliITSTriggerAlgorithmConditions();
      26             :   AliITSTriggerAlgorithmConditions& operator=(const AliITSTriggerAlgorithmConditions& cond);
      27             : 
      28           0 :   virtual UShort_t      GetID() const {return fId;}
      29         640 :   virtual const Char_t* GetLabel() const {return fLabel.Data();}
      30           0 :   virtual const Char_t* GetDescription() const {return fDescription.Data();}
      31             : 
      32           0 :   virtual void          SetID(UShort_t id) {fId=id;}
      33           0 :   virtual void          SetLabel(const Char_t* label) {fLabel=label;}
      34           0 :   virtual void          SetDescription(const Char_t* descr) {fDescription=descr;}
      35             : 
      36             :   virtual void          ClearParams();
      37             : 
      38             :   virtual void          AddParam(const Char_t* name, Int_t value);
      39             : 
      40           0 :   virtual UShort_t      GetNumParam() const {return fNumParam;}
      41             :   virtual const Char_t* GetParamNameI(UShort_t index) const;
      42             :   virtual Int_t         GetParamValueI(UShort_t index) const;
      43             :   virtual Int_t         GetParamValueN(const Char_t* name) const;
      44             : 
      45             : 
      46             :  protected:
      47             :   UShort_t  fId;          // ID of output (1-10 for real system)
      48             :   TString   fLabel;       // label of output (ex: OSH1)
      49             :   TString   fDescription; // description of output
      50             :   UShort_t  fNumParam;    // Number of parameters used
      51             :   TObjArray fParamNames;  // list of parameter names (strings)
      52             :   TArrayI   fParamValues; // list of parameter values (integers)
      53             :   
      54         224 :   ClassDef(AliITSTriggerAlgorithmConditions,1) // Trigger algorithm conditions class
      55             : };
      56             : 
      57             : #endif

Generated by: LCOV version 1.11