FEDRA emulsion software from the OPERA Collaboration
ProcessRawData.h
Go to the documentation of this file.
1#ifndef _PROCESS_RAW_DATA
2#define _PROCESS_RAW_DATA
3
4#include <iostream>
5#include <iomanip>
6#include <fstream>
7#include <cmath>
8
9#include "Struct.h"
10#include "Catalog.h"
11#include "Fragment.h"
12
13#ifndef __CINT__
14#include "EdbRun.h"
15#include "EdbSegment.h"
16#include "EdbRunAccess.h"
17#include "TSystem.h"
18#include "Riostream.h"
19#include "TFile.h"
20#include "TTree.h"
21#endif
22
23#define SIZE_OF_CHAR 1
24#define SIZE_OF_INT 4
25#define SIZE_OF_UNSIGNED_SHORT_INT 2
26#define SIZE_OF_UNSIGNED_INT 4
27#define SIZE_OF_DOUBLE 8
28#define SIZE_OF_FLOAT 4
29
31{
32private:
36 std::string _catFileName;
37 std::string _fragFileName;
41
42public:
45 void initCatalog();
46 void initFragment();
47
48 void setCatalogName(std::string fileName) {_catFileName = fileName;}
49 void setFragmentName(std::string fileName) {_fragFileName = fileName;}
50 void setRootName(std::string fileName) {_outputRootFileName = fileName;}
51 void setClOption(bool noCl) {_clusters = noCl;}
54 const char* getCatalogName() {return _catFileName.c_str();}
55 const char* getFragmentName(){return _fragFileName.c_str();}
56 const char* getRootName(){return _outputRootFileName.c_str();}
57 bool getClOption() {return _clusters;}
59 unsigned int getFragmentsNumberFromCatalog();
60 bool readCatalog();
61 bool readFragment();
64
65 int makeTracksPlot(const char *plotFileName);
66};
67
68
69#endif
Definition: Catalog.h:7
Definition: EdbRun.h:75
Definition: Fragment.h:9
Definition: ProcessRawData.h:31
void setRootName(std::string fileName)
Definition: ProcessRawData.h:50
void setCatalogName(std::string fileName)
Definition: ProcessRawData.h:48
void initFragment()
Definition: ProcessRawData.cpp:26
EdbRun * _run
Definition: ProcessRawData.h:33
bool readFragment()
Definition: ProcessRawData.cpp:201
ProcessRawData()
Definition: ProcessRawData.cpp:4
Fragment * _fragment
Definition: ProcessRawData.h:35
~ProcessRawData()
Definition: ProcessRawData.cpp:13
void setFragmentName(std::string fileName)
Definition: ProcessRawData.h:49
bool getFilterTracksOption()
Definition: ProcessRawData.h:58
void setFilterTrackOption(bool filterTracks)
Definition: ProcessRawData.h:52
bool _clusters
Definition: ProcessRawData.h:39
bool dumpCatalogInEdbStructure()
Definition: ProcessRawData.cpp:742
Catalog * _catalog
Definition: ProcessRawData.h:34
bool dumpFragmentInEdbStructure()
Definition: ProcessRawData.cpp:807
const char * getRootName()
Definition: ProcessRawData.h:56
void setClOption(bool noCl)
Definition: ProcessRawData.h:51
bool readCatalog()
Definition: ProcessRawData.cpp:38
bool getClOption()
Definition: ProcessRawData.h:57
unsigned int getFragmentsNumberFromCatalog()
Definition: ProcessRawData.cpp:32
const char * getFragmentName()
Definition: ProcessRawData.h:55
void initCatalog()
Definition: ProcessRawData.cpp:20
bool _filterTracks
Definition: ProcessRawData.h:40
void filterTracks(bool filterTracks)
Definition: ProcessRawData.h:53
std::string _catFileName
Definition: ProcessRawData.h:36
const char * getCatalogName()
Definition: ProcessRawData.h:54
std::string _fragFileName
Definition: ProcessRawData.h:37
std::string _outputRootFileName
Definition: ProcessRawData.h:38
int makeTracksPlot(const char *plotFileName)
Definition: ProcessRawData.cpp:983