]> git.uio.no Git - u/mrichter/AliRoot.git/blame - LHC/AliLhcProcessBT.cxx
Now the full chain includes raw data.
[u/mrichter/AliRoot.git] / LHC / AliLhcProcessBT.cxx
CommitLineData
11141716 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
803d1ab0 16/* $Id$ */
11141716 17
18#include "AliLhcProcessBT.h"
19#include "AliLHC.h"
20#include "AliLhcIRegion.h"
21#include "AliLhcBeam.h"
22
23ClassImp(AliLhcProcessBT)
24
25AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title)
26 :AliLhcProcess(lhc,name,title)
27{
28// Constructor
29}
30
31
32AliLhcProcessBT::~AliLhcProcessBT()
33{
34// Destructor
35}
36
37void AliLhcProcessBT::Init()
38{
39 // Initialization
40 printf("\n Initializing Process %s", GetName());
41 printf("\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
42 fIRegions = fAccelerator->IRegions();
43}
44
45void AliLhcProcessBT::Evolve(Float_t dt)
46{
47 printf("\n Here process %s %f:", GetName(), dt);
48 TIter next(fIRegions);
49 AliLhcIRegion *region;
50 //
51 // Loop over generators and initialize
52 while((region = (AliLhcIRegion*)next())) {
53 Float_t betanew =
54 region->Luminosity()/region->InitialLumi()*region->BetaStar();
55 if (betanew > fBetaMin) region->SetBetaStar(betanew);
56 }
57}
58
59
e76f229f 60AliLhcProcessBT& AliLhcProcessBT::operator=(const AliLhcProcessBT & /*rhs*/)
11141716 61{
62// Assignment operator
63 return *this;
64}
65
66