Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCorrFunc.h
1/*
2 * CorrFuncCollection.h
3 *
4 * Created on: 4 lip 2019
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALCORRFUNCCOLLECTION_H_
10#define HALCORRFUNCCOLLECTION_H_
11
12
13#include "Array.h"
14#include "DividedHisto.h"
15#include "HtmlFile.h"
16#include "ObjectMatrix.h"
17#include "Parameter.h"
18
19#include <Rtypes.h>
20#include <RtypesCore.h>
21#include <TString.h>
22#include <initializer_list>
23#include <iostream>
24
25namespace Hal {
26 class FemtoPair;
27
31 class FemtoCorrFunc : public Object {
32 ParameterInt fEventCol;
33 ParameterInt fPairCol;
34 TString fComment;
35
36 protected:
37 ObjectMatrix_1* fArray = {nullptr};
43 FemtoCorrFunc(const DividedHisto1D* h, Int_t size = 0);
44
45 public:
47 FemtoCorrFunc(const DividedHisto1D& h, Int_t size = 0);
48 FemtoCorrFunc(const FemtoCorrFunc& other);
49 FemtoCorrFunc& operator=(const FemtoCorrFunc& other);
54 virtual Bool_t Check() = 0;
59 virtual void Add(const Object* pack);
60 virtual void Browse(TBrowser* b);
65 virtual void FillNum(FemtoPair* pair) = 0;
66 virtual void FillDenPerfect(FemtoPair* pair) { FillDenMixed(pair); };
67 virtual void FillDenRotated(FemtoPair* pair) { FillDenMixed(pair); };
68 virtual void FillDenMixed(FemtoPair* pair) = 0;
69 virtual void FillDenHemisphere(FemtoPair* pair) { FillDenMixed(pair); };
70 virtual void FillDenCharged(FemtoPair* pair) { FillDenMixed(pair); };
75 void SetComment(TString comment) { fComment = comment; };
80 void SetEventCollID(Int_t no) { fEventCol.SetValue(no); };
85 void SetPairCollID(Int_t no) { fPairCol.SetValue(no); };
90 Int_t GetEventCollID() const { return fEventCol.GetValue(); };
95 Int_t GetPairCollID() const { return fPairCol.GetValue(); };
100 Int_t GetEntries() const { return fArray->GetSize(); };
105 TString GetComment() const { return fComment; }
111 DividedHisto1D* GetCF(Int_t i) const { return (DividedHisto1D*) fArray->At(i); };
112 virtual ~FemtoCorrFunc();
113 ClassDef(FemtoCorrFunc, 1)
114 };
115
116} // namespace Hal
117#endif /* HALFEMTO_ANALYSIS_FEMTO_BASE_HALCORRFUNCCOLLECTION_H_ */
TString GetComment() const
void SetComment(TString comment)
Int_t GetEntries() const
virtual void Add(const Object *pack)
Int_t GetPairCollID() const
void SetEventCollID(Int_t no)
void SetPairCollID(Int_t no)
Int_t GetEventCollID() const
virtual Bool_t Check()=0
virtual void FillNum(FemtoPair *pair)=0
DividedHisto1D * GetCF(Int_t i) const
Int_t GetSize() const
TObject * At(Int_t i) const
Int_t GetValue() const
Definition Parameter.h:112
void SetValue(Int_t value)
Definition Parameter.h:107