check_nEntries.sh
Go to the documentation of this file.
1 #!/bin/bash
2 where=$1
3 max=6000
4 if [ "$2" ]; then
5  max=$2
6 fi
7 cr=0
8 for file in ${where}/*.root;
9  do
10  if [ $cr -lt $max ]; then
11  toOpen=$file
12  root -l -b -q "CountEntries.C+g(\"${toOpen}\")"
13  fi
14  cr=$((cr+1))
15  done