ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

#include "AliQAThresholds.h"

#include "AliDAQ.h"

ClassImp(AliQAThresholds)

  AliQAThresholds::AliQAThresholds(Int_t detId): TNamed(), fThresholds(), fDetectorId(detId)
{
  // constructor

  fThresholds.SetOwner(kTRUE);
}

AliQAThresholds::~AliQAThresholds()
{
  // destructor
}

const char* AliQAThresholds::GetName() const 
{
  return AliDAQ::OnlineName(fDetectorId);
}

const char* AliQAThresholds::GetTitle() const 
{
  return AliDAQ::OnlineName(fDetectorId);
}

Int_t AliQAThresholds::GetDetectorId()
{
  return fDetectorId;
}

void AliQAThresholds::SetDetectorId(Int_t i)
{
  fDetectorId = i;
}

void AliQAThresholds::AddThreshold(TParameter<long>* item)
{
  // Add a threshold at the end of the array of thresholds.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<int>* item)
{
  // Add a threshold at the end of the array of thresholds.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<double>* item)
{
  // Add a threshold at the end of the array of thresholds.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<float>* item)
{
  // Add a threshold at the end of the array of thresholds.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.Add(item);
}

void AliQAThresholds::AddThresholdAt(TParameter<int>* item, Int_t index)
{
  // Add a threshold at index 'index' in the array of thresholds.
  // If index is larger than the current size of the array, expand the array.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<long>* item, Int_t index)
{
  // Add a threshold at index 'index' in the array of thresholds.
  // If index is larger than the current size of the array, expand the array.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<double>* item, Int_t index)
{
  // Add a threshold at index 'index' in the array of thresholds.
  // If index is larger than the current size of the array, expand the array.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<float>* item, Int_t index)
{
  // Add a threshold at index 'index' in the array of thresholds.
  // If index is larger than the current size of the array, expand the array.
  // Ownership of the object is transfered to AliQAThresholds.

  fThresholds.AddAtAndExpand(item, index);
}

TObject* AliQAThresholds::GetThreshold(Int_t i)
{
  // Return the object at position i. Returns 0 if i is out of bounds.

  return fThresholds.At(i);
}

Int_t AliQAThresholds::GetSize()
{
  // Return the number of elements in the thresholds array. 
  // Beware that it is not the number of thresholds, as some elements of the array can be null. 

  return fThresholds.GetSize();
}
 AliQAThresholds.cxx:1
 AliQAThresholds.cxx:2
 AliQAThresholds.cxx:3
 AliQAThresholds.cxx:4
 AliQAThresholds.cxx:5
 AliQAThresholds.cxx:6
 AliQAThresholds.cxx:7
 AliQAThresholds.cxx:8
 AliQAThresholds.cxx:9
 AliQAThresholds.cxx:10
 AliQAThresholds.cxx:11
 AliQAThresholds.cxx:12
 AliQAThresholds.cxx:13
 AliQAThresholds.cxx:14
 AliQAThresholds.cxx:15
 AliQAThresholds.cxx:16
 AliQAThresholds.cxx:17
 AliQAThresholds.cxx:18
 AliQAThresholds.cxx:19
 AliQAThresholds.cxx:20
 AliQAThresholds.cxx:21
 AliQAThresholds.cxx:22
 AliQAThresholds.cxx:23
 AliQAThresholds.cxx:24
 AliQAThresholds.cxx:25
 AliQAThresholds.cxx:26
 AliQAThresholds.cxx:27
 AliQAThresholds.cxx:28
 AliQAThresholds.cxx:29
 AliQAThresholds.cxx:30
 AliQAThresholds.cxx:31
 AliQAThresholds.cxx:32
 AliQAThresholds.cxx:33
 AliQAThresholds.cxx:34
 AliQAThresholds.cxx:35
 AliQAThresholds.cxx:36
 AliQAThresholds.cxx:37
 AliQAThresholds.cxx:38
 AliQAThresholds.cxx:39
 AliQAThresholds.cxx:40
 AliQAThresholds.cxx:41
 AliQAThresholds.cxx:42
 AliQAThresholds.cxx:43
 AliQAThresholds.cxx:44
 AliQAThresholds.cxx:45
 AliQAThresholds.cxx:46
 AliQAThresholds.cxx:47
 AliQAThresholds.cxx:48
 AliQAThresholds.cxx:49
 AliQAThresholds.cxx:50
 AliQAThresholds.cxx:51
 AliQAThresholds.cxx:52
 AliQAThresholds.cxx:53
 AliQAThresholds.cxx:54
 AliQAThresholds.cxx:55
 AliQAThresholds.cxx:56
 AliQAThresholds.cxx:57
 AliQAThresholds.cxx:58
 AliQAThresholds.cxx:59
 AliQAThresholds.cxx:60
 AliQAThresholds.cxx:61
 AliQAThresholds.cxx:62
 AliQAThresholds.cxx:63
 AliQAThresholds.cxx:64
 AliQAThresholds.cxx:65
 AliQAThresholds.cxx:66
 AliQAThresholds.cxx:67
 AliQAThresholds.cxx:68
 AliQAThresholds.cxx:69
 AliQAThresholds.cxx:70
 AliQAThresholds.cxx:71
 AliQAThresholds.cxx:72
 AliQAThresholds.cxx:73
 AliQAThresholds.cxx:74
 AliQAThresholds.cxx:75
 AliQAThresholds.cxx:76
 AliQAThresholds.cxx:77
 AliQAThresholds.cxx:78
 AliQAThresholds.cxx:79
 AliQAThresholds.cxx:80
 AliQAThresholds.cxx:81
 AliQAThresholds.cxx:82
 AliQAThresholds.cxx:83
 AliQAThresholds.cxx:84
 AliQAThresholds.cxx:85
 AliQAThresholds.cxx:86
 AliQAThresholds.cxx:87
 AliQAThresholds.cxx:88
 AliQAThresholds.cxx:89
 AliQAThresholds.cxx:90
 AliQAThresholds.cxx:91
 AliQAThresholds.cxx:92
 AliQAThresholds.cxx:93
 AliQAThresholds.cxx:94
 AliQAThresholds.cxx:95
 AliQAThresholds.cxx:96
 AliQAThresholds.cxx:97
 AliQAThresholds.cxx:98
 AliQAThresholds.cxx:99
 AliQAThresholds.cxx:100
 AliQAThresholds.cxx:101
 AliQAThresholds.cxx:102
 AliQAThresholds.cxx:103
 AliQAThresholds.cxx:104
 AliQAThresholds.cxx:105
 AliQAThresholds.cxx:106
 AliQAThresholds.cxx:107
 AliQAThresholds.cxx:108
 AliQAThresholds.cxx:109
 AliQAThresholds.cxx:110
 AliQAThresholds.cxx:111
 AliQAThresholds.cxx:112
 AliQAThresholds.cxx:113
 AliQAThresholds.cxx:114
 AliQAThresholds.cxx:115
 AliQAThresholds.cxx:116
 AliQAThresholds.cxx:117
 AliQAThresholds.cxx:118
 AliQAThresholds.cxx:119
 AliQAThresholds.cxx:120
 AliQAThresholds.cxx:121
 AliQAThresholds.cxx:122
 AliQAThresholds.cxx:123
 AliQAThresholds.cxx:124
 AliQAThresholds.cxx:125
 AliQAThresholds.cxx:126
 AliQAThresholds.cxx:127
 AliQAThresholds.cxx:128
 AliQAThresholds.cxx:129