}
//______________________________________________________________________________
-void AliAnalysisManager::InitInputData(AliVVevent* esdEvent, AliVfriendEvent* esdFriend)
+void AliAnalysisManager::InitInputData(AliVEvent* esdEvent, AliVfriendEvent* esdFriend)
{
// Method to propagte to all the connected tasks the HLT event.
class AliVEventPool;
class AliAnalysisGrid;
class AliAnalysisStatistics;
-class AliVVevent;
class AliVfriendEvent;
+class AliVEvent;
class AliAnalysisManager : public TNamed {
void Lock();
void UnLock();
void Changed();
- void InitInputData(AliVVevent* esdEvent, AliVfriendEvent* esdFriend);
+ void InitInputData(AliVEvent* esdEvent, AliVfriendEvent* esdFriend);
protected:
void CreateReadCache();
void ImportWrappers(TList *source);
# -*- mode: CMake -*-
set ( SRCS
- STEERBase/AliVVevent.cxx
- STEERBase/AliVVtrack.cxx
STEERBase/AliVParticle.cxx
STEERBase/AliVTrack.cxx
STEERBase/AliEventplane.cxx
#include "AliHLTTestInputHandler.h"
#include "AliVCuts.h"
-#include "AliVVevent.h"
+#include "AliVEvent.h"
#include "TObjArray.h"
#include "AliAnalysisTask.h"
}
//______________________________________________________________________________
-Bool_t AliHLTTestInputHandler::InitTaskInputData(AliVVevent* esdEvent, AliVfriendEvent* friendEvent, TObjArray* arrTasks) {
+Bool_t AliHLTTestInputHandler::InitTaskInputData(AliVEvent* esdEvent, AliVfriendEvent* friendEvent, TObjArray* arrTasks) {
// Method to propagte to all the connected tasks the HLT event.
// The method gets the list of tasks from the manager
Printf("----> AliHLTTestInputHandler::InitTaskInpuData: Setting the event...");
- SetVVEvent(esdEvent);
+ SetEvent(esdEvent);
SetVFriendEvent(friendEvent);
// set transient pointer to event inside tracks
fEvent->ConnectTracks();
#endif
class TObjArray;
-class AliVVevent;
class AliVfriendevent;
+class AliVEvent;
class AliHLTTestInputHandler : public AliVEventHandler {
virtual Bool_t TerminateIO() {return kTRUE;}
// Especially needed for HLT
- Bool_t InitTaskInputData(AliVVevent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
+ Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
AliVEvent* GetEvent() const {return NULL;}
- AliVVevent* GetVVEvent() const {return fEvent;}
- void SetVVEvent(AliVVevent *event) {fEvent = event;}
+ void SetEvent(AliVEvent *event) {fEvent = event;}
AliVfriendEvent* GetVFriendEvent() const {return fFriendEvent;}
void SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;}
AliHLTTestInputHandler(const AliVEventHandler& handler);
AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);
- AliVVevent *fEvent; //! Pointer to the event
+ AliVEvent *fEvent; //! Pointer to the event
AliVfriendEvent *fFriendEvent; //! Pointer to the friend event
ClassDef(AliHLTTestInputHandler, 1);
#include <TTree.h>
-class AliVVevent;
class AliVCuts;
class AliRunTag;
class AliEventTag;
void SetActiveBranches (const char* branches) {Changed(); fBranchesOn = branches;}
// Getters
virtual AliVEvent *GetEvent() const {return 0;}
- virtual AliVVevent *GetVVEvent() const {return 0;}
virtual const AliEventTag *GetEventTag() const {return 0;}
virtual AliRunTag *GetRunTag() const {return 0;}
// Get the statistics object (currently TH2). Option can be BIN0.
AliVEvent::AliVEvent(const AliVEvent& vEvnt) :
- AliVVevent(), TObject(vEvnt) { } // Copy constructor
+ TObject(vEvnt) { } // Copy constructor
AliVEvent& AliVEvent::operator=(const AliVEvent& vEvnt)
{ if (this!=&vEvnt) {
// Origin: Markus Oldenburg, CERN, Markus.Oldenburg@cern.ch
//-------------------------------------------------------------------------
-#include "AliVVevent.h"
#include <TObject.h>
#include <TTree.h>
#include <TGeoMatrix.h>
#include "AliTOFHeader.h"
#include "AliVTrdTrack.h"
+class AliVfriendEvent;
class AliCentrality;
class AliEventplane;
class AliVVZERO;
class AliVZDC;
class AliVMFT; // AU
+class AliESDkink;
-class AliVEvent : public TObject, virtual public AliVVevent {
+class AliVEvent : public TObject {
private:
// disable some methods from AliVEvent interface
Int_t GetNumberOfKinks() const { return 0; }
- const AliVVtrack* GetVVTrack(Int_t /*i*/) const { return NULL; }
AliESDkink* GetKink(Int_t /*i*/) const { return NULL; }
public:
class TTree;
class TObjArray;
-class AliVVevent;
class AliVEvent;
class AliVfriendEvent;
virtual TList *GetUserInfo() const {return 0x0;};
// HLT
- virtual Bool_t InitTaskInputData(AliVVevent* /*event*/, AliVfriendEvent* /*esdFriend*/, TObjArray* /*arrTasks*/) {return kTRUE;};
+ virtual Bool_t InitTaskInputData(AliVEvent* /*event*/, AliVfriendEvent* /*esdFriend*/, TObjArray* /*arrTasks*/) {return kTRUE;};
virtual AliVEvent* GetEvent() const {return 0x0;};
- virtual AliVVevent* GetVVEvent() const {return 0x0;};
virtual AliVfriendEvent* GetVFriendEvent() const {return 0x0;};
private :
class AliVEvent;
class AliVVertex;
+class AliExternalTrackParam;
class AliTPCdEdxInfo;
class AliDetectorPID;
class AliTOFHeader;
-class AliExternalTrackParam;
+
class AliVTrack: public AliVParticle {
public:
virtual Double_t GetTOFsignalTunedOnData() const {return 0.;}
virtual Double_t GetHMPIDsignal() const {return 0.;}
virtual Double_t GetTRDsignal() const {return 0.;}
+ virtual UChar_t GetTRDNchamberdEdx() const {return 0;}
+ virtual UChar_t GetTRDNclusterdEdx() const {return 0;}
virtual Double_t GetHMPIDoccupancy() const {return 0.;}
virtual Double_t GetIntegratedLength() const { return 0.;}
virtual ULong_t GetStatus() const = 0;
- virtual Bool_t GetXYZAt(Double_t /*x*/, Double_t /*b*/, Double_t* /*r*/ ) const ;
virtual Bool_t GetXYZ(Double_t* /*p*/) const ;
+ virtual Bool_t GetXYZAt(Double_t /*x*/, Double_t /*b*/, Double_t* /*r*/ ) const ;
virtual Double_t GetBz() const;
virtual void GetBxByBz(Double_t b[3]) const;
virtual Bool_t GetCovarianceXYZPxPyPz(Double_t cv[21]) const = 0;
+++ /dev/null
-/* $Id$ */
-
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-/**
- * >> base interface class for events <<
- *
- * To be used in the online and offline calibration schema.
- *
- * Class provides interface methods for
- * - Filling from AliESDEvent, but also from HLT (to be added)
- * - Getter methods
- *
- * In the online case, the structure can be directly written into a shared
- * memory, in the offline case, the size has to be estimated first.
- *
- *
- * Primary Authors : Mikolaj Krzewicki
- */
-
-#include "AliVVevent.h"
-
+++ /dev/null
-#ifndef ALIVVEVENT_H
-#define ALIVVEVENT_H
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice *
- * Primary Authors : Sergey Gorbunov, Jochen Thaeder, Chiara Zampolli */
-
-/*
- * See implementation file for documentation
- */
-#include "Rtypes.h"
-#include "TString.h"
-#include "AliVMisc.h"
-
-class TList;
-//class AliVVvertex;
-class AliVVtrack;
-class AliMultiplicity;
-class AliVfriendEvent;
-class AliESDkink;
-class TTree;
-
-class AliVVevent{
- public:
- // --------------------------------------------------------------------------------
- // -- Constructor / Destructor
- // --------------------------------------------------------------------------------
-
- AliVVevent() {}
-
- // constructor and method for reinitialisation of virtual table
- AliVVevent( AliVConstructorReinitialisationFlag ){}
-
- protected:
-
- virtual ~AliVVevent() {}
-
- public:
- // --------------------------------------------------------------------------------
- // -- Methods, common for AliVEvent and AliVVevent interface
- // --------------------------------------------------------------------------------
-
- // Access methods
-
- virtual Double_t GetMagneticField() const = 0;
- virtual UInt_t GetPeriodNumber() const = 0;
- virtual Int_t GetRunNumber() const = 0;
- virtual UInt_t GetOrbitNumber() const = 0;
- virtual UShort_t GetBunchCrossNumber() const = 0;
- virtual ULong64_t GetTriggerMask() const = 0;
- virtual TString GetFiredTriggerClasses() const = 0;
-
- virtual Int_t GetNumberOfTracks() const = 0;
- virtual Int_t GetNumberOfV0s() const = 0;
-
- // Other methods
-
- virtual void Reset() = 0;
- virtual void ConnectTracks() = 0;
-
- // --------------------------------------------------------------------------------
- // -- Methods, specific for AliVVevent (are disabled in AliVEvent interface)
- // --------------------------------------------------------------------------------
-
- virtual UInt_t GetTimeStamp() const = 0;
- virtual UInt_t GetEventSpecie() const = 0;
- virtual ULong64_t GetTriggerMaskNext50() const = 0;
-
- virtual Int_t GetNumberOfKinks() const = 0;
-
- /*
- virtual const AliVVvertex* GetPrimaryVertex() const {return NULL;}
- virtual const AliVVvertex* GetPrimaryVertexSPD() const {return NULL;}
- virtual const AliVVvertex* GetPrimaryVertexTracks() const {return NULL;}
- virtual const AliVVvertex* GetPrimaryVertexTPC() const {return NULL;}
- */
-
- virtual const AliVVtrack* GetVVTrack(Int_t /*i*/) const = 0;
- virtual AliESDkink* GetKink(Int_t /*i*/) const = 0;
- //virtual AliVVtrack* GetV0(Int_t /*i*/) const = 0;
-
- virtual AliVfriendEvent* FindFriend() const = 0;
-
-
- // some ESD interfaces, not yet implemented in flat esd (may be not needed, may be need some changes)
-
- //virtual Int_t GetEventNumberInFile() const = 0;
- //virtual const AliMultiplicity* GetMultiplicity() const = 0; //by default SPDmult
-
- //ClassDef(AliVVevent, 1)
-
-};
-#endif
+++ /dev/null
-/* $Id$ */
-
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-/**
- * >> interface class to a track/particle (normal/flat) <<
- *
- * To be used in the online and offline calibration schema.
- *
- * Primary Authors : Mikolaj Krzewicki (mkrzewic@cern.ch)
- *
- **************************************************************************/
-
-#include "AliVVtrack.h"
+++ /dev/null
-#ifndef ALIVVTRACK_H
-#define ALIVVTRACK_H
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice *
- * Primary Authors : Mikolaj Krzewicki mkrzewic@cern.ch */
-
-/*
- * See implementation file for documentation
- */
-
-#include "Rtypes.h"
-#include "AliVMisc.h"
-class AliExternalTrackParam;
-
-class AliVVtrack {
- public:
- // --------------------------------------------------------------------------------
- // -- Constructor / Destructors
- AliVVtrack() {}
- virtual ~AliVVtrack() {}
-
- // constructor and method for reinitialisation of virtual table
- AliVVtrack( AliVConstructorReinitialisationFlag ) {}
- void Reinitialize() { new (this) AliVVtrack( AliVReinitialize ); }
-
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // -- Getter methods
- /*
- virtual Int_t GetTrackParamRefitted( AliExternalTrackParam & ) const = 0 ;
- virtual Int_t GetTrackParamIp( AliExternalTrackParam & ) const = 0 ;
- virtual Int_t GetTrackParamTPCInner( AliExternalTrackParam & ) const = 0 ;
- virtual Int_t GetTrackParamOp( AliExternalTrackParam & ) const = 0 ;
- virtual Int_t GetTrackParamCp( AliExternalTrackParam & ) const = 0 ;
- virtual Int_t GetTrackParamITSOut( AliExternalTrackParam & ) const = 0 ;
- */
- // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- virtual UShort_t GetTPCNcls() const {return 0;}//= 0;
- virtual Double_t GetPt() const {return 0;}//= 0;
-
-
- // may be for the future
-
- // virtual Float_t GetTPCClusterInfo(Int_t nNeighbours=3, Int_t type=0, Int_t row0=0, Int_t row1=159, Int_t bitType=0 ) const ;
- // virtual UShort_t GetTPCncls(Int_t row0=0,Int_t row1=159) const ;
- // virtual Bool_t IsOn(Int_t /*mask*/) const ;
- // virtual void GetImpactParametersTPC(Float_t& /*xy*/,Float_t& /*z*/) const ;
- // virtual ULong_t GetStatus() const ;
- // virtual Int_t GetKinkIndex(Int_t /*i*/) const ;
- // virtual Int_t GetNcls(Int_t /*idet*/) const ;
- // virtual void GetIntegratedTimes(Double_t* /*times*/, Int_t nspec=AliPID::kSPECIES) const ;
- // virtual Char_t GetITSclusters(Int_t* /*idx*/) const ;
- // virtual Float_t GetTPCCrossedRows() const ;
- // virtual Double_t GetTPCsignal() const ;
- // virtual Double_t GetTOFsignal() const ;
- // virtual UChar_t GetTRDclusters(Int_t* /*idx*/) const ;
-
- //ClassDef(AliVVtrack, 0) // base class for track data
-
-};
-#endif
#pragma link C++ class AliVTOFMatch+;
#pragma link C++ class AliVTOFcluster+;
-#pragma link C++ class AliVVevent+;
-#pragma link C++ class AliVVtrack+;
-
#endif
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
-#include "AliVVevent.h"
-#include "AliVVtrack.h"
#include "AliESDtrackCuts.h"
#include "AliVEventHandler.h"
#include "AliTPCseed.h"
} else {
Printf("----> AliAnalysisTaskPt::ConnectInputData Getting the event from handler %p", esdH);
//fESD = dynamic_cast<AliESDEvent*>(esdH->GetEvent());
- fESD = esdH->GetVVEvent();
+ fESD = esdH->GetEvent();
if (fUseFriends){
fESDfriend = esdH->GetVFriendEvent();
}
// Track loop to fill a pT spectrum
for (Int_t iTracks = 0; iTracks < nESDtracks; iTracks++) {
Printf("Checking track %d: Note that with Flat, the GetTrack is not yet implemented!!!", iTracks);
- const AliVVtrack* track = fESD->GetVVTrack(iTracks);
+ const AliVTrack* track = dynamic_cast<AliVTrack*>(fESD->GetTrack(iTracks));
if (!track) {
Printf("ERROR: Could not receive track %d", iTracks);
continue;
}
- Printf("track %d has pt = %f", iTracks, track->GetPt());
- fHistPt->Fill(track->GetPt());
+ Printf("track %d has pt = %f", iTracks, track->Pt());
+ fHistPt->Fill(track->Pt());
fHistNTPCCl->Fill(track->GetTPCNcls());
} //track loop
class TH1F;
class AliESDEvent;
class AliVfriendEvent;
-class AliVVevent;
+class AliVEvent;
class AliESDtrackCuts;
class TList;
void SetUseFriends(Bool_t flag) {fUseFriends = flag;}
private:
- AliVVevent* fESD; // ESD object
+ AliVEvent* fESD; // ESD object
AliVfriendEvent* fESDfriend; // ESD friend object
TH1F* fHistPt; // Pt spectrum
AliESDtrackCuts* fCuts; // cuts