Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALClump_factory.h
Go to the documentation of this file.
1 /*
2  * DBCALClump_factory.h
3  *
4  * Created by Beni Zihlmann Tue Mar 12 2013 version: 0.1
5  *
6  */
7 
8 #ifndef _DBCALClump_factory_
9 #define _DBCALClump_factory_
10 
11 #include <JANA/JFactory.h>
12 #include <JANA/JEventLoop.h>
13 
14 using namespace jana;
15 
16 #include "BCAL/DBCALClump.h"
17 
18 class DBCALClump_factory : public JFactory<DBCALClump> {
19 
20  /// This factory creats Clumps based on all DBCALHits. A Clump is an object of
21  /// two related clusters between up stream and down stream BCAL Hits. A seed
22  /// is found by searching for the highest energy deposited in the hit list that
23  /// has both and up stream and down stream value. A list of hits is formed
24  /// around this seed hit independently for up stream and downstream. The hits used
25  /// are removed from the search list. From the remaining hit list again the highest
26  /// energy deposit is searched that has both an up stream and down stream value and
27  /// the procedure is repeated till no hits with both upstream and down stream values
28  /// are found. Each seed results in two lists of hits for up and down stream shower
29  /// cluster that form a Clump.
30  /// Note that at this point a Clump could contain easily two particle showers close
31  /// together. A disentanglement of the Clump will require a successive step.
32  /// From a Clump (see DBCALClump.cc) a shower is constructed: verstion 0.1
33  /// BTW. Clump is a perfectly good english word ;-)
34 
35  public:
36 
39 
40  double VELOCITY;
41 
42  private:
43 
44  jerror_t init(void);
45  jerror_t brun(JEventLoop *loop, int32_t runnumber);
46  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber);
47 
48 };
49 
50 #endif //_DBCALClump_factory_
DBCALClump_factory()
This factory creats Clumps based on all DBCALHits. A Clump is an object of two related clusters betwe...