test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalVisualSelector.h
Go to the documentation of this file.
1 #include "MyHcalClasses.h"
2 #include "TObject.h"
3 #include "TCanvas.h"
4 #include "TH2.h"
5 
6 class TCanvas;
7 class TH2;
8 
10 public:
11  class Callbacks {
12  public:
13  virtual ~Callbacks() { }
14  virtual void plot(const MyHcalDetId& id) = 0;
15  virtual MyHcalSubdetector getSubdet(int ieta, int depth) = 0;
16  };
17 
18  HcalVisualSelector(Callbacks* cb,
19  int ieta_lo=-41, int ieta_hi=41, int iphi_lo=1, int iphi_hi=72);
20 
21  void fill(const MyHcalDetId& id, double value);
22  void onEvent(int event, int x, int y, TObject *selected);
23  void Update();
24 private:
26  TCanvas* m_canvas;
27  TH2* m_hist[4];
28 };
29 
30 
void onEvent(int event, int x, int y, TObject *selected)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
HcalVisualSelector(Callbacks *cb, int ieta_lo=-41, int ieta_hi=41, int iphi_lo=1, int iphi_hi=72)
virtual MyHcalSubdetector getSubdet(int ieta, int depth)=0
MyHcalSubdetector
Definition: MyHcalClasses.h:4
virtual void plot(const MyHcalDetId &id)=0
void fill(const MyHcalDetId &id, double value)