3 /**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
7 * Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
8 * for The ALICE HLT Project. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 /** @file AliHLTRunSummary.cxx
20 @author Jochen Thaeder
22 @brief Summary class for a run, merges all detectors
25 // see header file for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
35 #include "AliHLTRunSummary.h"
37 ClassImp(AliHLTRunSummary)
39 AliHLTRunSummary::AliHLTRunSummary() :
45 fDetectorArray(NULL) {
46 // see header file for class documentation
48 // refer to README to build package
50 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
52 memset( fTriggerClasses, 0, (gkNCTPTriggerClasses * sizeof(ULong_t)) );
54 fDetectorArray = new TObjArray;
55 fDetectorArray->SetOwner();
58 AliHLTRunSummary::~AliHLTRunSummary() {
59 // see header file for class documentation
62 delete fDetectorArray;
63 fDetectorArray = NULL;
67 Bool_t AliHLTRunSummary::AddTriggerClass( Int_t ndx ) {
68 // see header file for class documentation
70 Bool_t bResult = kTRUE;
72 if ( ndx < gkNCTPTriggerClasses ) fTriggerClasses[ndx]++;
73 else bResult = kFALSE;
78 Bool_t AliHLTRunSummary::AddDetector( TObject * obj ) {
79 // see header file for class documentation
81 Bool_t bResult = kTRUE;
83 if ( fDetectorArray ) fDetectorArray->Add( obj );
84 else bResult = kFALSE;