]>
Commit | Line | Data |
---|---|---|
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 | ||
23 | ClassImp(AliLhcProcessBT) | |
24 | ||
25 | AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title) | |
64eb707f | 26 | :AliLhcProcess(lhc,name,title), |
27 | fCrossSection(0.), | |
28 | fIRegions(0), | |
29 | fBetaMin(0.) | |
11141716 | 30 | { |
31 | // Constructor | |
32 | } | |
33 | ||
34 | ||
64eb707f | 35 | |
36 | AliLhcProcessBT::AliLhcProcessBT(const AliLhcProcessBT& bt): | |
37 | AliLhcProcess(bt), | |
38 | fCrossSection(0.), | |
39 | fIRegions(0), | |
40 | fBetaMin(0.) | |
41 | { | |
42 | // Copy Constructor | |
43 | ||
44 | } | |
45 | ||
11141716 | 46 | AliLhcProcessBT::~AliLhcProcessBT() |
47 | { | |
48 | // Destructor | |
49 | } | |
50 | ||
51 | void AliLhcProcessBT::Init() | |
52 | { | |
53 | // Initialization | |
54 | printf("\n Initializing Process %s", GetName()); | |
55 | printf("\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"); | |
56 | fIRegions = fAccelerator->IRegions(); | |
57 | } | |
58 | ||
59 | void AliLhcProcessBT::Evolve(Float_t dt) | |
60 | { | |
61 | printf("\n Here process %s %f:", GetName(), dt); | |
62 | TIter next(fIRegions); | |
63 | AliLhcIRegion *region; | |
64 | // | |
65 | // Loop over generators and initialize | |
66 | while((region = (AliLhcIRegion*)next())) { | |
67 | Float_t betanew = | |
68 | region->Luminosity()/region->InitialLumi()*region->BetaStar(); | |
69 | if (betanew > fBetaMin) region->SetBetaStar(betanew); | |
70 | } | |
71 | } | |
72 | ||
73 | ||
e76f229f | 74 | AliLhcProcessBT& AliLhcProcessBT::operator=(const AliLhcProcessBT & /*rhs*/) |
11141716 | 75 | { |
76 | // Assignment operator | |
77 | return *this; | |
78 | } | |
79 | ||
80 |