TString name = GetName();
- fInputs.AddLast( new AliTriggerInput( "PHOS_L0", name, 0 ) );
+ fInputs.AddLast( new AliTriggerInput( "0PH0", name, 0 ) );
fInputs.AddLast( new AliTriggerInput( "PHOS_JetHPt_L1",name, 1 ) );
fInputs.AddLast( new AliTriggerInput( "PHOS_JetMPt_L1",name, 1 ) );
fInputs.AddLast( new AliTriggerInput( "PHOS_JetLPt_L1",name, 1 ) );
}
//______________________________________________________________________
-void AliPHOSTrigger::GetCrystalPhiEtaIndexInModuleFromTRUIndex(const Int_t itru,const Int_t iphitru,const Int_t ietatru,Int_t &iphiMod,Int_t &ietaMod) const
+void AliPHOSTrigger::GetCrystalPhiEtaIndexInModuleFromTRUIndex(Int_t itru, Int_t iphitru, Int_t ietatru,Int_t &iphiMod,Int_t &ietaMod) const
{
// This method transforms the (eta,phi) index of a crystals in a
// TRU matrix into Super Module (eta,phi) index.
AliDebug(2,Form("Type %d, Maximum amplitude %f, patch+isol square %f",iPatchType, maxamp, amp));
- if(TMath::Nint(amp*1E5) < TMath::Nint(maxamp*1E5)){
+ if(amp < maxamp){
AliError(Form("Bad sum: Type %d, Maximum amplitude %f, patch+isol square %f",iPatchType, maxamp, amp));
return kFALSE;
}
fL0Threshold) ;
printf( " Threshold for LO %10.2f\n", fL0Threshold) ;
- in = (AliTriggerInput*)fInputs.FindObject( "PHOS_L0" );
+ in = (AliTriggerInput*)fInputs.FindObject( "0PH0" );
if(in->GetValue())
printf( " *** PHOS LO is set ***\n") ;
//Set L0
for(Int_t i = 0 ; i < nTimeBins ; i++){
if(fADCValuesHigh2x2[i] >= fL0Threshold || fADCValuesLow2x2[i] >= fL0Threshold) {
- SetInput("PHOS_L0") ;
+ SetInput("0PH0") ;
break;
}
}
{
// does the trigger job
- AliRunLoader* rl = AliRunLoader::GetRunLoader() ;
+ AliRunLoader* rl = AliRunLoader::Instance() ;
AliPHOSLoader * phosLoader = dynamic_cast<AliPHOSLoader*>(rl->GetLoader("PHOSLoader"));
// Get PHOS Geometry object