ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/PublisherMod.h
(Generate patch)

Comparing UserCode/MitAna/PhysicsMod/interface/PublisherMod.h (file contents):
Revision 1.9 by loizides, Mon Jun 15 15:00:16 2009 UTC vs.
Revision 1.11 by loizides, Fri Jun 26 16:47:18 2009 UTC

# Line 48 | Line 48 | namespace mithep
48        void                     SlaveBegin();
49        void                     SlaveTerminate();
50  
51 <      ClassDefT(PublisherMod, 1) // Publisher module
51 >      ClassDef(PublisherMod, 1) // Publisher module
52    };
53   }
54  
# Line 72 | Line 72 | void mithep::PublisherMod<TIn, TOut>::Pr
72    // Load the branch, add pointers to the object array. Publish object array if needed.
73  
74    LoadBranch(GetBranchName());
75 +
76 +  const UInt_t entries = fColIn->GetEntries();
77 +
78    if (fPubPerEvent)
79 <    fColOut = new mithep::ObjArray<TOut>(0, GetPublicName());
79 >    fColOut = new mithep::ObjArray<TOut>(entries, GetPublicName());
80    else
81      fColOut->Reset();
82  
80  UInt_t entries = fColIn->GetEntries();
83    for(UInt_t i=0; i<entries; ++i)
84      fColOut->Add(fColIn->At(i));
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines