CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRec.h
Go to the documentation of this file.
1//
2// Emc Rec
3//
4// Created by Zhe Wang, May 31, 2004
5//
6#ifndef EMC_REC_A_H
7#define EMC_REC_A_H
8
9#include "GaudiKernel/Algorithm.h"
10#include "GaudiKernel/PropertyMgr.h"
11
16
17//Ntuple
18#include "GaudiKernel/NTuple.h"
19
21
22class EmcRec:public Algorithm {
23 public:
24 EmcRec(const std::string& name, ISvcLocator* pSvcLocator);
25 StatusCode initialize();
26 StatusCode execute();
27 StatusCode finalize();
28
29 private:
30 // functionality members
31 EmcRecDigit2Hit fDigit2Hit;
32 EmcRecHit2Cluster fHit2Cluster;
33 EmcRecCluster2ShowerAbs *fCluster2Shower;
34
35 // data members
36 RecEmcDigitMap fDigitMap;
37 RecEmcHitMap fHitMap;
38 RecEmcClusterMap fClusterMap;
39 RecEmcShowerMap fShowerMap;
40
41 // some control parameters
42 IRawDataProviderSvc *m_rawDataProviderSvc;
43 PropertyMgr m_propMgr;
44 int m_event;
45 int fOutput;
46 int fEventNb;
47 bool fDigiCalib;
48 bool fTofEnergy;
49 bool fOnlineMode;
50 double fTimeMin;
51 double fTimeMax;
52 std::vector<std::string> fPositionMode;
53
54#ifndef OnlineMode
55 // others
56 NTuple::Tuple* m_tuple;
57 // mc truth
58 NTuple::Item<long> pid;
59 NTuple::Item<float> tp;
60 NTuple::Item<float> ttheta;
61 NTuple::Item<float> tphi;
62 //
63 NTuple::Item<long> nrun;
64 NTuple::Item<long> nrec;
65 //
66 NTuple::Item<long> nneu;
67 NTuple::Item<long> npart;
68 NTuple::Item<long> ntheta;
69 NTuple::Item<long> nphi;
70 NTuple::Item<long> ndigi;
71 NTuple::Item<long> nhit;
72 NTuple::Item<long> ncluster;
73 // track 1
74 NTuple::Array<float> pp1;
75 NTuple::Item<float> theta1;
76 NTuple::Item<float> phi1;
77 NTuple::Item<float> dphi1;
78 NTuple::Item<float> eseed;
79 NTuple::Item<float> e3x3;
80 NTuple::Item<float> e5x5;
81 NTuple::Item<float> enseed;
82 NTuple::Item<float> etof2x1;
83 NTuple::Item<float> etof2x3;
84 NTuple::Item<float> cluster2ndMoment;
85 NTuple::Item<float> secondMoment;
86 NTuple::Item<float> latMoment;
87 NTuple::Item<float> a20Moment;
88 NTuple::Item<float> a42Moment;
89 NTuple::Item<float> mpi0;
90 NTuple::Item<long> thtgap1;
91 NTuple::Item<long> phigap1;
92
93 // track 2
94 NTuple::Array<float> pp2;
95#endif
96};
97
98#endif /// EMC_REC_A_H
99
map< RecEmcID, RecEmcCluster, less< RecEmcID > > RecEmcClusterMap
map< RecEmcID, RecEmcDigit, less< RecEmcID > > RecEmcDigitMap
Definition RecEmcDigit.h:59
map< RecEmcID, RecEmcHit, less< RecEmcID > > RecEmcHitMap
Definition RecEmcHit.h:75
map< RecEmcID, RecEmcShower, less< RecEmcID > > RecEmcShowerMap
StatusCode initialize()
Definition EmcRec.cxx:70
StatusCode finalize()
Definition EmcRec.cxx:447
EmcRec(const std::string &name, ISvcLocator *pSvcLocator)
Definition EmcRec.cxx:38
StatusCode execute()
Definition EmcRec.cxx:147