}*/
//__________________________________________________________________________
-void AliAODTagCreator::CreateAODTags(Int_t fFirstEvent, Int_t fLastEvent) {
+void AliAODTagCreator::CreateAODTags(Int_t fFirstEvent, Int_t fLastEvent, TList *grpList) {
//creates tag files for AODs
Float_t fLowPtCut = 1.0;
AliAODTagCreator();
~AliAODTagCreator();
- void CreateAODTags(Int_t fFirstEvent, Int_t fLastEvent);
+ void CreateAODTags(Int_t fFirstEvent, Int_t fLastEvent, TList *grpList);
Bool_t ReadGridCollection(TGridResult *result);
Bool_t ReadLocalCollection(const char *localpath);
}
//_____________________________________________________________________________
-void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent) {
+void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, TList *grpList) {
//GRP
Float_t lhcLuminosity = 0.0;
TString lhcState = "test";
AliESDTagCreator();
~AliESDTagCreator();
- void CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent);
+ void CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, TList *grpList);
Bool_t ReadGridCollection(TGridResult *result);
Bool_t ReadLocalCollection(const char *localpath);
#include <TArrayF.h>
#include <TFile.h>
+#include <TList.h>
#include <TSystem.h>
#include <TROOT.h>
#include <TPluginManager.h>
fVertexer(NULL),
fDiamondProfile(NULL),
+ fGRPList(NULL),
+
fAlignObjArray(NULL),
fCDBUri(cdbUri),
fRemoteCDBUri(""),
fVertexer(NULL),
fDiamondProfile(NULL),
+ fGRPList(NULL),
+
fAlignObjArray(rec.fAlignObjArray),
fCDBUri(rec.fCDBUri),
fRemoteCDBUri(rec.fRemoteCDBUri),
}
+ // Get the GRP CDB entry
+ AliCDBEntry* entryGRP = AliCDBManager::Instance()->Get("GRP/GRP/Data");
+
+ if(entryGRP) {
+ fGRPList = dynamic_cast<TList*> (entryGRP->GetObject());
+ } else {
+ AliError("No GRP entry found in OCDB!");
+ }
+
// Get the diamond profile from OCDB
AliCDBEntry* entry = AliCDBManager::Instance()
->Get("GRP/Calib/MeanVertex");
// Create tags for the events in the ESD tree (the ESD tree is always present)
// In case of empty events the tags will contain dummy values
AliESDTagCreator *esdtagCreator = new AliESDTagCreator();
- esdtagCreator->CreateESDTags(fFirstEvent,fLastEvent);
+ esdtagCreator->CreateESDTags(fFirstEvent,fLastEvent,fGRPList);
if (fWriteAOD) {
AliAODTagCreator *aodtagCreator = new AliAODTagCreator();
- aodtagCreator->CreateAODTags(fFirstEvent,fLastEvent);
+ aodtagCreator->CreateAODTags(fFirstEvent,fLastEvent,fGRPList);
}
return kTRUE;
delete fDiamondProfile;
fDiamondProfile = NULL;
+ delete fGRPList;
+ fGRPList = NULL;
+
delete fRunLoader;
fRunLoader = NULL;
delete fRawReader;
class AliESDEvent;
class TFile;
class TTree;
+class TList;
class AliQADataMaker;
class AliReconstruction: public TNamed {
AliTracker* fTracker[fgkNDetectors]; //! trackers
AliESDVertex* fDiamondProfile; // (x,y) diamond profile for AliVertexerTracks
+ TList* fGRPList; // TList from the GRP/GRP/Data CDB folder
+
TObjArray* fAlignObjArray; // array with the alignment objects to be applied to the geometry
TString fCDBUri; // Uri of the default CDB storage