MC flag added. (Rossella, AM)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 14:26:15 +0000 (14:26 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 14:26:15 +0000 (14:26 +0000)
STEER/AliAODpidUtil.h

index 625f192..4884c53 100644 (file)
@@ -24,7 +24,7 @@ class AliAODEvent;
 
 class AliAODpidUtil {
 public:
-  AliAODpidUtil(): fRange(5.), fTPCResponse(), fITSResponse(), fTOFResponse(), fTRDResponse() {;}
+  AliAODpidUtil(Bool_t isMC = kFALSE): fRange(5.), fTPCResponse(), fITSResponse(isMC), fTOFResponse(), fTRDResponse(), fIsMC(isMC) {;}
   virtual ~AliAODpidUtil() {;}
 
 
@@ -43,13 +43,17 @@ public:
   AliTPCPIDResponse &GetTPCResponse() {return fTPCResponse;}
   AliTOFPIDResponse &GetTOFResponse() {return fTOFResponse;}
 
+  Bool_t IsMC() {return fIsMC;}
+  
+
 private:
   Float_t           fRange;          // nSigma max in likelihood
   AliTPCPIDResponse fTPCResponse;
   AliITSPIDResponse fITSResponse;
   AliTOFPIDResponse fTOFResponse;
   AliTRDPIDResponse fTRDResponse;
-
+  Bool_t            fIsMC;
+  
   ClassDef(AliAODpidUtil,1)  // PID calculation class
 };