]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/icepack/IceCleanHits.h
06-jun-2007 NvE Explicit tests on null pointers for returned TObjArray* from e.g...
[u/mrichter/AliRoot.git] / RALICE / icepack / IceCleanHits.h
1 #ifndef IceCleanHits_h
2 #define IceCleanHits_h
3
4 // Copyright(c) 2003, IceCube Experiment at the South Pole, All rights reserved.
5 // See cxx source for full Copyright notice.
6
7 // $Id$
8
9 #include "TROOT.h"
10 #include "TTask.h"
11 #include "TString.h"
12
13 #include "AliJob.h"
14 #include "IceEvent.h"
15 #include "IceAOM.h"
16 #include "IceIDOM.h"
17 #include "IceTDOM.h"
18
19 class IceCleanHits : public TTask
20 {
21  public :
22   IceCleanHits(const char* name="",const char* title=""); // Constructor
23   virtual ~IceCleanHits();                                // Destructor
24   virtual void Exec(Option_t* opt);                       // Hit cleaning
25   void SetAdcRangeA(Float_t min,Float_t max=999999);      // Set Amanda ADC range (in PE)
26   void SetTotRangeAE(Float_t min,Float_t max=2000);       // Set Amanda electrical TOT range (in ns)
27   void SetTotRangeAO(Float_t min,Float_t max=2000);       // Set Amanda optical TOT range (in ns)
28   void SetIsolationA(Float_t rmax,Float_t dtmax);         // Set Amanda isolation radius (in m) and dt (in ns)
29   void SetTwindowA(Float_t dtmax);                        // Set Amanda maximal trigger window (in TDC counts)
30   void SetTtimeA(Float_t t);                              // Set Amanda trigger time (in TDC counts)
31   void SetTnameA(TString name);                           // Set Amanda trigger name
32
33  protected :
34   IceEvent* fEvt;    // Pointer to the current event structure
35   Float_t fAdcminA;  // Minimum Amanda ADC value in PE
36   Float_t fAdcmaxA;  // Maximum Amanda ADC value in PE
37   Float_t fTotminAE; // Minimum Amanda electrical TOT value in ns
38   Float_t fTotmaxAE; // Maximum Amanda electrical TOT value in ns
39   Float_t fTotminAO; // Minimum Amanda optical TOT value in ns
40   Float_t fTotmaxAO; // Maximum Amanda optical TOT value in ns
41   Float_t fRmaxA;    // Maximum Amanda isolation radius in m
42   Float_t fDtmaxA;   // Maximum Amanda isolation dt in ns
43   Float_t fTwinA;    // Maximum Amanda hit time difference from the trigger time in TDC counts
44   Float_t fTtimA;    // The Amanda trigger time in TDC counts
45   TString fTnamA;    // The Amanda trigger name
46   void Amanda();     // Cleaning of Amanda modules
47   void InIce();      // Cleaning of IceCube InIce DOMs
48   void IceTop();     // Cleaning of IceTop DOMs
49
50  ClassDef(IceCleanHits,3) // TTask derived class to perform hit cleaning
51 };
52 #endif