////////////////////////////////////////////////////////////////////////////////
#include "AliRoot/ADCStream.hpp"
-#include "TMath.h"
+#include <TMath.h>
#include "Utils.hpp"
};
-std::ostream& operator << (std::ostream& os, const ADCStream& s)
+ostream& operator << (ostream& os, const ADCStream& s)
{
os << "{ADCStream: " << (void*)s.Data() << "}";
- os << std::endl;
+ os << endl;
for (Int_t i = 0; i < s.fData.GetSize(); i++)
{
char buffer[32];
char* str = (char*)&buffer[0];
sprintf(str, "0x%X", s.fData[i]);
- os << i << "\t" << str << std::endl;
+ os << i << "\t" << str << endl;
};
return os;
};
#ifndef dHLT_ALIROOT_ADC_STREAM_HPP
#define dHLT_ALIROOT_ADC_STREAM_HPP
-#include "TObject.h"
-#include "TArrayI.h"
-#include <ostream>
+#include <TObject.h>
+#include <TArrayI.h>
+#include <Riostream.h>
namespace AliMUONHLT
UInt_t operator [] (const UInt_t index) const;
// ostream operator usefull for text output.
- friend std::ostream& operator << (std::ostream& os, const ADCStream& s);
+ friend ostream& operator << (ostream& os, const ADCStream& s);
private:
#include "AliMUONHit.h"
#include "AliMUONRawCluster.h"
#include "AliMUONDataInterface.h"
-#ifdef __APPLE__
-#include "math.h"
+#ifndef __alpha
+#include <math.h>
+#else
+#include <float.h>
#endif
ClassImp(AliMUONHLT::ClusterSource);
AddBlock(chamber);
UInt_t currentblocksize = 0;
+#ifndef __alpha
Float_t x = NAN, y = NAN;
+#else
+ Float_t x = FLT_QNAN, y = FLT_QNAN;
+#endif
switch (fDataToUse)
{
)
{
DebugMsg(1, "Entering AddClusterFrom");
-
+#ifndef __alpha
Float_t x = NAN, y = NAN;
+#else
+ Float_t x = FLT_QNAN, y = FLT_QNAN;
+#endif
switch (fDataToUse)
{
fY = y;
};
-std::ostream& operator << (std::ostream& os, const Point& p)
+ostream& operator << (ostream& os, const Point& p)
{
os << "[" << p.fX << ", " << p.fY << "]";
return os;
#ifndef dHLT_ALIROOT_POINT_HPP
#define dHLT_ALIROOT_POINT_HPP
-#include "TObject.h"
-#include <ostream>
+#include <TObject.h>
+#include <Riostream.h>
namespace AliMUONHLT
virtual ~Point() {};
// ostream operator usefull for text output.
- friend std::ostream& operator << (std::ostream& os, const Point& p);
+ friend ostream& operator << (ostream& os, const Point& p);
Float_t fX; // X coordinate of the 2D point.
#include "AliRoot/Region.hpp"
#include "AliRoot/Point.hpp"
-#include "TMath.h"
+#include <TMath.h>
+#include "Utils.hpp"
ClassImp(AliMUONHLT::Region);
};
-std::ostream& operator << (std::ostream& os, const Region& r)
+ostream& operator << (ostream& os, const Region& r)
{
os << "[(" << r.fLeft << ", " << r.fRight << "), (" << r.fLeft << ", " << r.fRight << ")]";
return os;
#ifndef dHLT_ALIROOT_REGION_HPP
#define dHLT_ALIROOT_REGION_HPP
-#include "TObject.h"
-#include <ostream>
+#include <TObject.h>
+#include <Riostream.h>
namespace AliMUONHLT
Bool_t Contains(const Point& p) const;
// ostream operator usefull for text output.
- friend std::ostream& operator << (std::ostream& os, const Region& r);
+ friend ostream& operator << (ostream& os, const Region& r);
private:
////////////////////////////////////////////////////////////////////////////////
#include "AliRoot/Track.hpp"
-#include "TMath.h"
+#include <TMath.h>
+#include "Utils.hpp"
ClassImp(AliMUONHLT::Track);
};
-std::ostream& operator << (std::ostream& os, const Track& t)
+ostream& operator << (ostream& os, const Track& t)
{
os << "{trigid: " << t.fTriggerID << ", sign: " << t.fParticleSign
<< ", p: " << t.fP << ", pt: " << t.fPt << "}";
#ifndef dHLT_ALIROOT_TRACK_HPP
#define dHLT_ALIROOT_TRACK_HPP
-#include "TObject.h"
-#include <ostream>
+#include <TObject.h>
+#include <Riostream.h>
#include "AliRoot/Point.hpp"
#include "AliRoot/Region.hpp"
Bool_t HitsInRegions() const;
// ostream operator usefull for text output.
- friend std::ostream& operator << (std::ostream& os, const Track& t);
+ friend ostream& operator << (ostream& os, const Track& t);
private:
};
-std::ostream& operator << (std::ostream& os, const TriggerRecord& r)
+ostream& operator << (ostream& os, const TriggerRecord& r)
{
os << "{trig#: " << r.fTriggerNumber << ", sign: " << r.fParticleSign
<< ", pt: " << r.fPt << ", st1: " << r.fSt1Point << ", st2: "
#ifndef dHLT_ALIROOT_TRIGGER_RECORD_HPP
#define dHLT_ALIROOT_TRIGGER_RECORD_HPP
-#include "TObject.h"
+#include <TObject.h>
#include "AliRoot/Point.hpp"
+#include "Utils.hpp"
namespace AliMUONHLT
{
const Point& Station2Point() const { return fSt2Point; };
// ostream operator usefull for text output.
- friend std::ostream& operator << (std::ostream& os, const TriggerRecord& r);
+ friend ostream& operator << (ostream& os, const TriggerRecord& r);
private:
#include "AliMUONTriggerCircuit.h"
#include "AliMUONDataInterface.h"
#include "TDatabasePDG.h"
+#ifndef __alpha
+#include <math.h>
+#else
+#include <float.h>
+#endif
ClassImp(AliMUONHLT::TriggerSource);
ClassImp(AliMUONHLT::TriggerSource::EventData);
DebugMsg(2, "Creating TriggerRecord from hits on track: " << track );
Float_t x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4;
+#ifndef __alpha
x1 = y1 = z1 = x2 = y2 = z2 = x3 = y3 = z3 = x4 = y4 = z4 = NAN;
-
+#else
+ x1 = y1 = z1 = x2 = y2 = z2 = x3 = y3 = z3 = x4 = y4 = z4 = FLT_QNAN;
+#endif
// Find the hit that corresponds to chambers. 11 to 14. We can ignore any
// hits above the first 14. If there are that many it means the particle
// is cycling in the detector.
#include "BasicTypes.hpp"
#include <exception>
-#include <ostream>
+#include <Riostream.h>
namespace dHLT
{
Error myerror;
cout << myerror << endl;
*/
- friend std::ostream& operator << (std::ostream& os, const dHLT::Error& error)
+ friend ostream& operator << (ostream& os, const dHLT::Error& error)
{
os << error.Message();
return os;
or = ||
not = !
*/
-#ifndef __GNUC__
+#if !defined(__GNUC__) && !defined(__CINT__)
# define and &&
# define or ||
// We are defining this DebugMsg_PREECODE macro to use in DebugMsg in such a way
// so that the code is removed when the LOG_NO_DEBUG macro is specified but
// compiled otherwise.
-# include <sstream>
+# include <Rstrstream.h>
# ifndef LOG_NO_DEBUG
# define __DebugMsg_PREECODE__(message) std::ostringstream os; os << message;
# else // LOG_NO_DEBUG