3 std::string misalignment_matrices_path =
"",
bool use_point_transform_misalignment =
false,
29 FairRunAna *
fRun =
new FairRunAna();
30 FairFileSource input_source(DigiFile);
31 fRun->SetSource(&input_source);
32 fRun->SetOutputFile(outFile);
36 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
37 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
38 parInput1->open(parFile.Data(),
"UPDATE");
41 rtdb->setFirstInput(parInput1);
73 fRun->AddTask(lmdmccls);
74 rtdb->setOutput(parInput1);
80 if (misalignment_matrices_path !=
"" && use_point_transform_misalignment) {
82 TFile *misalignmentMatrixRootfile =
new TFile(misalignment_matrices_path.c_str(),
"READ");
83 if (misalignmentMatrixRootfile->IsOpen()) {
84 std::map < std::string, TGeoHMatrix > *matrices;
86 gDirectory->GetObject(
"PndLmdMisalignMatrices", matrices);
87 misalignmentMatrixRootfile->Close();
89 cout << matrices->size() <<
" matrices successfully read from file.";
92 fRun->AddAlignmentMatrices(*matrices, use_point_transform_misalignment);
93 cout <<
"matrices set!\n";
97 if (alignment_matrices_path !=
"") {
99 TFile *alignmentMatrixRootfile =
new TFile(alignment_matrices_path.c_str(),
"READ");
101 if (alignmentMatrixRootfile->IsOpen()) {
102 std::map < std::string, TGeoHMatrix > *matrices;
104 gDirectory->GetObject(
"PndLmdMisalignMatrices", matrices);
105 alignmentMatrixRootfile->Close();
107 cout << matrices->size() <<
" matrices successfully read from file.\n";
110 fRun->AddAlignmentMatrices(*matrices);
113 cout <<
"file could not be read\n";
130 cout << endl << endl;
131 cout <<
"Macro finished succesfully." << endl;
132 cout <<
"Output file is " << outFile << endl;
133 cout <<
"Parameter file is " << parFile << endl;
134 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
TGeoManager * gGeoManager
int runLumiPixel2Reco(const int nEvents=10, const int startEvent=0, TString storePath="tmpOutput", std::string alignment_matrices_path="", std::string misalignment_matrices_path="", bool use_point_transform_misalignment=false, const int verboseLevel=0)
FairParRootFileIo * parInput1