]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSBeamTestDigSPD.cxx
TPCCEda.cxx.diff fix export to amore
[u/mrichter/AliRoot.git] / ITS / AliITSBeamTestDigSPD.cxx
index 758b04d918f34db04e698cb11607d7e5997d329a..62212fb518c827c9d27dcfda4a657347922777a5 100644 (file)
@@ -67,9 +67,10 @@ void AliITSBeamTestDigSPD::Exec(Option_t* /*opt*/)
     for(Int_t nlad=1;nlad<=fITSgeom->GetNladders(nlay);nlad++){
       for(Int_t ndet=1;ndet<=fITSgeom->GetNdetectors(nlay);ndet++){
        Int_t index=fITSgeom->GetModuleIndex(nlay,nlad,ndet);
-       if(fITSgeom->GetModuleTypeName(index)=="kSPD") nspd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSDD") nsdd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSSD") nssd++;
+       TString dtype(fITSgeom->GetModuleTypeName(index));
+       if(dtype.Contains("SPD")) nspd++;
+       if(dtype.Contains("SDD")) nsdd++;
+       if(dtype.Contains("SSD")) nssd++;
       }
     }
   }
@@ -95,8 +96,8 @@ void AliITSBeamTestDigSPD::Exec(Option_t* /*opt*/)
     const AliRawDataHeader* rdh = fReader->GetDataHeader();
     UChar_t blockAttributes = fReader->GetBlockAttributes();     
     UInt_t statusBits = fReader->GetStatusBits();     
-    UInt_t orbitNumber = rdh->fEventID2;                        
-    UShort_t  bunchCross = rdh->fEventID1;      
+    UInt_t orbitNumber = rdh->GetEventID2();                    
+    UShort_t  bunchCross = rdh->GetEventID1();      
       // UInt_t DataSize = rdh->fSize;                               
       //UChar_t L1TrigType = rdh->fL1TriggerType;                            
       //UInt_t MiniEvId = rdh->GetMiniEventID();