AliPhysics  master (3d17d9d)
AliAnalysisTaskDummy.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 #include <iostream>
16 #include <chrono>
17 #include <thread>
18 #include <TString.h>
19 
20 #include "AliInputEventHandler.h"
21 #include "AliAnalysisTaskDummy.h"
22 
23 ClassImp(AliAnalysisTaskDummy)
24 
25 void AliAnalysisTaskDummy::UserExec(Option_t *){
26  TString filename = "";
27  if(fInputHandler) filename = fInputHandler->GetInputFileName();
28  if(fDebugLevel){
29  std::cout << "Running User exec from task AliAnalysisTaskDummy on file" << filename << std::endl;
30  }
31  std::chrono::milliseconds interval(fWaitTime);
32  std::this_thread::sleep_for(interval);
33 
34 }
const char * filename
Definition: TestFCM.C:1
Dummy analysis task, only trying to read data - no memory allocation. For file corruption checks...
Int_t fDebugLevel
const char Option_t
Definition: External.C:48