]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEER/AliQAThresholds.cxx
Moved in-reco analysis call before event reset; clean delete of fAnalysis
[u/mrichter/AliRoot.git] / STEER / STEER / AliQAThresholds.cxx
CommitLineData
f1a078fa 1/**************************************************************************\r
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
3 * *\r
4 * Author: The ALICE Off-line Project. *\r
5 * Contributors are mentioned in the code where appropriate. *\r
6 * *\r
7 * Permission to use, copy, modify and distribute this software and its *\r
8 * documentation strictly for non-commercial purposes is hereby granted *\r
9 * without fee, provided that the above copyright notice appears in all *\r
10 * copies and that both the copyright notice and this permission notice *\r
11 * appear in the supporting documentation. The authors make no claims *\r
12 * about the suitability of this software for any purpose. It is *\r
13 * provided "as is" without express or implied warranty. *\r
14 **************************************************************************/\r
15\r
16#include "AliQAThresholds.h"\r
17\r
18ClassImp(AliQAThresholds)\r
19\r
20 AliQAThresholds::AliQAThresholds(Int_t detId): TObject(), fThresholds(), fDetectorId(detId)\r
21{\r
22 // constructor\r
23\r
24 fThresholds.SetOwner(kTRUE);\r
25}\r
26\r
27AliQAThresholds::~AliQAThresholds()\r
28{\r
29 // destructor\r
30}\r
31\r
32Int_t AliQAThresholds::GetDetectorId()\r
33{\r
34 return fDetectorId;\r
35}\r
36\r
37void AliQAThresholds::SetDetectorId(Int_t i)\r
38{\r
39 fDetectorId = i;\r
40}\r
41\r
42void AliQAThresholds::AddThreshold(TParameter<long>* item)\r
43{\r
44 // Add a threshold at the end of the array of thresholds.\r
45 // Ownership of the object is transfered to AliQAThresholds.\r
46\r
47 fThresholds.Add(item);\r
48}\r
49void AliQAThresholds::AddThreshold(TParameter<int>* item)\r
50{\r
51 // Add a threshold at the end of the array of thresholds.\r
52 // Ownership of the object is transfered to AliQAThresholds.\r
53\r
54 fThresholds.Add(item);\r
55}\r
56void AliQAThresholds::AddThreshold(TParameter<double>* item)\r
57{\r
58 // Add a threshold at the end of the array of thresholds.\r
59 // Ownership of the object is transfered to AliQAThresholds.\r
60\r
61 fThresholds.Add(item);\r
62}\r
63void AliQAThresholds::AddThreshold(TParameter<float>* item)\r
64{\r
65 // Add a threshold at the end of the array of thresholds.\r
66 // Ownership of the object is transfered to AliQAThresholds.\r
67\r
68 fThresholds.Add(item);\r
69}\r
70\r
71void AliQAThresholds::AddThresholdAt(TParameter<int>* item, Int_t index)\r
72{\r
73 // Add a threshold at index 'index' in the array of thresholds.\r
74 // If index is larger than the current size of the array, expand the array.\r
75 // Ownership of the object is transfered to AliQAThresholds.\r
76\r
77 fThresholds.AddAtAndExpand(item, index);\r
78}\r
79void AliQAThresholds::AddThresholdAt(TParameter<long>* item, Int_t index)\r
80{\r
81 // Add a threshold at index 'index' in the array of thresholds.\r
82 // If index is larger than the current size of the array, expand the array.\r
83 // Ownership of the object is transfered to AliQAThresholds.\r
84\r
85 fThresholds.AddAtAndExpand(item, index);\r
86}\r
87void AliQAThresholds::AddThresholdAt(TParameter<double>* item, Int_t index)\r
88{\r
89 // Add a threshold at index 'index' in the array of thresholds.\r
90 // If index is larger than the current size of the array, expand the array.\r
91 // Ownership of the object is transfered to AliQAThresholds.\r
92\r
93 fThresholds.AddAtAndExpand(item, index);\r
94}\r
95void AliQAThresholds::AddThresholdAt(TParameter<float>* item, Int_t index)\r
96{\r
97 // Add a threshold at index 'index' in the array of thresholds.\r
98 // If index is larger than the current size of the array, expand the array.\r
99 // Ownership of the object is transfered to AliQAThresholds.\r
100\r
101 fThresholds.AddAtAndExpand(item, index);\r
102}\r
103\r
104TObject* AliQAThresholds::GetThreshold(Int_t i)\r
105{\r
106 // Return the object at position i. Returns 0 if i is out of bounds.\r
107\r
108 return fThresholds.At(i);\r
109}\r
110\r
111Int_t AliQAThresholds::GetSize()\r
112{\r
113 // Return the number of elements in the thresholds array. \r
114 // Beware that it is not the number of thresholds, as some elements of the array can be null. \r
115\r
116 return fThresholds.GetSize();\r
117}\r