MarlinUtil  1.12.1
MCTree.h
1 #ifndef MCTree_h
2 #define MCTree_h
3 
4 #include <stdio.h>
5 #include <iostream>
6 
7 #include <string>
8 #include <vector>
9 #include <map>
10 #include <set>
11 #include <stack>
12 #include <sstream>
13 #include <queue>
14 #include <EVENT/LCCollection.h>
15 #include <EVENT/MCParticle.h>
16 #include <IMPL/MCParticleImpl.h>
17 #include <IMPL/LCCollectionVec.h>
18 #include <iomanip>
19 #include <lcio.h>
20 
21 using namespace lcio;
22 
31 class MCTree {
32 
33  public:
34 
38  MCTree(LCCollection* col);
39 
40  ~MCTree();
41 
42 
50  void print(int opt);
51 
52  private:
53 
54  LCCollection* _col;
55 
56  int printShortMCInfo(const MCParticle* part, const unsigned int pdg_size,
57  const int options );
58  int length_of_int( const int& to_convert);
59  std::string pdg_to_string( const int& to_convert , const unsigned int& max_size);
60  std::string adjust_position( const unsigned int& pdg_size, const unsigned int& index);
61  std::string adjust_position1(const unsigned int& n_blanks);
62 
63 };
64 
65 #endif
Utility class for MC particles.
Definition: MCTree.h:31