ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CITCommon/CommonData/interface/ZeeEventTree.h
(Generate patch)

Comparing UserCode/CITCommon/CommonData/interface/ZeeEventTree.h (file contents):
Revision 1.4 by sixie, Tue Aug 14 16:18:53 2012 UTC vs.
Revision 1.6 by sixie, Wed Oct 3 14:19:02 2012 UTC

# Line 32 | Line 32 | namespace citana
32        UInt_t                  fRunNumber;
33        UInt_t                  fLumiSectionNumber;
34        UInt_t                  fEventNumber;
35 +      UInt_t                  fNPU;
36        Float_t                 fRho;
37        UInt_t                  fNVertices;
38        UInt_t                  fEventTriggerBits;
# Line 126 | Line 127 | namespace citana
127          fRunNumber                     = 0.0;
128          fLumiSectionNumber             = 0.0;
129          fEventNumber                   = 0.0;
130 +        fNPU                           = 0.0;
131          fRho                           = 0.0;
132          fNVertices                     = 0.0;
133          fEventTriggerBits              = 0;
# Line 204 | Line 206 | namespace citana
206          } else {
207            cout << "Warning: Type " <<  Type << " is not supported \n";
208          }
209 +        InitTree(Type);
210          assert(tree_);
211        }
212      
# Line 217 | Line 220 | namespace citana
220          tree_->Branch("run",&fRunNumber,"run/i");
221          tree_->Branch("lumi",&fLumiSectionNumber,"lumi/i");
222          tree_->Branch("event",&fEventNumber,"event/i");
223 +        tree_->Branch("npu",&fNPU,"npu/i");
224          tree_->Branch("rho",&fRho,"rho/F");
225          tree_->Branch("vertices",&fNVertices,"vertices/i");
226          tree_->Branch("triggerbits",&fEventTriggerBits,"triggerbits/i");
# Line 279 | Line 283 | namespace citana
283          Int_t currentState = gErrorIgnoreLevel;
284  
285          if (Type == kCITZeeEvent) {
286 +          cout << "CITZeeEvent\n";
287            tree_->SetBranchAddress("weight",&fWeight);
288            tree_->SetBranchAddress("run",&fRunNumber);
289            tree_->SetBranchAddress("lumi",&fLumiSectionNumber);
290            tree_->SetBranchAddress("event",&fEventNumber);
291 +          tree_->SetBranchAddress("npu",&fNPU);
292            tree_->SetBranchAddress("rho",&fRho);
293            tree_->SetBranchAddress("vertices",&fNVertices);
294            tree_->SetBranchAddress("triggerbits",&fEventTriggerBits);
# Line 332 | Line 338 | namespace citana
338            tree_->SetBranchAddress("Ele2PassTightSimpleCuts",&fEle2PassTightSimpleCuts);
339            tree_->SetBranchAddress("Ele2PassHZZICHEP2012",&fEle2PassHZZICHEP2012);
340          } else if (Type == kHggFutyanZeeDataEvent || Type == kHggFutyanZeeMCEvent  ) {
341 <
341 >          cout << "other type\n";
342            //************************************************************
343            //The commented out branches don't exist in this version
344            //************************************************************

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines