]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSQAAlarm.cxx
Coding convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAAlarm.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 /* $Id$ */
17
18 //_________________________________________________________________________
19 // An alarm object that is instanciated by a AliPHOSQACheckable in response to
20 // a AliPHOSQAChecker
21 //*-- Author :  Yves Schutz (SUBATECH) 
22 //////////////////////////////////////////////////////////////////////////////
23
24 // --- ROOT system ---
25
26 // --- Standard library ---
27
28 // --- AliRoot header files ---
29
30 #include "AliPHOSQAAlarm.h"
31 #include "AliRun.h"
32
33 ClassImp(AliPHOSQAAlarm)
34
35
36 //____________________________________________________________________________ 
37   AliPHOSQAAlarm::AliPHOSQAAlarm(TString time, TString checked, TString checker, TString  message)  
38 {
39   // ctor
40  fTime    = time ; 
41  fCable   = checked ; 
42  fCer     = checker ; 
43  fMessage = message ; 
44  fEvent   = gAlice->GetEvNumber() ;
45 }
46
47 //____________________________________________________________________________ 
48   AliPHOSQAAlarm::~AliPHOSQAAlarm()
49 {
50   // dtor
51 }
52
53 //____________________________________________________________________________ 
54   void AliPHOSQAAlarm::Print()
55 {
56   // print the message 
57
58   Info("Print", "Event# %d %s", fEvent, fMessage.Data()) ;  
59 }