New code from Piergiorgio added
[u/mrichter/AliRoot.git] / STEER / AliHeader.cxx
CommitLineData
4c039060 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$Log$
8918e700 18Revision 1.2 1999/09/29 09:24:29 fca
19Introduction of the Copyright and cvs Log
20
4c039060 21*/
22
fe4da5cc 23#include "AliHeader.h"
24#include "stdio.h"
25
26ClassImp(AliHeader)
27
28AliHeader::AliHeader()
29{
8918e700 30 //
31 // Default constructor
32 //
fe4da5cc 33 fRun=0;
34 fNvertex=0;
35 fNprimary=0;
36 fNtrack=0;
37 fEvent=0;
38}
39
40AliHeader::AliHeader(Int_t run, Int_t event)
41{
8918e700 42 //
43 // Standard constructor
44 //
fe4da5cc 45 fRun=run;
46 fNvertex=0;
47 fNprimary=0;
48 fNtrack=0;
49 fEvent=event;
50}
51
52void AliHeader::Reset(Int_t run, Int_t event)
53{
8918e700 54 //
55 // Resets the header with new run and event number
56 //
fe4da5cc 57 fRun=run;
58 fNvertex=0;
59 fNprimary=0;
60 fNtrack=0;
61 fEvent=event;
62}
63
64void AliHeader::Dump()
65{
8918e700 66 //
67 // Dumps header content
68 //
fe4da5cc 69 printf(
70"\n=========== Header for run %d Event %d = beginning ======================================\n",
71 fRun,fEvent);
72 printf(" Number of Vertex %d\n",fNvertex);
73 printf(" Number of Primary %d\n",fNprimary);
74 printf(" Number of Tracks %d\n",fNtrack);
75 printf(
76 "=========== Header for run %d Event %d = end ============================================\n\n",
77 fRun,fEvent);
78}