Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Femto1DCFAnaMapPairsDumped.h
1/*
2 * Femto1DCFAnaMapPairs.h
3 *
4 * Created on: 27 lip 2019
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALFEMTO1DCFANAMAPPAIRSDUMPED_H_
10#define HALFEMTO1DCFANAMAPPAIRSDUMPED_H_
11
12#include "Femto1DCFAnaMapMC.h"
13
14#include <TString.h>
15
16
17class TFile;
18class TTree;
19class TClonesArray;
20
24namespace Hal {
26 protected:
27 TString fInFile;
28 TFile* fFile;
29 TTree* fTree;
30 TClonesArray* fPairsSignal;
31 TClonesArray* fPairsBackground;
32 Bool_t fUseBackground;
33 Bool_t fWeightedBackround;
34 Int_t fMaxEvents;
35 void MakePairsWeighted(TClonesArray* arr, Bool_t num);
36 void MakePairsUnWeighted(TClonesArray* arr, Bool_t num);
37 virtual void Exec(Int_t /* npairs*/) { Run(0, 0); }
38
39 public:
41 void SetInFile(TString filename);
42 void UseBackground() { fUseBackground = kTRUE; };
43 void UseWeightedBackground() { fWeightedBackround = kTRUE; };
44 virtual Bool_t Init();
45
52 virtual void Run(Int_t start_event = 0, Int_t end_event = 0);
55 };
56} // namespace Hal
57
58#endif /* HALFEMTO1DCFANAMAPPAIRSDUMPED_H_ */
virtual void Run(Int_t start_event=0, Int_t end_event=0)