]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliLTUConfig.cxx
Revert some lines from b840c18f + move exit from
[u/mrichter/AliRoot.git] / STEER / STEER / AliLTUConfig.cxx
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
35 using std::endl;
36 using std::cout;
37 ClassImp( AliLTUConfig )
38
39 //_____________________________________________________________________________
40 void AliLTUConfig::Print( const Option_t* ) const
41 {
42    // Print
43    cout << "LTU Config:" << endl; 
44    cout << "     Detector:  " << GetDetectorName() << "(Id=" << (Int_t)fDetectorId << ")" << endl;
45    cout << "   FineDelay1:  " << fFineDelay1 << " ns" << endl;
46    cout << "   FineDelay2:  " << fFineDelay2 << " ns" << endl;
47    cout << "   BCDelayAdd:  " << fBCDelayAdd << " ns" << endl;
48 }
49
50 //_____________________________________________________________________________
51 const char* AliLTUConfig::GetDetectorName() const
52 {
53   // Get the detector name (DAQ naming scheme)
54   return AliDAQ::DetectorName((Int_t)fDetectorId);
55 }