# Some useful commands to explore dataset

    Events->Draw("EventAuxiliary.luminosityBlock_")
Draw LS
    Events->Draw("EventAuxiliary.orbitNumber_")
Draw orbit number (time event was taken)
    Events->Draw("recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size()")
Draw number of tracks distribution
    Events->Draw("recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size():EventAuxiliary.orbitNumber_")
Draw number of tracks vs time
    Events->Draw("SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.m_data.amplitudes_")
Draw cluster amplitudes distribution
    Events->Draw("SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_ids.size():recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size()","SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_ids.size()<500","text")
Draw scatter plot representing the correlation Number of modules with clusters/Number of tracks
    Events->Draw("SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.m_ids.id","SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.m_ids.id!=470311845")
Plot total number of modules having fired excluding a noisy module.
    Events->Scan("recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size():EventAuxiliary.id_.event_","recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size()>20")
list of events with more than 20 tracks
    Events->Scan("EventAuxiliary.id_.event_:recoTracks_ctfWithMaterialTracksP5__Rec.obj.pt()","recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size()>0&recoTracks_ctfWithMaterialTracksP5__Rec.obj.pt()>100")
list of events with track with pt > 100.
    Events->Scan("SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_data.size():recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size():EventAuxiliary.id_.event_","SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_data.size()>300")
list of events with more than 300 clusters
    Events->Scan("EventAuxiliary.id_.run_:EventAuxiliary.id_.event_")
List of events
    Events->Scan("SiStripDigiedmDetSetVector_siStripDigis_ZeroSuppressed_Rec.obj.@_sets.size()")
Print digi number
    Events->Scan("TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.@data_.size():TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.data_.m_id:EventAuxiliary.id_.event_","TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.@data_.size()>0")
List tracking rechits
    TFile *_file0 = TFile::Open("rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_TrackerPointing_v1/0032/ECB97B6C-ECA5-DD11-A217-00304867BFC8.root")
Open a new file
    Events->Show(10)
Dump event number 10
    (go on folder "Events" and using right mouse button select StartViewer)
See all available leafs
    vi $HOME/.root_hist
To get the history of last commands given interactively
    vi $HOME/.rootrc
    (include the following line and exit)
    Rint.Logon: $(HOME)/rootlogon.C
    vi $HOME/rootlogon.C
    (include the following lines and exit)
    {
    gSystem->Load("libFWCoreFWLite.so");
    AutoLibraryLoader::enable();
    }
allow you to call also methods attached to event objects

    Events->Scan("SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_data.size():recoTracks_ctfWithMaterialTracksP5__Rec.@obj.size():EventAuxiliary.id_.event_","SiStripClusteredmNewDetSetVector_siStripClusters__Rec.obj.@m_data.size()>300")

list of events with more than 300 clusters

    Events->Scan("EventAuxiliary.id_.run_:EventAuxiliary.id_.event_")

List of events

    Events->Scan("SiStripDigiedmDetSetVector_siStripDigis_ZeroSuppressed_Rec.obj.@_sets.size()")

Print digi number

    Events->Scan("TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.@data_.size():TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.data_.m_id:EventAuxiliary.id_.event_","TrackingRecHitsOwned_ctfWithMaterialTracksP5__Rec.obj.@data_.size()>0")

List tracking rechits

    TFile *_file0 = TFile::Open("rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_TrackerPointing_v1/0032/ECB97B6C-ECA5-DD11-A217-00304867BFC8.root")

Open a new file

    Events->Show(10)

Dump event number 10

    (go on folder "Events" and using right mouse button select StartViewer)

See all available leafs

    vi $HOME/.root_hist

To get the history of last commands given interactively

    vi $HOME/.rootrc
    (include the following line and exit)
    Rint.Logon: $(HOME)/rootlogon.C
    vi $HOME/rootlogon.C
    (include the following lines and exit)
    {
    gSystem->Load("libFWCoreFWLite.so");
    AutoLibraryLoader::enable();
    }

allow you to call also methods attached to event objects