#include <TClonesArray.h>
+#include <TTree.h>
#include "AliRun.h"
+#include "AliLoader.h"
+#include "AliLog.h"
#include "AliRunLoader.h"
#include "AliTriggerInput.h"
AliError("Can not get VZERO loader");
return;
}
- loader->LoadDigits("READ");
+ loader->LoadDigits("update");
TTree* vzeroDigitsTree = loader->TreeD();
if (!vzeroDigitsTree) {
AliVZEROTriggerSimulator * triggerSimulator = new AliVZEROTriggerSimulator(vzeroDigitsTree,vzeroDigits);
+
triggerSimulator->Run();
+ loader->WriteDigits("OVERWRITE");
+ loader->UnloadDigits();
+
if(triggerSimulator->GetBBAandBBC()) SetInput( "VZERO_BBA_AND_BBC" );
if(triggerSimulator->GetBBAorBBC()) SetInput( "VZERO_BBA_OR_BBC" );
if(triggerSimulator->GetBGAandBBC()) SetInput( "VZERO_BGA_AND_BBC" );