BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/PrintMcInfo/PrintMcInfo-00-00-03/PrintMcInfo/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"
14#include "EventModel/EventModel.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
22#include "EvtRecEvent/EvtRecEvent.h"
23#include "EvtRecEvent/EvtRecTrack.h"
24#include "EventModel/EventHeader.h"
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
36#include "Identifier/Identifier.h"
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)
StatusCode execute()
void printTree(ofstream &, Event::McParticle *, int, int)
PrintMcInfo(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
void printHit(ofstream &, Event::MdcMcHitCol &, Event::TofMcHitCol &, Event::EmcMcHitCol &, Event::MucMcHitCol &, int &)
void printDigi(ofstream &)
void printHitInf(ofstream &)
void printTitle(ofstream &os, int)
void mkmap()
StatusCode initialize()
ObjectVector< MucMcHit > MucMcHitCol
ObjectVector< EmcMcHit > EmcMcHitCol
ObjectVector< TofMcHit > TofMcHitCol
ObjectVector< MdcMcHit > MdcMcHitCol