1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
20 #include "AliLhcProcessBT.h"
22 #include "AliLhcIRegion.h"
23 #include "AliLhcBeam.h"
25 ClassImp(AliLhcProcessBT)
27 AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title)
28 :AliLhcProcess(lhc,name,title)
34 AliLhcProcessBT::~AliLhcProcessBT()
39 void AliLhcProcessBT::Init()
42 printf("\n Initializing Process %s", GetName());
43 printf("\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
44 fIRegions = fAccelerator->IRegions();
47 void AliLhcProcessBT::Evolve(Float_t dt)
49 printf("\n Here process %s %f:", GetName(), dt);
50 TIter next(fIRegions);
51 AliLhcIRegion *region;
53 // Loop over generators and initialize
54 while((region = (AliLhcIRegion*)next())) {
56 region->Luminosity()/region->InitialLumi()*region->BetaStar();
57 if (betanew > fBetaMin) region->SetBetaStar(betanew);
62 AliLhcProcessBT& AliLhcProcessBT::operator=(const AliLhcProcessBT & rhs)
64 // Assignment operator