]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Updates from Bartolomeu.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 May 2011 09:53:10 +0000 (09:53 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 May 2011 09:53:10 +0000 (09:53 +0000)
STEER/AliQAThresholds.cxx
STEER/AliQAThresholds.h

index a3d615105cb870f7cc365d3407dfaf8fc1af2546..a85777983a4c7ffb45b193ae95588297b3d62621 100644 (file)
-/**************************************************************************
- * 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"
-
-ClassImp(AliQAThresholds)
-
-  AliQAThresholds::AliQAThresholds(Int_t detId): TObject(), fThresholds(), fDetectorId(detId)
-{
-  // constructor
-  fThresholds.SetOwner(kTRUE);
-}
-
-AliQAThresholds::~AliQAThresholds()
-{
-  // destructor
-}
-
-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::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);
-}
-
-TObject* AliQAThresholds::GetThreshold(Int_t i)
-{
-  // Return the object at position i. Returns 0 if i is out of bounds.
-
-  return fThresholds.At(i);
-}
+/**************************************************************************\r
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
+ *                                                                        *\r
+ * Author: The ALICE Off-line Project.                                    *\r
+ * Contributors are mentioned in the code where appropriate.              *\r
+ *                                                                        *\r
+ * Permission to use, copy, modify and distribute this software and its   *\r
+ * documentation strictly for non-commercial purposes is hereby granted   *\r
+ * without fee, provided that the above copyright notice appears in all   *\r
+ * copies and that both the copyright notice and this permission notice   *\r
+ * appear in the supporting documentation. The authors make no claims     *\r
+ * about the suitability of this software for any purpose. It is          *\r
+ * provided "as is" without express or implied warranty.                  *\r
+ **************************************************************************/\r
+\r
+#include "AliQAThresholds.h"\r
+\r
+ClassImp(AliQAThresholds)\r
+\r
+  AliQAThresholds::AliQAThresholds(Int_t detId): TObject(), fThresholds(), fDetectorId(detId)\r
+{\r
+  // constructor\r
+\r
+  fThresholds.SetOwner(kTRUE);\r
+}\r
+\r
+AliQAThresholds::~AliQAThresholds()\r
+{\r
+  // destructor\r
+}\r
+\r
+Int_t AliQAThresholds::GetDetectorId()\r
+{\r
+  return fDetectorId;\r
+}\r
+\r
+void AliQAThresholds::SetDetectorId(Int_t i)\r
+{\r
+  fDetectorId = i;\r
+}\r
+\r
+void AliQAThresholds::AddThreshold(TParameter<long>* item)\r
+{\r
+  // Add a threshold at the end of the array of thresholds.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.Add(item);\r
+}\r
+void AliQAThresholds::AddThreshold(TParameter<int>* item)\r
+{\r
+  // Add a threshold at the end of the array of thresholds.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.Add(item);\r
+}\r
+void AliQAThresholds::AddThreshold(TParameter<double>* item)\r
+{\r
+  // Add a threshold at the end of the array of thresholds.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.Add(item);\r
+}\r
+void AliQAThresholds::AddThreshold(TParameter<float>* item)\r
+{\r
+  // Add a threshold at the end of the array of thresholds.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.Add(item);\r
+}\r
+\r
+void AliQAThresholds::AddThresholdAt(TParameter<int>* item, Int_t index)\r
+{\r
+  // Add a threshold at index 'index' in the array of thresholds.\r
+  // If index is larger than the current size of the array, expand the array.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.AddAtAndExpand(item, index);\r
+}\r
+void AliQAThresholds::AddThresholdAt(TParameter<long>* item, Int_t index)\r
+{\r
+  // Add a threshold at index 'index' in the array of thresholds.\r
+  // If index is larger than the current size of the array, expand the array.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.AddAtAndExpand(item, index);\r
+}\r
+void AliQAThresholds::AddThresholdAt(TParameter<double>* item, Int_t index)\r
+{\r
+  // Add a threshold at index 'index' in the array of thresholds.\r
+  // If index is larger than the current size of the array, expand the array.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.AddAtAndExpand(item, index);\r
+}\r
+void AliQAThresholds::AddThresholdAt(TParameter<float>* item, Int_t index)\r
+{\r
+  // Add a threshold at index 'index' in the array of thresholds.\r
+  // If index is larger than the current size of the array, expand the array.\r
+  // Ownership of the object is transfered to AliQAThresholds.\r
+\r
+  fThresholds.AddAtAndExpand(item, index);\r
+}\r
+\r
+TObject* AliQAThresholds::GetThreshold(Int_t i)\r
+{\r
+  // Return the object at position i. Returns 0 if i is out of bounds.\r
+\r
+  return fThresholds.At(i);\r
+}\r
+\r
+Int_t AliQAThresholds::GetSize()\r
+{\r
+  // Return the number of elements in the thresholds array. \r
+  // Beware that it is not the number of thresholds, as some elements of the array can be null. \r
+\r
+  return fThresholds.GetSize();\r
+}\r
index ace58d0b8cadefe91d52c3f3f9de636b1a8e5fd6..be336bfb23aef86776295064bb3dee7b10a73c82 100644 (file)
@@ -1,46 +1,49 @@
-#ifndef ALIQATHRESHOLDS_H
-#define ALIQATHRESHOLDS_H
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-// Container for the parameters that might be needed by the QA.              //
-// Each detector has 1 of these objects with the list of parameters.         //
-// The parameters are created online and are passed to the offline through   //
-// the shuttle to be added to the OCDB in the GRP.                           //
-// Created by Barthelemy.von.Haller@cern.ch  30/11/2010                      //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include "TObject.h"
-#include "TObjArray.h"
-#include "TParameter.h"
-
-class AliQAThresholds: public TObject {
-
- public:
-
-  AliQAThresholds(Int_t detId = -1);
-  virtual ~AliQAThresholds();
-
-  Int_t GetDetectorId();
-  void SetDetectorId(Int_t i);
-  void AddThreshold(TParameter<long>* item);
-  void AddThreshold(TParameter<int>* item);
-  void AddThreshold(TParameter<double>* item);
-  void AddThresholdAt(TParameter<long>* item, Int_t index);
-  void AddThresholdAt(TParameter<int>* item, Int_t index);
-  void AddThresholdAt(TParameter<double>* item, Int_t index);
-  TObject* GetThreshold(Int_t i);
-
- private:
-
-  TObjArray fThresholds;
-  Int_t fDetectorId;       // in the sense of the class AliDAQ
-
-  ClassDef(AliQAThresholds, 1)
-};
-
-#endif
+#ifndef ALIQATHRESHOLDS_H\r
+#define ALIQATHRESHOLDS_H\r
+\r
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
+ * See cxx source for full Copyright notice                               */\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+//                                                                           //\r
+// Container for the parameters that might be needed by the QA.              //\r
+// Each detector has 1 of these objects with the list of parameters.         //\r
+// The parameters are created online and are passed to the offline through   //\r
+// the shuttle to be added to the OCDB in the GRP.                           //\r
+// Created by Barthelemy.von.Haller@cern.ch  30/11/2010                      //\r
+//                                                                           //\r
+///////////////////////////////////////////////////////////////////////////////\r
+\r
+#include "TObject.h"\r
+#include "TObjArray.h"\r
+#include "TParameter.h"\r
+\r
+class AliQAThresholds: public TObject {\r
+\r
+ public:\r
+\r
+  AliQAThresholds(Int_t detId);\r
+  virtual ~AliQAThresholds();\r
+\r
+  Int_t GetDetectorId();\r
+  void SetDetectorId(Int_t i);\r
+  void AddThreshold(TParameter<long>* item);\r
+  void AddThreshold(TParameter<int>* item);\r
+  void AddThreshold(TParameter<double>* item);\r
+  void AddThreshold(TParameter<float>* item);\r
+  void AddThresholdAt(TParameter<long>* item, Int_t index);\r
+  void AddThresholdAt(TParameter<int>* item, Int_t index);\r
+  void AddThresholdAt(TParameter<double>* item, Int_t index);\r
+  void AddThresholdAt(TParameter<float>* item, Int_t index);\r
+  TObject* GetThreshold(Int_t i);\r
+  Int_t GetSize();\r
+\r
+ private:\r
+\r
+  TObjArray fThresholds;\r
+  Int_t fDetectorId;       // in the sense of the class AliDAQ\r
+\r
+  ClassDef(AliQAThresholds, 2)\r
+};\r
+\r
+#endif\r