BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
TagWriterAlg.h
Go to the documentation of this file.
1#ifndef Physics_Analysis_TagWriterAlg_H
2#define Physics_Analysis_TagWriterAlg_H
3
4#include "GaudiKernel/AlgFactory.h"
5#include "GaudiKernel/Algorithm.h"
6#include "GaudiKernel/NTuple.h"
7
8class RootInterface;
9
10#include "TFile.h"
11#include "TTree.h"
12using namespace std;
13
14class TagWriterAlg : public Algorithm {
15
16public:
17
18 TagWriterAlg(const std::string& name, ISvcLocator* pSvcLocator);
19 StatusCode initialize();
20 StatusCode execute();
21 StatusCode finalize();
22 StatusCode getTagInfo();
23 void openOutputTagFile(std::string file);
24 //bool eventFilter();
25
26private:
27
28 RootInterface* m_rootInterface;
29
30 int m_fileNum;
31
32 //TFile* m_iFile;
33 TFile* m_oFile;
34 //TTree* m_iTree;
35 TTree* m_oTree;
36 TTree* m_oFileTree;
37
38 //input tag file name
39 //vector<string> m_inputTagFile;
40
41 //output file name
42 vector<string> m_outputTagFile;
43
44 //for reading: input
45 /*int m_r_entry;
46 int m_r_runNo;
47 int m_r_eventId;
48 int m_r_totalCharged;
49 int m_r_totalNeutral;
50 int m_r_totalTrks;
51 */
52
53 //for writing: output
54 string m_dstFile;
55 int m_entry;
56 int m_runNo;
57 int m_eventId;
58 int m_totalCharged;
59 int m_totalNeutral;
60 int m_totalTrks;
61
62 string m_dstOutput;
63 int m_entry_in_alg;
64 //int m_filterTotalCharged;
65};
66
67#endif
char * file
Definition: DQA_TO_DB.cxx:15
StatusCode finalize()
StatusCode execute()
void openOutputTagFile(std::string file)
StatusCode initialize()
StatusCode getTagInfo()