CbmRoot
Loading...
Searching...
No Matches
CbmAnaJpsiSuperEvent.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2016 UGiessen, JINR-LIT
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev [committer], Florian Uhlig, Adrian Amatus Weber */
4
5/*
6 * CbmAnaJpsiSuperEvent.h
7 *
8 * Created on: Jun 25, 2015
9 * Author: slebedev
10 */
11
12#ifndef ANALYSIS_JPSIANA_CBMANAJPSISUPEREVENT_H_
13#define ANALYSIS_JPSIANA_CBMANAJPSISUPEREVENT_H_
14
15#include "CbmAnaJpsiCandidate.h"
16#include "CbmAnaJpsiCuts.h"
17#include "CbmAnaJpsiHist.h"
19#include "CbmHistManager.h"
20#include "CbmSimulationReport.h"
21
22#include "TH1D.h"
23#include "TObject.h"
24#include "TSystem.h"
25
26#include <string>
27#include <vector>
28
29class CbmAnaJpsiSuperEvent : public TObject {
30
31public:
33
34 virtual ~CbmAnaJpsiSuperEvent();
35
36 /*
37 * \brief Add file for super event.
38 */
39 void AddFile(const std::string& fileName) { fFileNames.push_back(fileName); }
40
41 /*
42 * \brief Set output file.
43 */
44 void SetOutputFile(const std::string& fileName) { fOutputFile = fileName; }
45
46 /*
47 * \brief Set to true if you want to do super event after ptcut.
48 * This will speed up calculation time.
49 */
50 void SetRunAfterPtCut(Bool_t b) { fRunAfterPtCut = b; }
51
52 void SetRunAfterIdCut(Bool_t b) { fRunAfterIdCut = b; }
53
54 void Run();
55
56private:
57 std::vector<std::string> fFileNames;
58 std::vector<CbmAnaJpsiCandidate> fMinusCandidates;
59 std::vector<CbmAnaJpsiCandidate> fPlusCandidates;
60
61 std::string fOutputFile;
62
64
66
69
70 void InitHist();
71
72 void ReadCandidates();
73
74 void DoSuperEvent();
75
76 void Draw(Option_t* = "");
77
80
82};
83
84#endif /* ANALYSIS_JPSIANA_CBMANAJPSISUPEREVENT_H_ */
Histogram manager.
Base class for simulation reports.
CbmAnaJpsiSuperEvent operator=(const CbmAnaJpsiSuperEvent &)
ClassDef(CbmAnaJpsiSuperEvent, 1)
std::vector< CbmAnaJpsiCandidate > fMinusCandidates
CbmAnaJpsiSuperEvent(const CbmAnaJpsiSuperEvent &)
std::vector< CbmAnaJpsiCandidate > fPlusCandidates
void SetRunAfterIdCut(Bool_t b)
void SetOutputFile(const std::string &fileName)
void SetRunAfterPtCut(Bool_t b)
std::vector< std::string > fFileNames
void AddFile(const std::string &fileName)
Histogram manager.