CbmRoot
PairAnalysisMixedEvent.h
Go to the documentation of this file.
1 #ifndef PAIRANALYSISMIXEDEVENT_H
2 #define PAIRANALYSISMIXEDEVENT_H
3 
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. */
5 
6 //#############################################################
7 //# #
8 //# Class PairAnalysisMixedEvent #
9 //# #
10 //# Authors: #
11 //# Julian Book, Uni Ffm / Julian.Book@cern.ch #
12 //# #
13 //#############################################################
14 
15 #include <TClonesArray.h>
16 #include <TNamed.h>
17 
18 #include "PairAnalysisVarManager.h"
19 
20 
21 class TObjArray;
22 class TProcessID;
23 
24 class PairAnalysisMixedEvent : public TNamed {
25 public:
27  PairAnalysisMixedEvent(const char* name, const char* title);
28 
29  virtual ~PairAnalysisMixedEvent();
30 
31  void Set(Int_t size = 100);
32 
33  void SetTracks(const TObjArray& arrP, const TObjArray& arrN);
34  void SetEventData(const Double_t data[PairAnalysisVarManager::kNMaxValuesMC]);
35  const Double_t* GetEventData() const { return fEventData; }
36 
37  const TClonesArray* GetTrackArrayP() const { return &fArrTrackP; }
38  const TClonesArray* GetTrackArrayN() const { return &fArrTrackN; }
39 
40  Int_t GetNTracksP() const { return fNTracksP; }
41  Int_t GetNTracksN() const { return fNTracksN; }
42 
43  void SetProcessID(TProcessID* pid) { fPID = pid; }
44  const TProcessID* GetProcessID() { return fPID; }
45 
46  virtual void Clear(Option_t* opt = "C");
47 
48 
49 private:
50  TClonesArray fArrTrackP; //positive tracks
51  TClonesArray fArrTrackN; //negative tracks
52 
53  Int_t fNTracksP = 0; //number of positive tracks
54  Int_t fNTracksN = 0; //number of negative tracks
55 
56  Double_t
58  kNMaxValuesMC]; // event informaion from the var manager
59 
60  TProcessID* fPID = NULL;
61  UInt_t fPIDIndex = 0;
62 
65 
66  void AssignID(TObject* obj);
67 
68  ClassDef(PairAnalysisMixedEvent, 2) // Small mixed event structure
69 };
70 
71 
72 #endif
PairAnalysisMixedEvent::GetEventData
const Double_t * GetEventData() const
Definition: PairAnalysisMixedEvent.h:35
PairAnalysisVarManager::kNMaxValuesMC
@ kNMaxValuesMC
Definition: PairAnalysisVarManager.h:343
PairAnalysisMixedEvent::fArrTrackN
TClonesArray fArrTrackN
Definition: PairAnalysisMixedEvent.h:51
PairAnalysisMixedEvent::GetNTracksP
Int_t GetNTracksP() const
Definition: PairAnalysisMixedEvent.h:40
PairAnalysisMixedEvent::PairAnalysisMixedEvent
PairAnalysisMixedEvent(const PairAnalysisMixedEvent &c)
index of PID
PairAnalysisMixedEvent::fNTracksP
Int_t fNTracksP
Definition: PairAnalysisMixedEvent.h:53
PairAnalysisMixedEvent::fPID
TProcessID * fPID
Definition: PairAnalysisMixedEvent.h:60
PairAnalysisMixedEvent::SetProcessID
void SetProcessID(TProcessID *pid)
Definition: PairAnalysisMixedEvent.h:43
PairAnalysisMixedEvent::GetNTracksN
Int_t GetNTracksN() const
Definition: PairAnalysisMixedEvent.h:41
PairAnalysisVarManager.h
PairAnalysisMixedEvent::operator=
PairAnalysisMixedEvent & operator=(const PairAnalysisMixedEvent &c)
PairAnalysisMixedEvent::fEventData
Double_t fEventData[PairAnalysisVarManager::kNMaxValuesMC]
Definition: PairAnalysisMixedEvent.h:58
PairAnalysisMixedEvent::SetTracks
void SetTracks(const TObjArray &arrP, const TObjArray &arrN)
Definition: PairAnalysisMixedEvent.cxx:53
PairAnalysisMixedEvent::Set
void Set(Int_t size=100)
Definition: PairAnalysisMixedEvent.cxx:117
PairAnalysisMixedEvent::Clear
virtual void Clear(Option_t *opt="C")
Definition: PairAnalysisMixedEvent.cxx:108
PairAnalysisMixedEvent::fPIDIndex
UInt_t fPIDIndex
internal PID for references to buffered objects
Definition: PairAnalysisMixedEvent.h:61
PairAnalysisMixedEvent
Definition: PairAnalysisMixedEvent.h:24
PairAnalysisMixedEvent::fNTracksN
Int_t fNTracksN
Definition: PairAnalysisMixedEvent.h:54
PairAnalysisMixedEvent::~PairAnalysisMixedEvent
virtual ~PairAnalysisMixedEvent()
Definition: PairAnalysisMixedEvent.cxx:44
PairAnalysisMixedEvent::GetTrackArrayP
const TClonesArray * GetTrackArrayP() const
Definition: PairAnalysisMixedEvent.h:37
PairAnalysisMixedEvent::fArrTrackP
TClonesArray fArrTrackP
Definition: PairAnalysisMixedEvent.h:50
PairAnalysisMixedEvent::GetTrackArrayN
const TClonesArray * GetTrackArrayN() const
Definition: PairAnalysisMixedEvent.h:38
PairAnalysisMixedEvent::SetEventData
void SetEventData(const Double_t data[PairAnalysisVarManager::kNMaxValuesMC])
Definition: PairAnalysisMixedEvent.cxx:126
PairAnalysisMixedEvent::PairAnalysisMixedEvent
PairAnalysisMixedEvent()
PairAnalysisMixedEvent::AssignID
void AssignID(TObject *obj)
Definition: PairAnalysisMixedEvent.cxx:138
PairAnalysisMixedEvent::GetProcessID
const TProcessID * GetProcessID()
Definition: PairAnalysisMixedEvent.h:44