1 // @(#)alimdc:$Name$:$Id$
2 // Author: Fons Rademakers 26/11/99
4 /**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 //////////////////////////////////////////////////////////////////////////
23 //////////////////////////////////////////////////////////////////////////
28 #include "AliRawEvent.h"
29 #include "AliRawEventHeader.h"
37 //______________________________________________________________________________
38 AliStats::AliStats(const char *filename, Int_t compmode, Bool_t filter)
40 // Create statistics object.
54 //______________________________________________________________________________
55 AliStats::AliStats(const AliStats &rhs): TObject(rhs)
57 // AliStats copy constructor.
62 //______________________________________________________________________________
65 // Cleanup stats object.
70 //______________________________________________________________________________
71 AliStats &AliStats::operator=(const AliStats &rhs)
73 // AliStats assignment operator.
76 TObject::operator=(rhs);
77 fEvents = rhs.fEvents;
78 fFirstRun = rhs.fFirstRun;
79 fFirstEvent = rhs.fFirstEvent;
80 fLastRun = rhs.fLastRun;
81 fLastEvent = rhs.fLastEvent;
84 fFileName = rhs.fFileName;
85 fFileSize = rhs.fFileSize;
86 fCompFactor = rhs.fCompFactor;
87 fCompMode = rhs.fCompMode;
88 fFilter = rhs.fFilter;
89 fRTHist = rhs.fRTHist ? (TH1F*) rhs.fRTHist->Clone() : 0;
95 //______________________________________________________________________________
96 void AliStats::Fill(Float_t time)
98 // Fill histogram. This histogram shows the (hopefully constant) time
99 // it takes to fill the ROOT DB.
100 // Expects to be called 100 times for each file.
103 fRTHist = new TH1F("rtime","Real-time to write data chunk", 100, 0, 100);
104 fRTHist->SetDirectory(0);
107 fRTHist->Fill(fChunk, time);