Line data Source code
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 : /* $Id: AliT0CalibLatency.cxx 39062 2010-02-22 09:17:47Z alla $ */
17 :
18 : ///////////////////////////////////////////////////////////////////////////////
19 : // //
20 : // class for T0 calibration TM-AC-AM_6-02-2006
21 : // equalize time shift for each time CFD channel
22 : // //
23 : ///////////////////////////////////////////////////////////////////////////////
24 :
25 : #include "AliT0CalibLatency.h"
26 : #include "AliLog.h"
27 : #include <TFile.h>
28 : #include <TMath.h>
29 : #include <TF1.h>
30 : #include <TSpectrum.h>
31 : #include <TProfile.h>
32 : #include <iostream>
33 :
34 20 : ClassImp(AliT0CalibLatency)
35 :
36 : //________________________________________________________________
37 3 : AliT0CalibLatency::AliT0CalibLatency():TNamed(),
38 3 : fLatencyL1(0),
39 3 : fLatencyL1A(0),
40 3 : fLatencyL1C(0),
41 3 : fLatencyHPTDC(9000)
42 :
43 15 : {
44 : //
45 :
46 6 : }
47 :
48 : //________________________________________________________________
49 0 : AliT0CalibLatency::AliT0CalibLatency(const char* name):TNamed(),
50 0 : fLatencyL1(0),
51 0 : fLatencyL1A(0),
52 0 : fLatencyL1C(0),
53 0 : fLatencyHPTDC(9000)
54 :
55 :
56 0 : {
57 : //constructor
58 :
59 0 : TString namst = "Calib_";
60 0 : namst += name;
61 0 : SetName(namst.Data());
62 0 : SetTitle(namst.Data());
63 :
64 0 : }
65 :
66 : //________________________________________________________________
67 0 : AliT0CalibLatency::AliT0CalibLatency(const AliT0CalibLatency& calibda):TNamed(calibda),
68 0 : fLatencyL1(0),
69 0 : fLatencyL1A(0),
70 0 : fLatencyL1C(0),
71 0 : fLatencyHPTDC(9000)
72 0 : {
73 : // copy constructor
74 0 : SetName(calibda.GetName());
75 0 : SetTitle(calibda.GetName());
76 :
77 :
78 0 : }
79 : //________________________________________________________________
80 : AliT0CalibLatency &AliT0CalibLatency::operator =(const AliT0CalibLatency& calibda)
81 : {
82 : // assignment operator
83 0 : SetName(calibda.GetName());
84 0 : SetTitle(calibda.GetName());
85 :
86 0 : return *this;
87 : }
88 :
89 : //________________________________________________________________
90 : AliT0CalibLatency::~AliT0CalibLatency()
91 0 : {
92 : //
93 : // destrictor
94 0 : }
95 :
96 : //________________________________________________________________
97 : void AliT0CalibLatency::Print(Option_t*) const
98 : {
99 : // print time values
100 :
101 0 : printf("\n ---- Latencies ----\n\n");
102 0 : printf(" Latency HPTDC %f A&C %f A %f C %f\n", fLatencyHPTDC,fLatencyL1, fLatencyL1A, fLatencyL1C );
103 0 : }
104 :
|