AliRoot Core  3dc7879 (3dc7879)
AliVHeader.cxx
Go to the documentation of this file.
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 ClassImp(AliVHeader)
26 
27 //______________________________________________________________________________
29  TNamed("header","") { } // default constructor
30 
31 //______________________________________________________________________________
33  TNamed(hdr) { } // Copy constructor
34 
35 //______________________________________________________________________________
37 {
38  // Assignment operator
39  if(this!=&hdr) {
40  TNamed::operator=(hdr);
41  }
42  return *this;
43 }
44 
45 //____________________________________________
46 ULong64_t AliVHeader::GetEventIdAsLong() const
47 {
48  // get global bunch corssing ID - as in AliRawReader::GetEventIdAsLong
49  return (((ULong64_t)GetPeriodNumber()<<36)|((ULong64_t)GetOrbitNumber()<<12)|((ULong64_t)GetBunchCrossNumber()));
50 }
ULong64_t GetEventIdAsLong() const
Definition: AliVHeader.cxx:46
virtual UShort_t GetBunchCrossNumber() const =0
virtual UInt_t GetOrbitNumber() const =0
virtual UInt_t GetPeriodNumber() const =0
AliVHeader & operator=(const AliVHeader &evt)
Definition: AliVHeader.cxx:36