6 Float_t
EtaValue(UShort_t d, Char_t r, UShort_t t)
8 return (d * 1000 + (r ==
'I' || r ==
'i' ? 0 : 1) * 100 + 0.001 * t);
10 Float_t
MultValue(UShort_t d, Char_t r, UShort_t s, UShort_t t)
18 for (UShort_t d = 1; d <= 3; d++) {
19 UShort_t nRng = (d == 1 ? 1 : 2);
20 for (UShort_t i = 0; i < nRng; i++) {
21 Char_t r = (i == 0 ?
'I' :
'O');
22 UShort_t nSec = (i == 0 ? 20 : 40);
23 UShort_t nStr = (i == 0 ? 512 : 256);
24 for (UShort_t s = 0; s < nSec; s++) {
25 for (UShort_t t = 0; t < nStr; t++) {
38 TTree*
tree =
new TTree(
"T",
"T");
40 tree->Branch(
"FMD",
"AliESDFMD", &fmd);
42 for (UShort_t i = 0; i < 10; i++) {
51 PrintOne(UShort_t d, Char_t r, UShort_t s, UShort_t t,
56 if (m != em || ee != e) {
57 std::cerr <<
"FMD" << d << r <<
'[' 58 << std::setw(2) << s <<
',' 59 << std::setw(3) << t <<
"]: " 60 << std::setw(8) << m <<
" (" 61 << std::setw(8) << em <<
' ' 62 << (m == em ?
"ok" :
"bad") <<
") @ " 63 << std::setw(8) << e <<
" (" 64 << std::setw(8) << ee <<
' ' 65 << (ee == e ?
"ok" :
"bad") <<
')' << std::endl;
76 for (UShort_t d = 1; d <= 3; d++) {
77 UShort_t nRng = (d == 1 ? 1 : 2);
78 for (UShort_t i = 0; i < nRng; i++) {
79 Char_t r = (i == 0 ?
'I' :
'O');
80 UShort_t nSec = (i == 0 ? 20 : 40);
81 UShort_t nStr = (i == 0 ? 512 : 256);
82 for (UShort_t s = 0; s < nSec; s++) {
83 for (UShort_t t = 0; t < nStr; t++) {
85 Float_t e = esd->
Eta(d, r, s, t);
86 if (!
PrintOne(d, r, s, t, m, e)) ret = kFALSE;
98 TTree*
tree =
static_cast<TTree*
>(file->Get(
"T"));
100 tree->SetBranchAddress(
"FMD", &fmd);
103 for (UShort_t i = 0; i < 10; i++) {
110 std::cerr <<
"There have been errors!" << std::endl;
112 std::cout <<
"All correct" << std::endl;
void WriteESD(const char *fileName)
TFile * Open(const char *filename, Long64_t &nevents)
Bool_t PrintOne(UShort_t d, Char_t r, UShort_t s, UShort_t t, Float_t m, Float_t e)
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
void ReadESD(const char *fileName)
Float_t EtaValue(UShort_t d, Char_t r, UShort_t t)
Bool_t PrintESD(AliESDFMD *esd)
void SetMultiplicity(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t mult)
void SetEta(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t eta)
Float_t Multiplicity(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const
Float_t MultValue(UShort_t d, Char_t r, UShort_t s, UShort_t t)
Float_t Eta(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const
Event Summary Data for the Forward Multiplicity Detector.This stores the psuedo-multiplicity and -rap...
void Clear(Option_t *option="")
void FillESD(AliESDFMD *esd)