Fixes for coverity.
[u/mrichter/AliRoot.git] / STEER / STEER / AliEventInfo.cxx
CommitLineData
6769d914 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16//////////////////////////////////////////////////////////////////////////////
17// Class AliEventInfo //
7e88424f 18// Container class for all the information related to //
19// event type, trigger mask and trigger clusters. //
20// It is used together with AliRunInfo in order to provide the detector's //
21// AliRecoParam object with //
22// the necessary information so that it can decide which instance of //
23// AliDetectorRecoParam objects to use in reconstruction one particular //
24// event. //
6769d914 25// //
26// cvetan.cheshkov@cern.ch 12/06/2008 //
27//////////////////////////////////////////////////////////////////////////////
28
29#include "AliEventInfo.h"
30
31ClassImp(AliEventInfo)
32
33//______________________________________________________________________________
34AliEventInfo::AliEventInfo():
35 TObject(),
6769d914 36 fEventType(0),
37 fTriggerClasses(""),
38 fTriggerMask(0),
7c573ad6 39 fTriggerCluster(""),
40 fHLTDecision("")
6769d914 41{
42 // default constructor
43 // ...
44}
45
46//______________________________________________________________________________
7e88424f 47AliEventInfo::AliEventInfo(UInt_t evType,
48 const char *classes,
49 ULong64_t mask,
50 const char *cluster,
51 const char *decision):
6769d914 52 TObject(),
7e88424f 53 fEventType(evType),
54 fTriggerClasses(classes),
55 fTriggerMask(mask),
56 fTriggerCluster(cluster),
57 fHLTDecision(decision)
6769d914 58{
59 // constructor
60 // ...
61}
62
63//______________________________________________________________________________
64AliEventInfo::AliEventInfo(const AliEventInfo &evInfo):
65 TObject(evInfo),
6769d914 66 fEventType(evInfo.fEventType),
67 fTriggerClasses(evInfo.fTriggerClasses),
68 fTriggerMask(evInfo.fTriggerMask),
7c573ad6 69 fTriggerCluster(evInfo.fTriggerCluster),
70 fHLTDecision(evInfo.fHLTDecision)
6769d914 71{
72 // Copy constructor
73 // ...
74}
75
76//_____________________________________________________________________________
77AliEventInfo &AliEventInfo::operator =(const AliEventInfo& evInfo)
78{
79 // assignment operator
80 // ...
81 if(this==&evInfo) return *this;
82 ((TObject *)this)->operator=(evInfo);
83
6769d914 84 fEventType = evInfo.fEventType;
85 fTriggerClasses = evInfo.fTriggerClasses;
86 fTriggerMask = evInfo.fTriggerMask;
87 fTriggerCluster = evInfo.fTriggerCluster;
7c573ad6 88 fHLTDecision = evInfo.fHLTDecision;
6769d914 89
90 return *this;
91}
92
93//______________________________________________________________________________
94void AliEventInfo::Reset()
95{
96 // Reset the contents
97 // ...
6769d914 98 fEventType = 0;
99 fTriggerClasses = "";
100 fTriggerMask = 0;
101 fTriggerCluster = "";
7c573ad6 102 fHLTDecision = "";
6769d914 103}