Added default constructor (needed for streaming)
authormfloris <michele.floris@cern.ch>
Fri, 7 Mar 2014 15:55:23 +0000 (16:55 +0100)
committermfloris <michele.floris@cern.ch>
Fri, 7 Mar 2014 15:56:06 +0000 (16:56 +0100)
PWG/DevNanoAOD/AliNanoAODReplicator.cxx
PWG/DevNanoAOD/AliNanoAODReplicator.h

index 1993cb7..2512d62 100644 (file)
@@ -81,6 +81,22 @@ using std::endl;
 ClassImp(AliNanoAODReplicator)
 
 //_____________________________________________________________________________
+AliNanoAODReplicator::AliNanoAODReplicator() :
+AliAODBranchReplicator(), 
+  fTrackCut(0), fTracks(0x0), fHeader(0x0), fNTracksVariables(0), // FIXME: Start using cuts, and check if fNTracksVariables is needed
+  fVertices(0x0), 
+  fList(0x0),
+  fMCParticles(0x0),
+  fMCHeader(0x0),
+  fMCMode(0),
+  fLabelMap(),
+  fParticleSelected(),
+  fVarList(""),
+  fVarListHeader(""),
+  fCustomSetter(0){
+  // Default ctor. we need it to avoid instantiating a wrong mapping when reading from file 
+  }
+
 AliNanoAODReplicator::AliNanoAODReplicator(const char* name, const char* title,
                                           const char * varlist,
                                           AliAnalysisCuts* trackCut,
index 79e813c..86c4b4c 100644 (file)
@@ -63,12 +63,13 @@ class AliNanoAODReplicator : public AliAODBranchReplicator
 {
  public:
   
-  AliNanoAODReplicator(const char* name="AliNanoAODReplicator", 
-                         const char* title="Branch Replicator for special tracks related branches",
-                         const char * varlist="pt,eta",
-                         AliAnalysisCuts* trackCut=0x0,
-                         Int_t mcMode=0
-                       );
+  AliNanoAODReplicator();
+  AliNanoAODReplicator(const char* name,
+                      const char* title,
+                      const char * varlist=0,
+                      AliAnalysisCuts* trackCut=0x0,
+                      Int_t mcMode=0
+                      );
   
   virtual ~AliNanoAODReplicator();