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 **************************************************************************/
17 ///////////////////////////////////////////////////////////////////////////////
19 // Laser for the TPChamber version 2 -- detailed TPC and slow simulation //
21 ///////////////////////////////////////////////////////////////////////////////
25 #include <TLorentzVector.h>
28 #include <TVirtualMC.h>
34 #include "AliTPCDigitsArray.h"
35 #include "AliTPCParam.h"
36 #include "AliTPCParamSR.h"
37 #include "AliTPCTrackHitsV2.h"
38 #include "AliTPCLaser.h"
42 //_____________________________________________________________________________
43 AliTPCLaser::AliTPCLaser(const char *name, const char *title) :
46 // only use the AliTPCv2 constructor
48 //______________________________________________________________
49 void AliTPCLaser::StepManager()
51 // laser tracks are muons (PID=13)
52 // stopped in the the inner containment vessel (PID=14)
54 TVirtualMC* mc = TVirtualMC::GetMC();
56 vol = mc->CurrentVolID(copy);
58 // printf("Vol name %s\n",mc->CurrentVolName());
59 if (mc->TrackPid() == 13 // muons
60 && vol == 14) {// 14 = TIIN (inner containment vessel)
64 AliTPCv2::StepManager();