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 //////////////////////////////////////////////////////////////////////////
34 //______________________________________________________________________________
35 AliStats::AliStats(const char *filename, Int_t compmode, Bool_t filter)
37 // Create statistics object.
51 //______________________________________________________________________________
52 AliStats::AliStats(const AliStats &rhs): TObject(rhs)
54 // AliStats copy constructor.
59 //______________________________________________________________________________
62 // Cleanup stats object.
67 //______________________________________________________________________________
68 AliStats &AliStats::operator=(const AliStats &rhs)
70 // AliStats assignment operator.
73 TObject::operator=(rhs);
74 fEvents = rhs.fEvents;
75 fFirstRun = rhs.fFirstRun;
76 fFirstEvent = rhs.fFirstEvent;
77 fLastRun = rhs.fLastRun;
78 fLastEvent = rhs.fLastEvent;
81 fFileName = rhs.fFileName;
82 fFileSize = rhs.fFileSize;
83 fCompFactor = rhs.fCompFactor;
84 fCompMode = rhs.fCompMode;
85 fFilter = rhs.fFilter;
86 fRTHist = rhs.fRTHist ? (TH1F*) rhs.fRTHist->Clone() : 0;
92 //______________________________________________________________________________
93 void AliStats::Fill(Float_t time)
95 // Fill histogram. This histogram shows the (hopefully constant) time
96 // it takes to fill the ROOT DB.
97 // Expects to be called 100 times for each file.
100 fRTHist = new TH1F("rtime","Real-time to write data chunk", 100, 0, 100);
101 fRTHist->SetDirectory(0);
104 fRTHist->Fill(fChunk, time);