trigger class added (M.Ivanov)
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Oct 2012 12:45:14 +0000 (12:45 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Oct 2012 12:45:14 +0000 (12:45 +0000)
PWGPP/AliAnalysisTaskFilteredTree.cxx

index 2f3f263..0455647 100644 (file)
@@ -341,7 +341,7 @@ void AliAnalysisTaskFilteredTree::ProcessCosmics(AliESDEvent *const event)
            "evtTimeStamp="<<timeStamp<<            //  time stamp of event\r
             "evtNumberInFile="<<eventNumber<<          //  event number            \r
            "trigger="<<triggerMask<<      //  trigger\r
-           "triggerClass="<<&triggerClass<<      //  trigger\r
+           "triggerClass="<<&triggerClass<<      //  trigger\r
            "Bz="<<magField<<             //  magnetic field\r
            //\r
            "multSPD="<<ntracksSPD<<\r
@@ -538,12 +538,14 @@ void AliAnalysisTaskFilteredTree::Process(AliESDEvent *const esdEvent, AliMCEven
       // vertex\r
       // TPC-ITS tracks\r
       //\r
+      TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
       if(!fTreeSRedirector) return;\r
       (*fTreeSRedirector)<<"highPt"<<\r
         "fileName.="<<&fileName<<\r
         "runNumber="<<runNumber<<\r
         "evtTimeStamp="<<evtTimeStamp<<\r
         "evtNumberInFile="<<evtNumberInFile<<\r
+       "triggerClass="<<&triggerClass<<      //  trigger\r
         "Bz="<<bz<<\r
         "vtxESD.="<<vtxESD<<\r
        "IRtot="<<ir1<<\r
@@ -596,6 +598,7 @@ void AliAnalysisTaskFilteredTree::ProcessLaser(AliESDEvent *const esdEvent, AliM
       Double_t evtTimeStamp = esdEvent->GetTimeStamp();\r
       Int_t evtNumberInFile = esdEvent->GetEventNumberInFile();\r
       Double_t bz = esdEvent->GetMagneticField();\r
+      TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
 \r
       if(!fTreeSRedirector) return;\r
       (*fTreeSRedirector)<<"Laser"<<\r
@@ -603,6 +606,7 @@ void AliAnalysisTaskFilteredTree::ProcessLaser(AliESDEvent *const esdEvent, AliM
         "runNumber="<<runNumber<<\r
         "evtTimeStamp="<<evtTimeStamp<<\r
         "evtNumberInFile="<<evtNumberInFile<<\r
+       "triggerClass="<<&triggerClass<<      //  trigger\r
         "Bz="<<bz<<\r
         "multTPCtracks="<<countLaserTracks<<\r
         "\n";\r
@@ -1072,6 +1076,7 @@ void AliAnalysisTaskFilteredTree::ProcessAll(AliESDEvent *const esdEvent, AliMCE
       if(isOKtpcInnerC  && isOKtrackInnerC) dumpToTree = kTRUE;\r
       if(fUseESDfriends && isOKtrackInnerC2 && isOKouterITSc) dumpToTree = kTRUE;\r
       if(fUseMCInfo     && isOKtrackInnerC3) dumpToTree = kTRUE;\r
+      TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
 \r
       //\r
       if(fTreeSRedirector && dumpToTree) \r
@@ -1081,6 +1086,7 @@ void AliAnalysisTaskFilteredTree::ProcessAll(AliESDEvent *const esdEvent, AliMCE
           "runNumber="<<runNumber<<\r
           "evtTimeStamp="<<evtTimeStamp<<\r
           "evtNumberInFile="<<evtNumberInFile<<\r
+         "triggerClass="<<&triggerClass<<      //  trigger\r
           "Bz="<<bz<<\r
           "vtxESD.="<<vtxESD<<\r
          "IRtot="<<ir1<<\r
@@ -1262,6 +1268,8 @@ void AliAnalysisTaskFilteredTree::ProcessMCEff(AliESDEvent *const esdEvent, AliM
   //printf("isEventOK %d, isEventTriggered %d \n",isEventOK, isEventTriggered);\r
   //printf("GetAnalysisMode() %d \n",GetAnalysisMode());\r
 \r
+  TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
+\r
   // check event cuts\r
   if(isEventOK && isEventTriggered)\r
   {\r
@@ -1357,6 +1365,7 @@ void AliAnalysisTaskFilteredTree::ProcessMCEff(AliESDEvent *const esdEvent, AliM
          if(fTreeSRedirector) {\r
            (*fTreeSRedirector)<<"MCEffTree"<<\r
            "fileName.="<<&fileName<<\r
+           "triggerClass.="<<&triggerClass<<\r
            "runNumber="<<runNumber<<\r
            "evtTimeStamp="<<evtTimeStamp<<\r
            "evtNumberInFile="<<evtNumberInFile<<\r
@@ -1513,10 +1522,12 @@ void AliAnalysisTaskFilteredTree::ProcessV0(AliESDEvent *const esdEvent, AliMCEv
     AliKFParticle kfparticle; //\r
     Int_t type=GetKFParticle(v0,esdEvent,kfparticle);\r
     if (type==0) continue;   \r
+    TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
 \r
     if(!fTreeSRedirector) return;\r
     (*fTreeSRedirector)<<"V0s"<<\r
       "isDownscaled="<<isDownscaled<<\r
+      "triggerClass="<<&triggerClass<<      //  trigger\r
       "Bz="<<bz<<\r
       "fileName.="<<&fileName<<\r
       "runNumber="<<run<<\r
@@ -1633,13 +1644,15 @@ void AliAnalysisTaskFilteredTree::ProcessdEdx(AliESDEvent *const esdEvent, AliMC
       if(!accCuts->AcceptTrack(track)) continue;\r
 \r
       if(!IsHighDeDxParticle(track)) continue;\r
-      \r
+      TObjString triggerClass = esdEvent->GetFiredTriggerClasses().Data();\r
+\r
       if(!fTreeSRedirector) return;\r
       (*fTreeSRedirector)<<"dEdx"<<\r
       "fileName.="<<&fileName<<\r
       "runNumber="<<runNumber<<\r
       "evtTimeStamp="<<evtTimeStamp<<\r
       "evtNumberInFile="<<evtNumberInFile<<\r
+       "triggerClass="<<&triggerClass<<      //  trigger\r
       "Bz="<<bz<<\r
       "vtxESD.="<<vtxESD<<\r
       "mult="<<mult<<\r