Skip to content

Commit

Permalink
New analysis tag v5-05-11-AN
Browse files Browse the repository at this point in the history
  • Loading branch information
morsch committed Aug 22, 2013
2 parents 7d45b9c + eade65b commit 4b42bf9
Show file tree
Hide file tree
Showing 21 changed files with 12,878 additions and 14 deletions.
12 changes: 10 additions & 2 deletions ANALYSIS/AliAnalysisTaskMCParticleFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "AliGenHijingEventHeader.h"
#include "AliGenPythiaEventHeader.h"
#include "AliGenCocktailEventHeader.h"
#include "AliGenEventHeaderTunedPbPb.h"

#include "AliLog.h"

Expand Down Expand Up @@ -277,12 +278,17 @@ void AliAnalysisTaskMCParticleFilter::UserExec(Option_t */*option*/)
AliGenHijingEventHeader *hiH = 0;
AliCollisionGeometry *colG = 0;
AliGenDPMjetEventHeader *dpmH = 0;
AliGenEventHeaderTunedPbPb *tunedH = 0;

// it can be only one save some casts
// assuming PYTHIA and HIJING are the most likely ones...
if(!pyH){
hiH = dynamic_cast<AliGenHijingEventHeader*>(mcEH);
if(!hiH){
dpmH = dynamic_cast<AliGenDPMjetEventHeader*>(mcEH);
if(!dpmH){
tunedH = dynamic_cast<AliGenEventHeaderTunedPbPb*>(mcEH);
}
}
}

Expand Down Expand Up @@ -319,8 +325,10 @@ void AliAnalysisTaskMCParticleFilter::UserExec(Option_t */*option*/)
fAODMcHeader->SetReactionPlaneAngle(colG->ReactionPlaneAngle());
AliInfo(Form("Found Collision Geometry. Got Reaction Plane %lf\n", colG->ReactionPlaneAngle()));
}


else if(tunedH) {
fAODMcHeader->SetReactionPlaneAngle(tunedH->GetPsi2());
fAODMcHeader->SetCrossSection(tunedH->GetCentrality());
}


Int_t j=0;
Expand Down
30 changes: 30 additions & 0 deletions ANALYSIS/macros/PhysSelQA/CopyFilesToLocal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
#small script to download files from alien

#
#needed info: e.g. /alice/data/2013/LHC13f/000197258/pass2/event_stat.root
#
#dataPeriodFolder=/alice/data/2013/LHC13c/
#productionFileName=/ESDs/pass2/event_stat.root
#destinationFolder=`pwd`/LHC13c/
dataPeriodFolder=$1
productionFileName=$2
destinationFolder=$3


#
# prepare directories
#
mkdir $destinationFolder

#
# copy the files
#

counter=0
for i in `alien_ls $dataPeriodFolder`; do
counter=`expr $counter + 1`;
runNumber=`expr $i | sed 's/\/000/\//g'`
echo Copying file number $counter which corresponds to $runNumber to $destinationFolder$runNumber\_event_stat.root
alien_cp alien://$dataPeriodFolder$i$productionFileName file://$destinationFolder$runNumber\_event_stat.root
done
Loading

0 comments on commit 4b42bf9

Please sign in to comment.