Added new library libFMDutil. This library contains utility classes that
[u/mrichter/AliRoot.git] / FMD / scripts / ShowHits.C
CommitLineData
d389af40 1//
a1f80595 2// $Id$
3//
d389af40 4// Script to dump hit information to std::cout.
5//
a1f80595 6// Use the script `Compile.C' to compile this class using ACLic.
7//
8#include <TH2D.h>
9#include <AliFMDHit.h>
10#include <AliFMDInput.h>
d389af40 11
a1f80595 12class ShowHits : public AliFMDInputHits
13{
14public:
15 ShowHits() {}
16 Bool_t ProcessHit(AliFMDHit* hit, TParticle* part)
17 {
18 if (!hit) {
19 std::cout << "No hit" << std::endl;
20 return kFALSE;
d389af40 21 }
a1f80595 22 hit->Print();
23 if (part) part->Print();
24 return kTRUE;
d389af40 25 }
a1f80595 26};
27
28//____________________________________________________________________
29//
30// EOF
31//