]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliLTUConfig.cxx
Init the TList with refence objects when using the copy ctor, added protection agains...
[u/mrichter/AliRoot.git] / STEER / AliLTUConfig.cxx
CommitLineData
f49525a4 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// //
18// Class that describes a detector LTU configuration //
19// //
20// //
21// Presently we store a subset of the LTU parameters: //
22// FineDelay1 3126 # picosec //
23// FineDelay2 20459 # picosec //
24// BC_DELAY_ADD 18 # ns //
25// //
26// cvetan.cheshkov@cern.ch 3/9/2010 //
27///////////////////////////////////////////////////////////////////////////////
28
29#include <Riostream.h>
30
31#include "AliLog.h"
32#include "AliDAQ.h"
33#include "AliLTUConfig.h"
34
35ClassImp( AliLTUConfig )
36
37//_____________________________________________________________________________
38void AliLTUConfig::Print( const Option_t* ) const
39{
40 // Print
41 cout << "LTU Config:" << endl;
42 cout << " Detector: " << GetDetectorName() << "(Id=" << (Int_t)fDetectorId << ")" << endl;
43 cout << " FineDelay1: " << fFineDelay1 << " ns" << endl;
44 cout << " FineDelay2: " << fFineDelay2 << " ns" << endl;
45 cout << " BCDelayAdd: " << fBCDelayAdd << " ns" << endl;
46}
47
48//_____________________________________________________________________________
49const char* AliLTUConfig::GetDetectorName() const
50{
51 // Get the detector name (DAQ naming scheme)
52 return AliDAQ::DetectorName((Int_t)fDetectorId);
53}