CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Cgem/ReadCosmicRayData/bak_ReadCosmicRayData-00-00-05/ReadCosmicRayData/TestInputOutput.h
Go to the documentation of this file.
1#ifndef TESTINPUTOUTPUTALG
2#define TESTINPUTOUTPUTALG
3
4#include "CgemGeomSvc.h"
5#include "RealizationSvc/RealizationSvc.h"
6#include "RealizationSvc/IRealizationSvc.h"
7#include <vector>
8#include <string>
9#include "TFile.h"
10#include "TTree.h"
11#include "TString.h"
12#include "Identifier/Identifier.h"
13#include "TH1F.h"
14
15class IDataProviderSvc;
16#define MAXNOFHITS 2400
17
18class TestInputOutput : public Algorithm{
19public:
20 // Constructor
21 TestInputOutput(const std::string& name, ISvcLocator* pSvcLocator);
23 // Executable
24 StatusCode initialize();
25 StatusCode execute ();
26 StatusCode finalize ();
27
28private:
29 // A data server
30 IDataProviderSvc* m_evtSvc;
31
32 bool GetReferenceFromGRAAL();
33 void CheckIO();
34
35 // output
36 TFile *output;
37 // x
38 TH1F *hnhit_L1_x;
39 TH1F *hnhit_L2_x;
40 TH1F *hcharge_L1_x;
41 TH1F *hcharge_L2_x;
42 TH1F *htime_L1_x;
43 TH1F *htime_L2_x;
44 TH1F *hstripid_L1_x;
45 TH1F *hstripid_L2_x;
46
47 // v
48 TH1F *hnhit_L1_v;
49 TH1F *hnhit_L2_v;
50 TH1F *hcharge_L1_v;
51 TH1F *hcharge_L2_v;
52 TH1F *htime_L1_v;
53 TH1F *htime_L2_v;
54 TH1F *hstripid_L1_v;
55 TH1F *hstripid_L2_v;
56
57 // x GRAAL
58 TH1F *hnhit_L1_x_GRAAL;
59 TH1F *hnhit_L2_x_GRAAL;
60 TH1F *hcharge_L1_x_GRAAL;
61 TH1F *hcharge_L2_x_GRAAL;
62 TH1F *htime_L1_x_GRAAL;
63 TH1F *htime_L2_x_GRAAL;
64 TH1F *hstripid_L1_x_GRAAL;
65 TH1F *hstripid_L2_x_GRAAL;
66
67 // v GRAAL
68 TH1F *hnhit_L1_v_GRAAL;
69 TH1F *hnhit_L2_v_GRAAL;
70 TH1F *hcharge_L1_v_GRAAL;
71 TH1F *hcharge_L2_v_GRAAL;
72 TH1F *htime_L1_v_GRAAL;
73 TH1F *htime_L2_v_GRAAL;
74 TH1F *hstripid_L1_v_GRAAL;
75 TH1F *hstripid_L2_v_GRAAL;
76
77
78
79
80 string Dir_file;
81 string TreeDigi;
82 string CosmicRayDataSetID;
83 TFile *f;
84 TTree *Tdigi;
85 int No_Entries_D;
86 int Ind_Entry_D;
87 int m_nGemHit;
88 double m_charge[MAXNOFHITS];
89 double m_time[MAXNOFHITS];
90 int m_plane[MAXNOFHITS];
91 int m_view[MAXNOFHITS];
92 int m_strip[MAXNOFHITS];
93
94
95};
96#endif
StatusCode initialize()
StatusCode finalize()
StatusCode execute()
TestInputOutput(const std::string &name, ISvcLocator *pSvcLocator)