]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JCORRAN/AliPhJHeaderList.h
Updating track cuts and removing functionality that is now in separate cosmics tasks
[u/mrichter/AliRoot.git] / PWG4 / JCORRAN / AliPhJHeaderList.h
1 // $Id: AliPhJHeaderList.h,v 1.4 2008/05/08 13:44:45 djkim Exp $
2
3 ////////////////////////////////////////////////////
4 /*!
5   \file AliPhJHeaderList.h
6   \brief
7   \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
8   \email: djkim@jyu.fi
9   \version $Revision: 1.4 $
10   \date $Date: 2008/05/08 13:44:45 $
11 */
12 ////////////////////////////////////////////////////
13
14 #ifndef ALIPHJHEADERLIST_H
15 #define ALIPHJHEADERLIST_H
16
17 #include "TClonesArray.h"
18 #include <iostream>
19
20 #include "AliPhJBaseHeader.h"
21 #include "AliJHeader.h"
22 #include "JConst.h"
23
24 //class AliJHeader;
25 //class AliPhJBaseHeader;
26 //class TClonesArray;
27
28
29 class AliPhJHeaderList : public TObject {
30
31 public:
32   AliPhJHeaderList(); // default constructor
33   AliPhJHeaderList(expName exp);
34   AliPhJHeaderList(const AliPhJHeaderList& a);
35   virtual ~AliPhJHeaderList();
36
37   void Reset();
38
39   //getters
40   unsigned short GetNHeaders() const { return fHeaders; }
41   AliPhJBaseHeader*       GetHeader(const unsigned int ihdr); 
42   AliJHeader*    GetAliJHeader(const unsigned int ihdr);    // ALICE getter
43   //setters
44   void SetNHeaders(const unsigned short nhdr) { fHeaders = nhdr; }
45   int  SetTClonesArraySize(const unsigned int nhdr);
46   // add header
47   void AddAliJHeader(const unsigned int ihdr);     // ALICE add
48
49   AliPhJHeaderList& operator=(const AliPhJHeaderList& list);  
50
51 protected:
52   TClonesArray *GetList() const { return fHeaderList; }
53   TClonesArray *fHeaderList;   //header list
54   unsigned short fHeaders;//number of headers
55  
56   
57
58 private:
59   ClassDef(AliPhJHeaderList,1)
60
61 };
62
63 #endif