BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnNdetReconstructor.h
Go to the documentation of this file.
1
/** \file BmnNdetReconstructor.h
2
** \author Nikolay Karpushkin <karpushkin@inr.ru>
3
** \date 03.04.2021
4
**/
5
6
/** \class BmnNdetReconstructor
7
** \brief Class for BmnNdetEvent reconstruction (creation) from BmnNdetDigi {Data} or BmnNdetDigit {Sim}
8
** \version 1.0
9
**/
10
11
#ifndef BMNNDETRECONSTRUCTOR_H
12
#define BMNNDETRECONSTRUCTOR_H
13
14
#include "
BmnNdetCuts.h
"
15
#include "BmnNdetEvent.h"
16
#include "BmnNdetGeo.h"
17
#include "BmnTask.h"
18
#include "CbmMCTrack.h"
19
#include "FairRootManager.h"
20
21
#include <
TClonesArray.h
>
22
#include <boost/program_options.hpp>
23
#include <fstream>
24
#include <iostream>
25
26
class
BmnNdetReconstructor
:
public
BmnTask
27
{
28
public
:
29
BmnNdetReconstructor
(
bool
isExp,
bool
isGlobalCoordinates =
true
);
30
~BmnNdetReconstructor
();
31
32
virtual
InitStatus
Init
();
33
void
ParseGeometry
();
34
void
SetRecoCutsFile
(
const
std::string& cuts);
35
virtual
void
Exec
(
Option_t
* opt);
36
virtual
void
Finish
();
37
38
virtual
void
OnlineWrite
(
const
std::unique_ptr<TTree>& resultTree);
39
40
private
:
41
FairRootManager*
fpFairRootMgr
=
nullptr
;
42
BmnNdetGeo
*
fGeoHandler
=
nullptr
;
// Geometry handler
43
std::vector<TClonesArray*>
fDigits
;
// input
44
TClonesArray
*
fArrayOfPoints
=
nullptr
;
// input
45
std::vector<BmnNdetDigit*>
GetSelectedDigis
();
// selected input
46
BmnNdetEvent
*
fBmnNdetEvent
=
nullptr
;
// output
47
TClonesArray
*
fArrayOfSurfacePoints
=
nullptr
;
// output
48
49
void
MatchMCTracks
();
50
51
BmnNdetCuts
*
fCuts
=
nullptr
;
52
bool
fIsExp
;
53
bool
fDoMatchMC
=
false
;
54
bool
fIsGlobal
;
55
56
float
fworkTime
;
57
ClassDef
(
BmnNdetReconstructor
, 6);
58
};
59
60
#endif
/* BMNNDETRECONSTRUCTOR_H */
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
BmnNdetEvent
Class for Bmn Ndet data container in event.
Definition
BmnNdetEvent.h:20
BmnNdetGeo
Definition
BmnNdetGeo.h:17
BmnNdetReconstructor
Class for BmnNdetEvent reconstruction (creation) from BmnNdetDigi {Data} or BmnNdetDigit {Sim}...
Definition
BmnNdetReconstructor.h:27
BmnNdetReconstructor::OnlineWrite
virtual void OnlineWrite(const std::unique_ptr< TTree > &resultTree)
Write task resul to tree.
BmnNdetReconstructor::fCuts
BmnNdetCuts * fCuts
Definition
BmnNdetReconstructor.h:51
BmnNdetReconstructor::fDoMatchMC
bool fDoMatchMC
Definition
BmnNdetReconstructor.h:53
BmnNdetReconstructor::~BmnNdetReconstructor
~BmnNdetReconstructor()
BmnNdetReconstructor::MatchMCTracks
void MatchMCTracks()
BmnNdetReconstructor::Init
virtual InitStatus Init()
BmnNdetReconstructor::fBmnNdetEvent
BmnNdetEvent * fBmnNdetEvent
Definition
BmnNdetReconstructor.h:46
BmnNdetReconstructor::fIsGlobal
bool fIsGlobal
Definition
BmnNdetReconstructor.h:54
BmnNdetReconstructor::GetSelectedDigis
std::vector< BmnNdetDigit * > GetSelectedDigis()
BmnNdetReconstructor::Finish
virtual void Finish()
BmnNdetReconstructor::fGeoHandler
BmnNdetGeo * fGeoHandler
Definition
BmnNdetReconstructor.h:42
BmnNdetReconstructor::Exec
virtual void Exec(Option_t *opt)
BmnNdetReconstructor::fIsExp
bool fIsExp
Definition
BmnNdetReconstructor.h:52
BmnNdetReconstructor::SetRecoCutsFile
void SetRecoCutsFile(const std::string &cuts)
BmnNdetReconstructor::fworkTime
float fworkTime
Definition
BmnNdetReconstructor.h:56
BmnNdetReconstructor::fArrayOfSurfacePoints
TClonesArray * fArrayOfSurfacePoints
Definition
BmnNdetReconstructor.h:47
BmnNdetReconstructor::fpFairRootMgr
FairRootManager * fpFairRootMgr
Definition
BmnNdetReconstructor.h:41
BmnNdetReconstructor::ParseGeometry
void ParseGeometry()
BmnNdetReconstructor::fDigits
std::vector< TClonesArray * > fDigits
Definition
BmnNdetReconstructor.h:43
BmnNdetReconstructor::BmnNdetReconstructor
BmnNdetReconstructor(bool isExp, bool isGlobalCoordinates=true)
BmnNdetReconstructor::fArrayOfPoints
TClonesArray * fArrayOfPoints
Definition
BmnNdetReconstructor.h:44
BmnTask
BmnTask.
Definition
BmnTask.h:13
TClonesArray
BmnNdetCuts.h
BmnNdetCuts
Definition
BmnNdetCuts.h:15
reconstruction
ndet
BmnNdetReconstructor.h
Generated on
for BmnRoot by
1.17.0