Trigger header
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Mar 2006 17:57:55 +0000 (17:57 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Mar 2006 17:57:55 +0000 (17:57 +0000)
VZERO/AliVZEROTrigger.h [new file with mode: 0644]

diff --git a/VZERO/AliVZEROTrigger.h b/VZERO/AliVZEROTrigger.h
new file mode 100644 (file)
index 0000000..2dad9a3
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef ALIVZEROTrigger_H
+#define ALIVZEROTrigger_H
+
+///_________________________________________________________________________
+///
+///  Class for making  VZERO Trigger
+///_________________________________________________________________________   
+
+
+#include "AliTriggerDetector.h"
+#include "AliTriggerInput.h"
+
+#include "AliVZEROLoader.h"
+#include "AliVZEROdigit.h"
+
+#include "AliLog.h"
+
+
+class AliVZEROTrigger : public AliTriggerDetector
+{
+ public:
+                   AliVZEROTrigger();   // constructor
+   virtual        ~AliVZEROTrigger(){}  // destructor
+   virtual void    CreateInputs();
+   virtual void    Trigger();
+
+   void            SetAdcThreshold(Float_t t=62.5) 
+     {fAdcThresHold=t; AliDebug(1,Form("ADC threshold set to %0.2f", fAdcThresHold));}
+   
+   void            SetTimeWindowWidth(Float_t w=2) {fTimeWindowWidth=w;}
+
+
+private:
+
+   Float_t fAdcThresHold;
+   Float_t fTimeWindowWidth; // 
+
+   ClassDef( AliVZEROTrigger, 1 )  // VZERO Trigger Detector class
+};
+
+#endif // AliVZEROTrigger_H