Correct treatment of tracks with pT<pTmin
[u/mrichter/AliRoot.git] / ITS / AliITSTriggerAlgorithmConditions.h
CommitLineData
ad7f2bfa 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
19class 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 virtual UShort_t GetID() const {return fId;}
29 virtual const Char_t* GetLabel() const {return fLabel.Data();}
30 virtual const Char_t* GetDescription() const {return fDescription.Data();}
31
32 virtual void SetID(UShort_t id) {fId=id;}
33 virtual void SetLabel(const Char_t* label) {fLabel=label;}
34 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 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 ClassDef(AliITSTriggerAlgorithmConditions,1) // Trigger algorithm conditions class
55};
56
57#endif