2 // $MpId: testReadMotifTypeSlat.C,v 1.1 2005/09/19 19:02:53 ivana Exp $
4 #if !defined(__CINT__) || defined(__MAKECINT__)
5 #include "AliMpMotifReader.h"
7 #include "AliMpMotifType.h"
10 Int_t test(AliMpMotifReader& r, const char letter, Int_t from, Int_t to)
14 for ( Int_t i = from; i <= to; ++i )
16 sprintf(m,"%c%d",letter,i);
17 AliMpMotifType* motifType = r.BuildMotifType(m);
20 motifType->Print("G");
25 cout << "Cannot read motifType " << m << endl;
31 void testReadMotifTypeSlat()
33 AliMpMotifReader r(kStation345,kNonBendingPlane);
34 // note that second parameter is not used for station345.
39 n += test(r,'L',1,20);
40 n += test(r,'O',1,19);
43 n += test(r,'R',1,42);
46 cout << "==== " << n << " motifTypes successfully read in" << endl;