]>
Commit | Line | Data |
---|---|---|
2f4cac02 | 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 notifce * | |
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 | // $Id: AliJHeader.cxx,v 1.2 2008/01/21 11:56:39 djkim Exp $ | |
17 | ||
18 | //////////////////////////////////////////////////// | |
19 | // | |
20 | // \file AliJHeader.cxx | |
21 | // \brief | |
22 | // \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
23 | // \email: djkim@jyu.fi | |
24 | // \version $Revision: 1.1 $ | |
25 | // \date $Date: 2008/05/02 11:56:39 $ | |
26 | // | |
27 | // Base clase for event header | |
28 | //////////////////////////////////////////////////// | |
29 | ||
30 | #include "AliPhJBaseHeader.h" | |
31 | #include "AliJHeader.h" | |
32 | ||
33 | ClassImp(AliJHeader) | |
34 | ||
35 | //______________________________________________________________________________ | |
36 | AliJHeader::AliJHeader(): | |
37 | AliPhJBaseHeader(), | |
38 | fTriggerMaskAlice(0), | |
39 | fTriggerMaskJCorran(0), | |
40 | fSPDTrackletMult(-999), | |
41 | fEventType(0) | |
42 | { | |
43 | // default constructor | |
44 | } | |
45 | ||
46 | //______________________________________________________________________________ | |
47 | AliJHeader::AliJHeader( | |
48 | int eventid, | |
49 | short cent, | |
50 | float vrtz, | |
51 | ULong64_t trigmaskAli, | |
52 | UInt_t trigmaskJC, | |
53 | Int_t refmult, | |
54 | UInt_t eventType): | |
55 | ||
56 | AliPhJBaseHeader(eventid,cent,vrtz), | |
57 | fTriggerMaskAlice(trigmaskAli), | |
58 | fTriggerMaskJCorran(trigmaskJC), | |
59 | fSPDTrackletMult(refmult), | |
60 | fEventType(eventType) | |
61 | { | |
62 | //constructor | |
63 | } | |
64 | //______________________________________________________________________________ | |
65 | AliJHeader::AliJHeader(const AliJHeader& a): | |
66 | AliPhJBaseHeader(a), | |
67 | fTriggerMaskAlice(a.fTriggerMaskAlice), | |
68 | fTriggerMaskJCorran(a.fTriggerMaskJCorran), | |
69 | fSPDTrackletMult(a.fSPDTrackletMult), | |
70 | fEventType(a.fEventType) | |
71 | { | |
72 | //copy constructor | |
73 | } | |
74 | ||
75 | //______________________________________________________________________________ | |
76 | AliJHeader& AliJHeader::operator=(const AliJHeader& header){ | |
77 | //overloaded operator = | |
78 | if (this != &header) { | |
79 | AliPhJBaseHeader::operator=(header); | |
80 | fTriggerMaskAlice = header.fTriggerMaskAlice; | |
81 | fTriggerMaskJCorran = header.fTriggerMaskJCorran; | |
82 | fSPDTrackletMult = header.fSPDTrackletMult; | |
83 | fEventType = header.fEventType; | |
84 | } | |
85 | ||
86 | return *this; | |
87 | } | |
88 | ||
89 | ||
90 |