Line data Source code
1 : /**************************************************************************
2 : * Copyright(c) 1998-2007, 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 : /* $Id$ */
17 :
18 : //-------------------------------------------------------------------------
19 : // Event header base class
20 : // Author: Markus Oldenburg, CERN
21 : //-------------------------------------------------------------------------
22 :
23 : #include "AliVHeader.h"
24 :
25 176 : ClassImp(AliVHeader)
26 :
27 : //______________________________________________________________________________
28 : AliVHeader::AliVHeader() :
29 42 : TNamed("header","") { } // default constructor
30 :
31 : //______________________________________________________________________________
32 : AliVHeader::AliVHeader(const AliVHeader& hdr) :
33 0 : TNamed(hdr) { } // Copy constructor
34 :
35 : //______________________________________________________________________________
36 : AliVHeader& AliVHeader::operator=(const AliVHeader& hdr)
37 : {
38 : // Assignment operator
39 4 : if(this!=&hdr) {
40 2 : TNamed::operator=(hdr);
41 2 : }
42 2 : return *this;
43 : }
44 :
45 : //____________________________________________
46 : ULong64_t AliVHeader::GetEventIdAsLong() const
47 : {
48 : // get global bunch corssing ID - as in AliRawReader::GetEventIdAsLong
49 0 : return (((ULong64_t)GetPeriodNumber()<<36)|((ULong64_t)GetOrbitNumber()<<12)|((ULong64_t)GetBunchCrossNumber()));
50 : }
|