]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSDigitMakerComponent.cxx
Bug Fix: Forgot to call the initialization of
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigitMakerComponent.cxx
index 5fd28bc5a6bcba29354b304753f853ec4490385c..989560cce37de578ed47eb227b92a9d20ec368fc 100644 (file)
@@ -215,6 +215,9 @@ AliHLTPHOSDigitMakerComponent::DoInit(int argc, const char** argv )
   AliHLTCaloMapper *mapper = new AliHLTPHOSMapper();
   fDigitMakerPtr->SetMapper(mapper);
   
+  Float_t mintime = 0.;
+  Float_t maxtime =50.;
+  
   for(int i = 0; i < argc; i++)
     {
       if(!strcmp("-lowgainfactor", argv[i]))
@@ -225,8 +228,18 @@ AliHLTPHOSDigitMakerComponent::DoInit(int argc, const char** argv )
        {
          fDigitMakerPtr->SetGlobalHighGainFactor(atof(argv[i+1]));
        }
+       if(!strcmp("-mintime", argv[i]))
+       {
+          mintime = atof(argv[i+1]);
+       }
+       if(!strcmp("-maxtime", argv[i]))
+       {
+          maxtime = atof(argv[i+1]);
+       }
     }
  
+ fDigitMakerPtr->SetTimeWindow(mintime, maxtime);
+
  if(GetBCMFromCDB()) return -1;
  if(GetGainsFromCDB()) return -1;
   
@@ -247,24 +260,6 @@ int AliHLTPHOSDigitMakerComponent::GetBCMFromCDB()
     {
       //      HLTInfo("configure from entry %s", path.GetPath());
       AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(path/*,GetRunNo()*/);
-/*      if (pEntry) 
-       {
-           fBadChannelMap = new Bool_t**[fCaloConstants->GetNMODULES()];
-           AliPHOSEmcBadChannelsMap * badMap = (AliPHOSEmcBadChannelsMap*)pEntry->GetObject();
-           for(Int_t mod = 0; mod < fCaloConstants->GetNMODULES(); mod++)
-           {
-              fBadChannelMap[mod] = new Bool_t*[fCaloConstants->GetNXCOLUMNSMOD()];
-              for(Int_t x = 0; x < fCaloConstants->GetNXCOLUMNSMOD(); x++)
-              {
-                 fBadChannelMap[mod][x] = new Bool_t[fCaloConstants->GetNZROWSMOD()];
-                 for(Int_t z = 0; z < fCaloConstants->GetNZROWSMOD(); z++)
-                 {
-                    fBadChannelMap[mod][x][z] = badMap->IsBadChannel(5 - mod, z+1, x+1);
-                    if(badMap->IsBadChannel(5-mod, z+1, x+1)) printf("Module: %d, channel x: %d, z: %d is: %d\n", mod, x, z, badMap->IsBadChannel(5-mod, z+1, x+1));
-                 }
-              }
-           }
-       }*/
        if (pEntry) 
        {
            fBadChannelMap = (AliPHOSEmcBadChannelsMap*)pEntry->GetObject();