]> git.uio.no Git - u/mrichter/AliRoot.git/blame - LHC/AliLhcProcessBT.cxx
Configuration and steering for lumi plots.
[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
16/*
17$Log$
18*/
19
20#include "AliLhcProcessBT.h"
21#include "AliLHC.h"
22#include "AliLhcIRegion.h"
23#include "AliLhcBeam.h"
24
25ClassImp(AliLhcProcessBT)
26
27AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title)
28 :AliLhcProcess(lhc,name,title)
29{
30// Constructor
31}
32
33
34AliLhcProcessBT::~AliLhcProcessBT()
35{
36// Destructor
37}
38
39void AliLhcProcessBT::Init()
40{
41 // Initialization
42 printf("\n Initializing Process %s", GetName());
43 printf("\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
44 fIRegions = fAccelerator->IRegions();
45}
46
47void AliLhcProcessBT::Evolve(Float_t dt)
48{
49 printf("\n Here process %s %f:", GetName(), dt);
50 TIter next(fIRegions);
51 AliLhcIRegion *region;
52 //
53 // Loop over generators and initialize
54 while((region = (AliLhcIRegion*)next())) {
55 Float_t betanew =
56 region->Luminosity()/region->InitialLumi()*region->BetaStar();
57 if (betanew > fBetaMin) region->SetBetaStar(betanew);
58 }
59}
60
61
62AliLhcProcessBT& AliLhcProcessBT::operator=(const AliLhcProcessBT & rhs)
63{
64// Assignment operator
65 return *this;
66}
67
68