6 std::cerr <<
"This script must be run in AliROOT" <<std::edl;
11 gAlice->InitMC(
"$ALICE_ROOT/FMD/Config.C");
16 std::cerr <<
"FMD object not defined" << std::endl;
22 std::cerr <<
"No run loader defined" << std::end;
44 std::cerr <<
"No MC application defined" << std::endl;
51 for (
size_t i = 0; i < 51200; i++) {
62 for (UShort_t d = 1; d <= 3; d++) {
63 UShort_t nrng = (d == 1 ? 1 : 2);
64 for (UShort_t ir = 0; ir < nrng; ir++) {
65 Char_t r = (ir == 0 ?
'I' :
'O');
66 UShort_t nsec = (ir == 0 ? 20 : 40);
67 UShort_t nstr = (ir == 0 ? 512 : 256);
68 for (UShort_t s = 0; s < nsec; s++) {
69 for (UShort_t t = 0; t < nstr; t++) {
74 UInt_t ddl, board, altro, channel;
77 ddl, board, altro, channel, timebin);
78 Float_t e = Float_t(s) / nsec + Float_t(t)/(100*nstr);
79 e = Float_t(timebin % 64) / 64 * 1.5;
81 std::cout <<
"FMD" << d << r <<
"[" << std::setfill(
'0')
82 << std::setw(2) << s <<
"," << std::setw(3) << t
83 <<
"] " << std::setfill(
' ')
84 << std::setw(4) << timebin <<
" (" 85 << std::setw(10) << x <<
"," 86 << std::setw(10) << y <<
"," 87 << std::setw(10) << z <<
") -> " 88 << std::setw(10) << e <<
"\t\r" 109 std::cout << std::endl;
virtual void FinishEvent()
virtual void InitTransformations(Bool_t force=kFALSE)
virtual void BeginPrimary()
Forward Multiplicity Detector based on Silicon wafers. This class is the driver for especially simula...
virtual void FinishPrimary()
Singleton object of FMD geometry descriptions and parameters. This class is a singleton that handles ...
Bool_t Detector2Hardware(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t sam, UShort_t preSamples, UShort_t sampleRate, UShort_t &ddl, UShort_t &board, UShort_t &altro, UShort_t &channel, UShort_t &timebin) const
TGeoManager * gGeoManager
Class that encodes a map to/from ALTRO hardware address to FMD detector coordinates.
void Detector2XYZ(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Double_t &x, Double_t &y, Double_t &z) const
virtual void PushTrack(Int_t done, Int_t parent, Int_t pdg, const Float_t *pmom, const Float_t *vpos, const Float_t *polar, Float_t tof, TMCProcess mech, Int_t &ntr, Float_t weight=1, Int_t is=0) const
void SetDefaultStorage(const char *dbString)
virtual AliFMDHit * AddHitByFields(Int_t track, UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t x=0, Float_t y=0, Float_t z=0, Float_t px=0, Float_t py=0, Float_t pz=0, Float_t edep=0, Int_t pdg=0, Float_t t=0, Float_t len=0, Bool_t stopped=kFALSE)
virtual void BeginEvent()
AliDetector * GetDetector(const char *name) const
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
static AliFMDGeometry * Instance()