BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCSCHitMaker.h
Go to the documentation of this file.
1#ifndef BMNCSCHITMAKER_H
2#define BMNCSCHITMAKER_H 1
3
5#include "BmnCSCDigit.h"
6#include "BmnCSCHit.h"
7#include "BmnCSCStationSet.h"
8#include "BmnCSCTransform.h"
9#include "BmnTask.h"
10#include "FairField.h"
11#include "FairMCPoint.h"
12#include "TClonesArray.h"
13#include "TRegexp.h"
14#include "TString.h"
15
16#include <fstream>
17#include <iostream>
18#include <sstream>
19
20using namespace std;
21
22class BmnCSCHitMaker : public BmnTask
23{
24 public:
26 BmnCSCHitMaker(Int_t, Int_t, Bool_t, TString alignFile = "default", Bool_t isSrc = kFALSE);
27 virtual ~BmnCSCHitMaker();
28
29 virtual InitStatus Init();
30 virtual void Exec(Option_t* opt);
31 virtual void Finish();
32
34
35 void SetHitMatching(Bool_t opt = kTRUE) { fHitMatching = opt; }
36
42
43 void SetXMLConfig(TString xml_file)
44 {
46 XMLConfigFile = xml_file;
48 }
49
50 virtual void OnlineWrite(const std::unique_ptr<TTree>& resultTree);
51
52 private:
54
58
60
61 /** Input array of CSC Points **/
65
66 /** Output array of CSC Hits **/
68 /** Output array of CSC Upper Clusters **/
70 /** Output array of CSC Lower Clusters **/
72
74 Bool_t fIsExp; // Specify type of input data (MC or real data)
75 Bool_t fIsSrc; // Specify type of setup (SRC or BM@N)
76
78 bool configSetExplicitly = false;
79
81
82 BmnCSCStationSet* StationSet; // Entire CSC detector
83 BmnCSCTransform* GlobalModTransfSet; // Transformations for detector modules
84
86
89
91
93};
94
95#endif
bool Bool_t
int Int_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
const char Option_t
#define ClassDef(name, id)
virtual void Exec(Option_t *opt)
BmnCSCTransform * GlobalModTransfSet
TClonesArray * fBmnCSCDigitMatchesArray
virtual void OnlineWrite(const std::unique_ptr< TTree > &resultTree)
Write task resul to tree.
void LoadDetectorConfiguration()
void ProcessDigits()
BmnCSCConfiguration::CSC_CONFIG fCurrentConfig
virtual ~BmnCSCHitMaker()
TString fInputDigitMatchesBranchName
virtual void Finish()
virtual InitStatus Init()
TClonesArray * fBmnEvQuality
FairField * fField
void initCurrentConfig()
TString XMLConfigFile
TString fInputPointsBranchName
TClonesArray * fBmnCSCDigitsArray
void SetCurrentConfig(BmnCSCConfiguration::CSC_CONFIG config)
BmnCSCHitMaker(Int_t, Int_t, Bool_t, TString alignFile="default", Bool_t isSrc=kFALSE)
TString fBmnEvQualityBranchName
TClonesArray * fBmnCSCPointsArray
Input array of CSC Points.
BmnCSCStationSet * StationSet
TString fInputDigitsBranchName
TClonesArray * fBmnCSCUpperClustersArray
Output array of CSC Upper Clusters.
void SetXMLConfig(TString xml_file)
TClonesArray * fBmnCSCLowerClustersArray
Output array of CSC Lower Clusters.
TString fOutputHitsBranchName
TClonesArray * fBmnCSCHitsArray
Output array of CSC Hits.
void SetHitMatching(Bool_t opt=kTRUE)
BmnTask.
Definition BmnTask.h:13
Definition json.hpp:4446