BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
PrintMcInfo.h
Go to the documentation of this file.
1#ifndef PrintMcInfo_Header
2#define PrintMcInfo_Header
3
4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/IHistogramSvc.h"
6#include "GaudiKernel/MsgStream.h"
7#include "GaudiKernel/ISvcLocator.h"
8#include "GaudiKernel/SmartDataPtr.h"
9#include "GaudiKernel/SmartDataLocator.h"
10#include "GaudiKernel/IDataProviderSvc.h"
11#include "GaudiKernel/PropertyMgr.h"
12
13#include "TMath.h"
15#include "EventModel/Event.h"
16#include "McTruth/McParticle.h"
17#include "McTruth/MdcMcHit.h"
18#include "McTruth/TofMcHit.h"
19#include "McTruth/EmcMcHit.h"
20#include "McTruth/MucMcHit.h"
21
25
26#include "Identifier/MdcID.h"
27#include "Identifier/TofID.h"
28#include "Identifier/EmcID.h"
29#include "Identifier/MucID.h"
30
31#include "MdcRawEvent/MdcDigi.h"
32#include "TofRawEvent/TofDigi.h"
33#include "EmcRawEvent/EmcDigi.h"
34#include "MucRawEvent/MucDigi.h"
35
37#include <map>
38#include <string>
39
40#include <cstdlib>
41#include <fstream>
42#include <iomanip>
43
44//
45//namespace
46using namespace std;
47class PrintMcInfo:public Algorithm {
48 public:
49 PrintMcInfo(const std::string& name, ISvcLocator* pSvcLocator);
51 StatusCode initialize();
52 StatusCode beginRun();
53 StatusCode execute();
54 StatusCode endRun();
55 StatusCode finalize();
56 void mkmap();
57 void printTitle(ofstream& os,int);
58 void printTree(ofstream&,Event::McParticle*,int,int);
59 void printPartInf(ofstream&,Event::McParticle*,int,int);
60 void printHitInf(ofstream&);
62 void printDigi(ofstream&);
63 private:
64 int m_OutputLevel;
65 int m_pid;//particleProperty
66 int m_trkIndex;
67
68 int m_fstreamOption;
69 bool m_firstTime;
70 map<int,string> map_pid;
71
72 ofstream os;
73
74 string daughters;
75 string m_FileName;
76 protected:
77
78};
79//add your inline methods
80
81//
82
83#endif//PrintMcInfo_Header
StatusCode beginRun()
StatusCode endRun()
void printPartInf(ofstream &, Event::McParticle *, int, int)
Definition McTruth.cxx:113
StatusCode execute()
void printTree(ofstream &, Event::McParticle *, int, int)
Definition McTruth.cxx:55
PrintMcInfo(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
void printHit(ofstream &, Event::MdcMcHitCol &, Event::TofMcHitCol &, Event::EmcMcHitCol &, Event::MucMcHitCol &, int &)
Definition McTruth.cxx:226
void printDigi(ofstream &)
Definition Digi.cxx:5
void printHitInf(ofstream &)
void printTitle(ofstream &os, int)
Definition McTruth.cxx:27
void mkmap()
Definition McTruth.cxx:4
StatusCode initialize()
ObjectVector< MdcMcHit > MdcMcHitCol
Definition MdcMcHit.h:142
ObjectVector< MucMcHit > MucMcHitCol
Definition MucMcHit.h:89
ObjectVector< TofMcHit > TofMcHitCol
Definition TofMcHit.h:100
ObjectVector< EmcMcHit > EmcMcHitCol
Definition EmcMcHit.h:132