Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
McpProcessor.hpp
Go to the documentation of this file.
1 
4 #ifndef __MCPPROCESSOR_HPP_
5 #define __MCPPROCESSOR_HPP_
6 
7 #include "EventProcessor.hpp"
8 
10 class McpProcessor : public EventProcessor {
11 public:
13  McpProcessor();
15  virtual void DeclarePlots(void);
19  virtual bool Process(RawEvent &rEvent);
20 
21 #ifdef useroot
22 
25  virtual bool AddBranch(TTree *tree);
27  virtual void FillBranch(void);
28 #endif
29 
30 private:
31  static const size_t nPos = 4;
32 
34  struct McpData {
35  double raw[nPos];
36  double xpos;
37  double ypos;
38  int mult;
39 
40  void Clear(void);
41  } data;
42 };
43 
44 #endif // __MCPPROCESSOR_HPP_
double raw[nPos]
the raw information
Definition: McpProcessor.hpp:35
double ypos
the y position
Definition: McpProcessor.hpp:37
Generic event processor.
double xpos
the x position
Definition: McpProcessor.hpp:36
static const size_t nPos
number of positions
Definition: McpProcessor.hpp:31
Data structure to hold MCP data.
Definition: McpProcessor.hpp:34
virtual bool Process(RawEvent &rEvent)
struct McpProcessor::McpData data
instance of the McpData structure
Class that handles MCP detectors.
Definition: McpProcessor.hpp:10
Class to handle event processing.
Definition: EventProcessor.hpp:25
The all important raw event.
Definition: RawEvent.hpp:46
void Clear(void)
clears the data map
virtual void DeclarePlots(void)
int mult
the multiplicity
Definition: McpProcessor.hpp:38