BOSS 8.0.0
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 TagWriterAlg( const std::string& name, ISvcLocator* pSvcLocator );
18 StatusCode initialize();
19 StatusCode execute();
20 StatusCode finalize();
21 StatusCode getTagInfo();
22 void openOutputTagFile( std::string file );
23 // bool eventFilter();
24
25private:
26 RootInterface* m_rootInterface;
27
28 int m_fileNum;
29
30 // TFile* m_iFile;
31 TFile* m_oFile;
32 // TTree* m_iTree;
33 TTree* m_oTree;
34 TTree* m_oFileTree;
35
36 // input tag file name
37 // vector<string> m_inputTagFile;
38
39 // output file name
40 vector<string> m_outputTagFile;
41
42 // for reading: input
43 /*int m_r_entry;
44 int m_r_runNo;
45 int m_r_eventId;
46 int m_r_totalCharged;
47 int m_r_totalNeutral;
48 int m_r_totalTrks;
49 */
50
51 // for writing: output
52 string m_dstFile;
53 int m_entry;
54 int m_runNo;
55 int m_eventId;
56 int m_totalCharged;
57 int m_totalNeutral;
58 int m_totalTrks;
59
60 string m_dstOutput;
61 int m_entry_in_alg;
62 // int m_filterTotalCharged;
63};
64
65#endif
char * file
Definition DQA_TO_DB.cxx:16
TagWriterAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
StatusCode execute()
void openOutputTagFile(std::string file)
StatusCode initialize()
StatusCode getTagInfo()