Sd5T5Tester.h
Go to the documentation of this file.
1 #ifndef _Sd5T5Tester_h_
2 #define _Sd5T5Tester_h_
3 
4 #include <fwk/VModule.h>
5 #include <vector>
6 
7 
8 namespace evt {
9  class Event;
10 }
11 namespace sevt {
12  class SEvent;
13 }
14 namespace sdet {
15  class Station;
16 }
17 
18 namespace Sd5T5Tester {
19 
29  class Sd5T5Tester : public fwk::VModule {
30  public:
34 
35  private:
36  typedef std::vector<const sdet::Station*> Crown;
37 
38  const sdet::Station& GetHottestStation(const sevt::SEvent& sEvent) const;
39 
40  Crown GetCrown(const sevt::SEvent& sevent, const sdet::Station& station) const;
41 
42  bool IsAccepted(const sevt::SEvent& sevent, const Crown& crown) const;
43 
44  void UpdateFirstCrown(const sdet::Station& sCenter, const Crown& crown);
45 
46  int fCounter;
47  int fCrownId[7];
48 
49  std::vector<double> fFirstCrownDistanceRange;
50 
51  REGISTER_MODULE("Sd5T5Tester", Sd5T5Tester);
52  };
53 
54 }
55 
56 
57 #endif
std::vector< double > fFirstCrownDistanceRange
Definition: Sd5T5Tester.h:49
TODO explanation.
Detector description interface for Station-related data.
const sdet::Station & GetHottestStation(const sevt::SEvent &sEvent) const
Definition: Sd5T5Tester.cc:134
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: Sd5T5Tester.cc:38
Interface class to access to the SD part of an event.
Definition: SEvent.h:39
bool IsAccepted(const sevt::SEvent &sevent, const Crown &crown) const
Definition: Sd5T5Tester.cc:195
int crown(double x1, double x2, double y1, double y2)
Definition: XbArray.cc:14
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Definition: Sd5T5Tester.cc:56
void UpdateFirstCrown(const sdet::Station &sCenter, const Crown &crown)
Definition: Sd5T5Tester.cc:221
Module interface.
Definition: VModule.h:53
REGISTER_MODULE("Sd5T5Tester", Sd5T5Tester)
std::vector< const sdet::Station * > Crown
Definition: Sd5T5Tester.h:36
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Definition: Sd5T5Tester.cc:127
Crown GetCrown(const sevt::SEvent &sevent, const sdet::Station &station) const
Definition: Sd5T5Tester.cc:159

, generated on Tue Sep 26 2023.