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 **************************************************************************/
18 #include "AliLhcProcessBT.h"
20 #include "AliLhcIRegion.h"
21 #include "AliLhcBeam.h"
23 ClassImp(AliLhcProcessBT)
25 AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title)
26 :AliLhcProcess(lhc,name,title),
36 AliLhcProcessBT::AliLhcProcessBT(const AliLhcProcessBT& bt):
46 AliLhcProcessBT::~AliLhcProcessBT()
51 void AliLhcProcessBT::Init()
54 printf("\n Initializing Process %s", GetName());
55 printf("\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
56 fIRegions = fAccelerator->IRegions();
59 void AliLhcProcessBT::Evolve(Float_t dt)
61 printf("\n Here process %s %f:", GetName(), dt);
62 TIter next(fIRegions);
63 AliLhcIRegion *region;
65 // Loop over generators and initialize
66 while((region = (AliLhcIRegion*)next())) {
68 region->Luminosity()/region->InitialLumi()*region->BetaStar();
69 if (betanew > fBetaMin) region->SetBetaStar(betanew);
74 AliLhcProcessBT& AliLhcProcessBT::operator=(const AliLhcProcessBT & /*rhs*/)
76 // Assignment operator