]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/AliHLTEventSummary.cxx
Fixes
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTEventSummary.cxx
CommitLineData
2ff24e4c 1//-*- Mode: C++ -*-
2// $Id$
3/**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
6 * *
7 * Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
8 * for The ALICE HLT Project. *
9 * *
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 **************************************************************************/
18
19/** @file AliHLTEventSummary.cxx
20 @author Jochen Thaeder
21 @date
22 @brief Summary class for run statistics, merges all detectors
23*/
24
25// see header file for class documentation
26// or
27// refer to README to build package
28// or
29// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
30
31#if __GNUC__ >= 3
32using namespace std;
33#endif
34
35#include "AliHLTEventSummary.h"
36
37ClassImp(AliHLTEventSummary)
38
39 AliHLTEventSummary::AliHLTEventSummary() :
40 fRejected(kTRUE),
41 fRunNumber(0),
42 fRunType(0),
43 fTriggerClass(0),
44 fDetectorArray(NULL) {
45 // see header file for class documentation
46 // or
47 // refer to README to build package
48 // or
49 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
50
51 fDetectorArray = new TObjArray;
52 fDetectorArray->SetOwner();
53}
54
55AliHLTEventSummary::~AliHLTEventSummary() {
56 // see header file for class documentation
57
58 if ( fDetectorArray )
59 delete fDetectorArray;
60 fDetectorArray = NULL;
61}
62
63Bool_t AliHLTEventSummary::AddDetector( TObject * obj ) {
64 // see header file for class documentation
65
66 Bool_t bResult = kTRUE;
67
68 if ( fDetectorArray ) fDetectorArray->Add( obj );
69 else bResult = kFALSE;
70
71 return bResult;
72}