]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/ITS/AliMeanVertexPreprocessorOffline.h
Updating: Mean Vertex status return (D. Caffarri).
[u/mrichter/AliRoot.git] / PWGPP / ITS / AliMeanVertexPreprocessorOffline.h
1 #ifndef ALI_MEANVERTEX_PREPROCESSOROFFLINE_H
2 #define ALI_MEANVERTEX_PREPRECESSOROFFLINE_H
3
4 /* Copyright(c) 1998-2011, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6  
7 /* $Id: AliMeanVertexPreprocessor.h $ */
8
9
10 // Mean vertex preprocessor. 
11 // Davide Caffarri
12 //
13 #include "TNamed.h"
14 class AliCDBStorage;
15
16 class AliMeanVertexPreprocessorOffline: public TNamed 
17 {
18   public:
19         AliMeanVertexPreprocessorOffline();  
20         virtual ~AliMeanVertexPreprocessorOffline();
21
22         void  ProcessOutput(const char *filename, AliCDBStorage *db, Int_t runNb);
23         Int_t GetStatus();
24
25   private:
26         AliMeanVertexPreprocessorOffline(const AliMeanVertexPreprocessorOffline & proc); // copy constructor    
27         AliMeanVertexPreprocessorOffline& operator=(const AliMeanVertexPreprocessorOffline&); //operator
28         
29         enum EStatusCode_t {
30           kOk,
31           kInputError, /* open file error, missing histos */
32           kLowStatistics, /* too low statistics */
33           kStoreError, /* problems storing OCDB */
34           kWriteMeanVertexSPD, /*write MeanVertex computed online*/
35           kUseOfflineSPDvtx,  /*write SPD vtx offline*/
36           kLumiRegCovMatrixProblem, /*lumi region or cov matrix computation problems, default values set*/
37           kNStatusCodes
38         };
39
40         Int_t fStatus; /* status code */
41         static const Char_t *fgkStatusCodeName[kNStatusCodes];
42         
43         ClassDef(AliMeanVertexPreprocessorOffline, 2);
44 };
45
46 #endif