DA for calibrating energy by pi0 and MIP and related classes (Hisayuki Torii).
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDApi0mip.h
CommitLineData
12f6dd57 1// --
2// --
3// Implementation for TTree output in PHOS DA
4// for calibrating energy by pi0 and MIP.
5// --
6// -- Author: Hisayuki Torii (Hiroshima Univ.)
7// --
8#ifndef AliPHOSDApi0mip_H
9#define AliPHOSDApi0mip_H
10
11#include <time.h>
12
13#include "TNamed.h"
14#include "TH1I.h"
15#include "TH1F.h"
16#include "TH2F.h"
17#include "TH3F.h"
18#include "TFile.h"
19#include "TTree.h"
20#include "AliPHOSDATreeEvent.h"
21
22class AliPHOSDApi0mip : public TNamed {
23 public:
24 AliPHOSDApi0mip(int module,int iterid=0,char* fopt="RECREATE");
25 AliPHOSDApi0mip(const AliPHOSDApi0mip& da);
26 ~AliPHOSDApi0mip();
27
28 void NewEvent();
29 void FillDigit(float adc,int row,int col);
30 void SetTime(time_t& intime){fTime=intime;};
31 time_t GetTime(){return fTime;};
32 void FillTree(AliPHOSDATreeEvent* event=0);
33 void FillHist(AliPHOSDATreeEvent* event=0);
34 void Print(char* opt="");
35
36 private:
37 bool CreateTree();
38 bool CreateHist();
39 bool fCreateTree; //! Flag of tree initialization
40 bool fCreateHist; //! Flag of hist initialization
41 int fMod; // Module ID [0-4] ([2-4] for 2009)
42 int fIterId; // Iteration step [0-*]
43 //
44 TFile* fTFile; //! output file
45 TTree* fTTree; //! output TTree
46 AliPHOSDATreeEvent* fEvent; //! Contents of TTree
47 bool fEventClustered; //! Flag for
48 time_t fTime; // time
49 TH1I* fH1Time; // x:bin1=StartTime bin2=EndTime
50 TH1F* fH1DigitNum; // x:Number of digits
51 TH1F* fH1ClusterNum; // x:Number of clusters
52 TH2F* fH2EneDigitId; // x:DigitId[0-3583] y:Digit Energy
53 TH2F* fH2MipDigitId; // x:DigitId[0-3583] y:Cluster Energy
54 TH2F* fH2Pi0DigitId; // x:DigitId[0-3583] y:Cluster Pair Mass
55 TH3F* fH3Pi0AsymPt; // x:asym y:pT(GeV/c) z:Cluster Pair Mass
56
57 ClassDef(AliPHOSDApi0mip,1)
58};
59#endif