adding some cuts for systematic study
[u/mrichter/AliRoot.git] / T0 / AliT0CalibLatency.cxx
CommitLineData
185b7301 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
34ClassImp(AliT0CalibLatency)
35
36//________________________________________________________________
37 AliT0CalibLatency::AliT0CalibLatency():TNamed(),
38 fLatencyL1(0),
39 fLatencyL1A(0),
40 fLatencyL1C(0),
41 fLatencyHPTDC(9000)
42
43{
44 //
45
46}
47
48//________________________________________________________________
49AliT0CalibLatency::AliT0CalibLatency(const char* name):TNamed(),
50 fLatencyL1(0),
51 fLatencyL1A(0),
52 fLatencyL1C(0),
53 fLatencyHPTDC(9000)
54
55
56{
57 //constructor
58
59 TString namst = "Calib_";
60 namst += name;
61 SetName(namst.Data());
62 SetTitle(namst.Data());
63
64 }
65
66//________________________________________________________________
67AliT0CalibLatency::AliT0CalibLatency(const AliT0CalibLatency& calibda):TNamed(calibda),
68 fLatencyL1(0),
69 fLatencyL1A(0),
70 fLatencyL1C(0),
71 fLatencyHPTDC(9000)
72{
73 // copy constructor
74 SetName(calibda.GetName());
75 SetTitle(calibda.GetName());
76
77
78}
79//________________________________________________________________
80AliT0CalibLatency &AliT0CalibLatency::operator =(const AliT0CalibLatency& calibda)
81{
82// assignment operator
83 SetName(calibda.GetName());
84 SetTitle(calibda.GetName());
85
86 return *this;
87}
88
89//________________________________________________________________
90AliT0CalibLatency::~AliT0CalibLatency()
91{
92 //
93 // destrictor
94}
95
96//________________________________________________________________
97void AliT0CalibLatency::Print(Option_t*) const
98{
99 // print time values
100
101 printf("\n ---- Latencies ----\n\n");
102 printf(" Latency HPTDC %f A&C %f A %f C %f\n", fLatencyHPTDC,fLatencyL1, fLatencyL1A, fLatencyL1C );
103}
104