]>
Commit | Line | Data |
---|---|---|
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 // | |
18 | // Container class for all the information related to LHCstate, run and // | |
19 | // event types, trigger mask and trigger clusters. // | |
20 | // It is used in order to provide the detector's AliRecoParam objects with// | |
21 | // the necessary information so that they can decide which instance of // | |
22 | // AliDetectorRecoParam to use in reconstruction one particular event. // | |
23 | // // | |
24 | // cvetan.cheshkov@cern.ch 12/06/2008 // | |
25 | ////////////////////////////////////////////////////////////////////////////// | |
26 | ||
27 | #include "AliEventInfo.h" | |
28 | ||
29 | ClassImp(AliEventInfo) | |
30 | ||
31 | //______________________________________________________________________________ | |
32 | AliEventInfo::AliEventInfo(): | |
33 | TObject(), | |
34 | fLHCState("UNKNOWN"), | |
35 | fRunType("UNKNOWN"), | |
36 | fActiveDetectors(""), | |
37 | fEventType(0), | |
38 | fTriggerClasses(""), | |
39 | fTriggerMask(0), | |
40 | fTriggerCluster("") | |
41 | { | |
42 | // default constructor | |
43 | // ... | |
44 | } | |
45 | ||
46 | //______________________________________________________________________________ | |
47 | AliEventInfo::AliEventInfo(const char *lhcState, const char *runType, const char *activeDetectors): | |
48 | TObject(), | |
49 | fLHCState(lhcState), | |
50 | fRunType(runType), | |
51 | fActiveDetectors(activeDetectors), | |
52 | fEventType(0), | |
53 | fTriggerClasses(""), | |
54 | fTriggerMask(0), | |
55 | fTriggerCluster("") | |
56 | { | |
57 | // constructor | |
58 | // ... | |
59 | } | |
60 | ||
61 | //______________________________________________________________________________ | |
62 | AliEventInfo::AliEventInfo(const AliEventInfo &evInfo): | |
63 | TObject(evInfo), | |
64 | fLHCState(evInfo.fLHCState), | |
65 | fRunType(evInfo.fRunType), | |
66 | fActiveDetectors(evInfo.fActiveDetectors), | |
67 | fEventType(evInfo.fEventType), | |
68 | fTriggerClasses(evInfo.fTriggerClasses), | |
69 | fTriggerMask(evInfo.fTriggerMask), | |
70 | fTriggerCluster(evInfo.fTriggerCluster) | |
71 | { | |
72 | // Copy constructor | |
73 | // ... | |
74 | } | |
75 | ||
76 | //_____________________________________________________________________________ | |
77 | AliEventInfo &AliEventInfo::operator =(const AliEventInfo& evInfo) | |
78 | { | |
79 | // assignment operator | |
80 | // ... | |
81 | if(this==&evInfo) return *this; | |
82 | ((TObject *)this)->operator=(evInfo); | |
83 | ||
84 | fLHCState = evInfo.fLHCState; | |
85 | fRunType = evInfo.fRunType; | |
86 | fActiveDetectors = evInfo.fActiveDetectors; | |
87 | fEventType = evInfo.fEventType; | |
88 | fTriggerClasses = evInfo.fTriggerClasses; | |
89 | fTriggerMask = evInfo.fTriggerMask; | |
90 | fTriggerCluster = evInfo.fTriggerCluster; | |
91 | ||
92 | return *this; | |
93 | } | |
94 | ||
95 | //______________________________________________________________________________ | |
96 | void AliEventInfo::Reset() | |
97 | { | |
98 | // Reset the contents | |
99 | // ... | |
100 | fLHCState = "UNKNOWN"; | |
101 | fRunType = "UNKNOWN"; | |
102 | fActiveDetectors = ""; | |
103 | fEventType = 0; | |
104 | fTriggerClasses = ""; | |
105 | fTriggerMask = 0; | |
106 | fTriggerCluster = ""; | |
107 | } |