Use the MCchain flag in GetChainForTestMode
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2012 14:51:13 +0000 (14:51 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2012 14:51:13 +0000 (14:51 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 37c626d..7d5096b 100644 (file)
@@ -2240,9 +2240,11 @@ TChain *AliAnalysisAlien::GetChainForTestMode(const char *treeName) const
    Int_t count = 0;
     // Read the input list of files and add them to the chain
    TString line;
-   TChain *chain = new TChain(treeName);
+   TString streeName(treeName);
+   if (IsUseMCchain()) streeName = "TE";
+   TChain *chain = new TChain(streeName);
    TChain *chainFriend = 0;
-   if (!fFriendChainName.IsNull()) chainFriend = new TChain(treeName);       
+   if (!fFriendChainName.IsNull()) chainFriend = new TChain(streeName);       
    while (in.good())
    {
       in >> line;