message: removed timerangecut
diff: @@ -109,6 +109,7 @@ AliAnalysisTaskCMWPU2018::AliAnalysisTaskCMWPU2018(const char *name): AliAnalysi
  fPileUpSlopeParm(3.43),
  fPileUpConstParm(43),
  bSkipPileUpCut(kFALSE),
  + is2018data(1),
  fEtaGapNeg(-0.1),
  fEtaGapPos(0.1),
  fMinEtaCut(-0.8),
  @@ -239,6 +240,7 @@ AliAnalysisTaskCMWPU2018::AliAnalysisTaskCMWPU2018():
  fPileUpSlopeParm(3.43),
  fPileUpConstParm(43),
  bSkipPileUpCut(kFALSE),
  + is2018data(1),
  fEtaGapNeg(-0.1),
  fEtaGapPos(0.1),
  fMinEtaCut(-0.8),
  @@ -707,11 +709,6 @@ void AliAnalysisTaskCMWPU2018::UserExec(Option_t*) {
  - AliTimeRangeCut *fTimeRangeCut;
  - fTimeRangeCut = new AliTimeRangeCut;
  - fTimeRangeCut->InitFromEvent(fAOD);
  - if (fTimeRangeCut->CutEvent(fInputEvent))
  - return;
  fHistEventCount->Fill(stepCount); //2
  @@ -785,15 +782,29 @@ void AliAnalysisTaskCMWPU2018::UserExec(Option_t*) {
  +
  //Pile up cut function called--------------------------
  Bool_t kPileupEvent = kFALSE;
  + if (is2018data)
  kPileupEvent = CheckEventIsPileUp2018(fAOD);
  + else
  + kPileupEvent = CheckEventIsPileUp(fAOD);
  if (!bSkipPileUpCut)
  if(kPileupEvent) return;
  + /*
  + AliTimeRangeCut *fTimeRangeCut;
  + fTimeRangeCut = new AliTimeRangeCut;
  + fTimeRangeCut->InitFromEvent(fAOD);
  + if (fTimeRangeCut->CutEvent(fAOD))
  + return;
  + */
  +
  +
  +
  //////////////////////////////////////////////////
  @@ -1824,6 +1835,7 @@ Double_t c2cumulantChrgPosChrgNeg = (sumQ2xChrgPosEtaPos*fSumTPCQn2xNegChNeg +
  Bool_t AliAnalysisTaskCMWPU2018::CheckEventIsPileUp2018(AliAODEvent *faod) {
  +
  TF1 *fSPDCutPU = new TF1("fSPDCutPU", "400. + 4.*x", 0, 10000);
  @@ -1997,6 +2009,8 @@ Bool_t AliAnalysisTaskCMWPU2018::CheckEventIsPileUp(AliAODEvent *faod) {
  + cout<<"---------------------------hi i am in 2015 dataset-------------------------------------"<<endl;
  +
  Bool_t BisPileup=kFALSE;
  