/* $Id$ */
+//
+// Realisation of AliLhcMonitor simulating an LHC interaction region.
+// The interaction region is described by the two LHC beams,
+// by the beta* and the crossing angle.
+// As a monitor it records the luminosity, average luminosity and beta*
+// time evolution.
+// Author: Andreas Morsch
+// andreas.morsch@cern.ch
+//
#include "AliLhcIRegion.h"
#include "AliLhcBeam.h"
#include "AliLHC.h"
ClassImp(AliLhcIRegion)
AliLhcIRegion::AliLhcIRegion(AliLHC* lhc, const char* name, const char* title)
- :TNamed(name,title)
+ :TNamed(name,title),
+ fAccelerator(lhc),
+ fBeam1(0),
+ fBeam2(0),
+ fLuminosity(0.),
+ fLuminosity0(0.),
+ fAverageLumi(0.),
+ fBetaStar(0.),
+ fBetaStar0(0.),
+ fCrossingAngle(0.),
+ fFrequency(0.),
+ fLumiArray(0),
+ fAverageLumiArray(0),
+ fBetaStarArray(0)
{
// Constructor
- fAccelerator=lhc;
- fLumiArray = 0;
- fAverageLumiArray = 0;
- fBetaStarArray = 0;
}
-AliLhcIRegion::AliLhcIRegion(const AliLhcIRegion& region)
+AliLhcIRegion::AliLhcIRegion(const AliLhcIRegion& region):
+ TNamed(region), AliLhcMonitor(region),
+ fAccelerator(0),
+ fBeam1(0),
+ fBeam2(0),
+ fLuminosity(0.),
+ fLuminosity0(0.),
+ fAverageLumi(0.),
+ fBetaStar(0.),
+ fBetaStar0(0.),
+ fCrossingAngle(0.),
+ fFrequency(0.),
+ fLumiArray(0),
+ fAverageLumiArray(0),
+ fBetaStarArray(0)
{
// copy constructor
}
}
-AliLhcIRegion& AliLhcIRegion::operator=(const AliLhcIRegion & rhs)
+AliLhcIRegion& AliLhcIRegion::operator=(const AliLhcIRegion & /*rhs*/)
{
// Assignment operator
return *this;
mg->Draw("AC");
TCanvas *c2 = new TCanvas(name2,title, 200, 10, 700, 500);
- c1->SetGrid();
+ c2->SetGrid();
grLumiB->Draw("AC");
}